Fix for getting IP address