If you install only the XRDP protocol, you cannot use Remote Desktop to connect to Ubuntu on Windows. You also need to install Vncserver.
Therefore, after the XRDP is started, the system automatically initiates a VNC session process monitoring service.
When we connect to Ubuntu via the Windows Remote Desktop client, Ubuntu initiates a VNC service
Use the following command on the remote system shell to see
> NETSTAT–NLTP
TCP6::: 5910:::* LISTEN 7751/xvnc
Where TCP6 represents the use of the IPv6 protocol.
5910 indicates that the open service port is 5910
7751 is the XVNC process number.
At this point, use Vncviewer on Windows to connect to the same port
Assuming that the Ubuntu IP is 192.168.1.20, then the connection address write 192.168.1.20:10 can also connect to Ubuntu is a proof.
Also, these 2 desktops (RDP Remote Desktop client, vncviewer) are synchronized on both sides.
Of these, 10 represents the terminal number, starting from 5900 counts.
Another way of writing
192.168.1.20:5910 can also be connected successfully
At this point 5910 represents the port number, which is easier to remember.
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
The relationship between XRDP and VNC