Change Default RDP Port to Custom Port

Many time to secure our Windows server, we have to change the Default RDP port to some Custom port. Which is also a good practice to secure the servers.

Today we will learn, how to change the Default RDP port (3389 port) to your Custom port.

To change the RDP port, please follow the below steps:

  • Connect to your Windows server via RDP
  • Start the registry editor. (Type regedit in the Search box.)
  • Navigate to the following registry subkey:
1HKEY_LOCAL_MACHINE
2       └──  System
3               └── CurrentControlSet
4                        └── Control
5                               └── Terminal Server
6                                         └── WinStations
7                                                  └── RDP-Tcp
8                                                         └── PortNumber
  • Click Edit > Modify, and then click Decimal.
  • Type the new port number, and then click OK.
  • Close the registry editor.
  • Open Firewall and add new port in firewall rule. So that you can access the server via new port or disable the firewall.
  • Lastly, Restart your computer.

I ❤ AWS! Happy Cloud Computing! 🧑‍💻 Enjoy #Cloudkaramchari