Check IP address and port number