Establishes a TCP connection between a client and server.