Fix IP address getting