connect between server and client