Changing the RDP listening port on Windows Server
Learn how to change the default port that remote desktop listens on and makesubsequent connections in order to make RDP more secure.
Remote desktop protocol (RDP) is the de facto administrative console access, and it may benecessary to make it even more secure by changing the TCP port used for the network access.RDP transports on TCP 3389 by default for all supported versions of Windows; if you wantto change the port, it requires a quick change in the Windows registry.(
Editing the registry is risky, so be sure you have a verified backup before saving anychanges.)The following hive has the specific TCP port used for RDP:[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TerminalServer\WinStations\RDP-Tcp]In this hive, the PortNumber value contains the configured port that Windows will listen forRDP connections. The default port assignment is represented as D3D in hexadecimal or 3389in binary. For this example, I will change the port to 53389.
shows this changebeing made on a test server.
It may require a reboot to make the port assignment take effect (my Windows Server 2008 R2test system did). Once the system is listening on the new port, connections need to specify thenew port in the RDP client properties, as shown in