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

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp

Right click on the PortNumber key, change the Base to Decimal and change it to the port of your choice.

rdp1.1

Close the registry and restart the computer.

 

 

 

Now when you connect to the computer through Remote Desktop you will have to add the port number to the address field. Below is an example.
rdp1.2