Connect to server with device