How to change the default remote desktop port in Windows.
This applies to Windows 2000, 2003, 2008, 2012, Windows XP, Vista, Windows 7, and Windows 8. Some people want to change the default Remote Desktop is listening on as a security precaution, so here is how you do it.
Open the Registry
Start – Run – Regedit and navigate to
Right click on the PortNumber key, change the Base to Decimal and change it to the port of your choice.
Close the registry and restart the computer.