Fix warning when using IP address as hostname in Net_Socket