Changing the RDP port on Windows Server
You can change the Remote Desktop (RDP) port on all versions of Windows Server 2008, 2012 and 2016 with these steps.
-
Open the Registry Editor with regedit.
-
Go to this key:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp\PortNumber -
Right-click the PortNumber value and choose Modify.
-
Set the base to Decimal and enter the port number you want to use (e.g.
3489). -
If Windows Firewall is on, remember to allow the new port for both TCP and UDP.
-
When you have finished, remember to restart the server.