This article describes how to change the listening port that Remote Desktop listens on. You can use the Remote Desktop feature in Microsoft Windows to connect to your computer from another remote computer.
Change RDP Listening Port in Windows 10
To change the RDP Port, open Registry Editor.
Locate and then click the following registry subkey:
On the Edit menu, click Modify, and then click Decimal.
Type the new port number, and then click OK.
Quit Registry Editor.
Restart the computer.
This should work for all Windows, but remember to create a system restore point first.
Do note that the Remote Assistance feature in Microsoft Windows may not work correctly if you change the listening port.
Read next: How to Remove History entries from Remote Desktop Connection.