complete the first communicate with server.