Secondly, users can change the port of Windows Remote Desktop Service to any unoccupied TCP port by the following methods.
1. Run regedit and open the Registry Editor.
2. Open the registry key [HKEY _ local _ machine \ system \ current control set \ control \ terminal server \ WDS \ rdpwd \ TDS \ TCP], and change the value of PortNamber to the port number you want. Note that it is 10.
3. Open the registry key [HKEY _ Local _ Machine \ System \ Current Control Set \ Control \ Terminal Server \ Winstations \ RDP-TCP] and modify the value of the port number to the required port number.
4. Log off or restart the host for the service configuration information to take effect.