Change the remote desktop port in windows

How to

When using Remote Desktop, the default connection port is used. You can enhance security by changing the Remote Desktop port number. This section describes how to do so.

When using Remote Desktop to connect to a remote computer, the default port 3389 is used to establish the connection. In fact, Remote Desktop always looks for and listens on this port to establish a connection.

As a well-known port, this is one of the most important ones in the attack vector. Now, just because it is well known and vulnerable to attack does not mean it is a liability or increases your security risk.

If you really need to, you can change the remote desktop port. This is useful for customizing your remote desktop and improving security. For example, changing the remote desktop port can be useful when configuring your system’s firewall or router.

Fortunately, changing the remote desktop port in Windows is fairly easy. All you need to do is make a few changes to the registry.

As a quick refresher, here is how to change the remote desktop port on a Windows operating system.

The following procedure works the same in Windows 10 and 11.

Changing the remote desktop port in Windows

To change the remote desktop port, you need to edit the registry. It is quite easy as it only takes a few clicks.

  1. Launch the Start menu.
  2. Search and open the “Registry Editor”.
  3. Insert the following path in the address bar.
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp
  4. Press “Enter” key and navigate to the “RDP-Tcp” folder.
  5. Double click on the “PortNumber” value.
  6. Select the value of “Decimal”.
  7. Enter the newly selected port number in the “Value Data” field.
  8. Press the “OK” button.
  9. Close the Registry Editor.
  10. Restart the computer.
  11. Now you have changed the remote desktop port.

Detailed instructions:

Open the Registry Editor in Windows. To do so, press the Start key on your keyboard, search for “Registry Editor” and open it. You can also use the run command “regedit” (Win+R).

Once Registry Editor is open, navigate to the following folder. To make it easy, copy and paste the path into the address bar of the Registry Editor and press “Enter”.




Double click on the “PortNumber” value on the right.

Then choose “Decimal” in the radio option, enter the chosen “PortNumber” in the “Value data” field, and press the “OK” button.

Then close the “Registry Editor” and restart your computer.

After the restart, Remote Desktop will use the new port.

Remember that the new port you use should not conflict with other applications.

That is all. It is very easy to change the remote desktop port in Windows.

We hope this simple and easy guide to working with Windows will help you.

If you get stuck or need help, please comment below and we will do our best to help.

YouTube video: Change the Remote Desktop Port in Windows

Rate article
We provide high-quality and detailed Windows tutorials