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

bardimin pic

Written by Bardimin

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

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

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

The (RDP) uses and Server 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 .

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 port number, the attacker must scan all ports to find the RDP port you are using.

Changing this port number 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 features, such as antivirus, firewall, and others.

How To Change RDP Port In Windows 11

  1. Open the “Registry Editor“. You can open it by clicking the Start button and then type “regedit” in the search box.
registry editor open
  1. In the Registry 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.

Latest Articles

17 Tips and Tricks for Customizing Windows via Registry

17 Tips and Tricks for Customizing Windows via Registry

Before you edit or modify the Windows registry, back up from that registry. Fatal errors in changing the registry can cause the operating system to not run normally. In some cases, registry damage can only be repaired by reinstalling the operating system and resulting...

Portable BloatyNosy 0.80 – Debloat and Customize Windows 11

Portable BloatyNosy 0.80 – Debloat and Customize Windows 11

BloatyNosy is a free app that lets you remove the built-in junk apps in Windows that improve your Windows performance. The application is available in portable and installer versions. If you are looking for a free Debloat tool, then you might need to try BloatyNosy...

The sequence of Windows boot processes from zero to ready

The sequence of Windows boot processes from zero to ready

Have you ever wondered how exactly the Windows boot process happens? What processes happen in the background when you press the power button until Windows is ready for you? If yes, then you are in the right place. In this article, Bardimin will explain how all these...

Redirect and Block URLs with HOSTS File on Windows

Redirect and Block URLs with HOSTS File on Windows

Redirect and Block URLs you can easily on Windows. Just by adding the IP of a website, you can redirect or block it. Of course, this is very useful to limit the access of your employees or children from accessing websites that you do not allow. Your Windows PC has...

How to Create Fake Files of Any Size in Windows

How to Create Fake Files of Any Size in Windows

Do you need a file with a size of 10 MB, 100 MB, 1 GB or 1 TB to test? Follow the following article to create one instantly. You don't need to download files or waste time searching for large files, you can create them easily. Sometimes you need large files quickly to...