connect the client and server.