Automatically connect to remote server