connect to the server