Relationship between XRDP and VNC
If you only install the XRDP protocol, you cannot use Remote Desktop to connect to Ubuntu on windows. You also need to install VNCServer.
Therefore, after XRDP is started, the system automatically starts a VNC session process listening service.
After we connect to Ubuntu through the windows Remote Desktop client, Ubuntu starts a VNC service.
Run the following command on the remote system shell:
> Netstat-nltp
Tcp6: 5910: * LISTEN 7751/Xvnc
Tcp6 indicates that ipv6 is used.
5910 indicates that the opened service port is 5910.
7751 is the process Number of XVnc
In this case, use VNCViewer to connect to the same port on windows.
Assume that the IP address of Ubuntu is 192.168.1.20, and the connection address is 192.168.1.20: 10.
In addition, the two desktops (RDP Remote Desktop client, VNCViewer) are synchronized on both sides.
10 indicates the terminal number, which is counted from 5900.
Another method
192.168.1.20: 5910 can be connected successfully.
5910 indicates the port number, which is easier to remember.