I don't think you type "disconnect()" into the debugger after you have typed in "remoteplay()". Running the disconnect command might be completely stopping everything, including the streaming to the PC viewer app.
The server disconnects automatically after 10 seconds anyway; you should fully close the app when it says "server disconnected" after waiting that said 10 seconds.