Connect to the server.