fix getting default IP address