If you only install the XRDP protocol. Is that you cannot use Remote Desktop to connect to Ubuntu on Windows.
You also need to install Vncserver.
So, after XRDP started. The system initiates a VNC session process monitoring service on its own initiative.
When we connect to Ubuntu via Windows Remote Desktop client, Ubuntu initiates a VNC service
Use on the remote system shell such as the following command to see
> NETSTAT–NLTP
TCP6::: 5910:::* LISTEN 7751/xvnc
Among them, tcp6 means using the IPv6 protocol.
5910 indicates an open service port is 5910
7751 is the XVNC process number.
At this point, use Vncviewer on Windows to connect to the same port
If the Ubuntu IP is 192.168.1.20. The connection address write 192.168.1.20:10 also can 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.
The second type of notation
192.168.1.20:5910 can also be connected successfully
At this point 5910 represents the port number, which is easier to remember.
The relationship between XRDP and VNC