Define basic comm to connect client to server.