Check ip and port