The modification steps are as follows:
1. Press WIN+R and enter regedit to open the registry.
2. The registry modifies the remote desktop port (1)
HKEY _ local _ machine \ system \ currentcontrolset \ control \ terminalserver \ WDS \ rdpwd \ TDS \ TCP, you will find a port number in the right column. Right-click to modify, select 10 as the base, and modify it to the port number you want to change. I changed it to 33890
3. Registry Modify Remote Desktop Port (2)
HKEY _ local _ machine \ system \ current control set \ control \ terminal server \ winstates \ RDP-TCP, same as above, the port number is changed to 33890.
4. It is not enough to modify the remote desktop port. You must modify the firewall remote desktop exception to ensure that the remote desktop enters the workstation. The following figure shows the icon of the first step. You will find that the remote desktop is gray (red box selected area) and there is no way to change it. You can only use the registry.
5. Modify the port of the firewall remote desktop exception (1)
HKEY _ Local _ Machine \ System \ Current Control Set \ Service \ Shared Access \ Default \ Firewall Policy \ Firewall Rule, change the data containing 3389 in the value of RemoteDesktop-In-TCP to 33890.
6. Modify the port of the firewall remote desktop exception (2)
HKEY _ Local _ Machine \ System \ Current Control Set \ Service \ Shared Access \ Parameters \ Firewall Policy \ Firewall Rules], and change the data containing 3389 in the value of RemoteDesktop-In-TCP to 33890.
7. Restart the computer
After restarting Win 10, the port modification is completed!
Then you can connect to the routing desktop in the form of IP: port number.
The default port of win 10 remote desktop is 3389, which is easy to be scanned by hackers if it is not changed. For system security, it is best to modify the port number of the remote desktop.