Define basic connexion to the server.