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.
- Launch the Start menu.
- Search and open the “Registry Editor”.
- Insert the following path in the address bar.
- Press “Enter” key and navigate to the “RDP-Tcp” folder.
- Double click on the “PortNumber” value.
- Select the value of “Decimal”.
- Enter the newly selected port number in the “Value Data” field.
- Press the “OK” button.
- Close the Registry Editor.
- Restart the computer.
- Now you have changed the remote desktop port.
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.