Connecting to the server