Create connection between server and client