How to Change Remote Desktop (RDP) Port Number in Windows 11 to Improve Security

bardimin pic

Bardimin

August 19, 2022
registry editor change port number

How to Change Remote Desktop (RDP) Port Number in Windows 11 to Improve Security

Home » Blogs » Windows » Tips and Tricks » How to Change Remote Desktop (RDP) Port Number in Windows 11 to Improve Security

Remote Desktop (RDP) is a that allows users to connect to other computers over a network connection using a graphical interface.

Remote Desktop software can use several protocols, including RDP, Independent Computing Architecture (ICA), and virtual network computing (VNC), but RDP is the most commonly used protocol.

The (RDP) uses Terminal and Terminal Client to communicate. RDP is encapsulated and encrypted in the TCP.

Advantages of Changing RDP Port Number

Since port “3389” is the universal default port for the RDP Protocol, an attacker attempting to infiltrate your system via Remote Desktop will know exactly where to look, especially if your Remote Desktop host PC is connected to the Internet.

If you change this port, it might make it harder for an attacker to infiltrate by performing an RDP port exploit. By changing the RDP , the attacker must scan all ports to find the RDP port you are using.

Changing this does not guarantee that your PC will be safe from attacks through the RDP port, but it will increase the difficulty of breaking into your PC. Also enable other security features, such as antivirus, firewall, and others.

How To Change RDP Port In Windows 11

  1. Open the “ Editor“. You can open it by clicking the Start button and then type “” in the search box.
registry editor open
  1. In the Editor window that opens, navigate to
Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp
registry editor change port number
  1. Next to the right side of the window, find the key “PortNumber“. Then edit the indigo by double-clicking or right-clicking and selecting the “Modify” option.
  2. After that, a pop-up window will appear to edit the value. Select “Decimal” to display the port in decimal number format. Then enter the port number you want in “Value data“. You can use port numbers up to 65535. And do not use the port number that is by default used by the operating system. Then click the OK button to save the changes and close the Registry Editor.
registry editor change portnumber
  1. Next, restart your PC to apply all these changes.
link nyemin

Latest Articles

How to Fix PowerShell Not Working on Windows 11

How to Fix PowerShell Not Working on Windows 11

PowerShell is a very useful tool for running various commands and scripts in Windows. However, sometimes PowerShell can run into problems and won't open or run properly. This is certainly very annoying, especially if you often use PowerShell to manage your system....

How to Fix Windows Search Not Working on Windows 11

How to Fix Windows Search Not Working on Windows 11

Windows Search is a feature that lets you quickly and easily search for files, folders, apps, settings, and web content in Windows 11. However, sometimes this feature encounters issues and cannot function properly. This is certainly very disruptive to your...

How to Sync Files between Different Computers Easily and Quickly

How to Sync Files between Different Computers Easily and Quickly

Have you ever had trouble syncing files between different computers? Do you want to have the same file on all your computers without having to copy and paste it manually? Do you want to know how to synchronize files between different computers easily and quickly? If...

How to Display Caps Lock Indicator on Windows 11 Screen

How to Display Caps Lock Indicator on Windows 11 Screen

Do you often type in uppercase letters accidentally because you don't realize that the Caps Lock key is active? Do you have trouble seeing the Caps Lock indicator on your keyboard because it's too small or not there at all? Do you want to get visual or audible...