The IP address expected by the Socket constructor was backwards from what the HostAndPort was printing. Changed the HostAndPort to flip the returned ip address in its getter. Weird.