Created a connection with server