Create client to server connection method