To change your Windows RDP (Remote Desktop Protocol) port number to other,
1. Open Registry Editor,
2. Navigate to,
HKEY_LOCAL_MACHINE -> System -> CurrentControlSet -> Control ->Terminal Server -> WinStations -> RDP-Tcp
3. Look at “Port number” and select Decimal.
4. Change to any number that you need and perform a reboot if it is not apply immediately.
For those who are using Windows Server Remote Desktop Connection, you might found this error during your operation.
Error: The terminal server has exceeded the maximum number of allowed connections
As Windows Server 2003 is using Terminal Services to control the Remote Desktop Connection, your maximum connection is 2 only. However, you got the third connection allowed as admin mode.
mstsc /v:x.x.x.x /admin
If you are using Windows Server 2008, use the admin console mode instead.
mstsc /v:x.x.x.x /console