Ubuntu – WSL2 Remote Desktop Can’t connect to the remote computer for one of these reasons

20.04remote desktopwindows-subsystem-for-linuxxrdp

I am trying to use a GUI with WSL2. I followed the instructions here and it initially worked fine. After rebooting my laptop I opened Ubuntu terminal and typed:

sudo /etc/init.d/xrdp start

to start xrdp on the "remote" machine. Then I checked the status:

service xrdp status

* xrdp-sesman is running
* xrdp in running

So when I go to Windows remote desktop and connect to localhost:3390, I get this error:

1) Remote access to the server is not enables
2) The remote computer is turned off
3) The remote computer is not available on the network

Within the Ubuntu terminal I check /etc/xrdp/xrdp.ini and it shows port=3390 so I know I'm pointing at the correct port. Since the ubuntu terminal is active, I'm assuming that the remote computer is on, so I don't know what's going on. I followed the manual work around here but that didn't help.

Best Answer

Related Question