Casbay Knowledge Base

Search our articles or browse by category below

HOW TO: Change the Listening Port for Remote Desktop

Last updated: January 18, 2023
Estimated reading time: 1 min

HOW TO: Change the Listening Port for Remote Desktop

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 of 6

Start the Registry Editor.

Step 2 of 6

Locate and click the following registry sub-key –

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

Step 3 of 6

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

Step 4 of 6

Enter the new port number and click OK.

Step 5 of 6

Exit the Registry Editor.

Step 6 of 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.

Interested in learning more about Security? We have more guide articles for you in our Knowledge Base where you can visit. 

Was this article helpful?
Dislike 0
Previous: Setting up a connection in FileZilla’s Site Manager
Next: Connect SQL Server using SQL Server
Discover the perfect balance of performance and budget-friendly Dedicated Server plan !
Discover the perfect balance of performance and budget-friendly Dedicated Server plan !
High performance and low cost Dedicated Server plan 128GB from $185 – upgrade today!
High performance and cheap Dedicated Server plan 128GB from $185 – upgrade today!