Wesbytes Knowledge Base

Search our articles or browse by category below

How to Change Listening Port for Remote Desktop

Last modified: July 2, 2022
You are here:
Estimated reading time: 1 min
Windows RDP

When you connect to a computer (a Windows client or Windows Server) through the Remote Desktop client, the Remote Desktop feature on your computer ā€œhearsā€ the connection request. Your computer hears IT through a defined listening port (3389Ā by default). Moreover, you can change that listening port on Windows computers by modifying the registry.

To change the port thatĀ Remote DesktopĀ listens on, follow the below steps –

These are the steps you can take toĀ modify your registry. Make sure you properly modify the registry, as anything goes wrong, it may cause problems. Backup the registry before changing it for safety.

Step 1

Start theĀ Registry Editor.

Step 2

Locate and click the following registry sub-key –

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TerminalServer\WinStations\RDP-Tcp\PortNumber

Step 3

Go to theĀ EditĀ menu, click Modify and then clickĀ Decimal.

Step 4

Enter the new port number and clickĀ OK.

Step 5

Exit theĀ Registry Editor.

Step 6

RestartĀ your machine.

Note: It is importantĀ to type the new port number when you try to connect to this computer with the Remote Desktop Connection. Before connecting this device you will need to set your firewall to allow the fresh port number with the Remote Desktop connection.

Was this article helpful?
Dislike 0
Views: 14