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.
Do note that the Remote Assistance feature in Microsoft Windows XP may not work correctly if you change the listening port.
To fix this problem automatically, download and apply Microsoft Fix it 50595. Click Run in the File Download dialog box and follow the steps in the Fix it wizard. [UPDATE: Microsoft Fix it 50595 appears to have been taken down – so you have to do it manually now].
Change the listening port for Remote Desktop
To fix it manually, yourself, start 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.
Read next: How to Remove History entries from Remote Desktop Connection.