How to Change the Remote Desktop Port (RDP) in Windows. –

This article provides step-by-step instructions on how to change the default remote desktop port in Windows 10. The default Remote Desktop (RDP) port on all versions of Windows is 3389 (TCP/UDP). However, if you want to keep your computer away from Internet attacks, I recommend changing the default RDP port number 3389 to something else.

To properly change the default listening port for Remote Desktop connections, you must first change the RDP port in the Windows registry, then add two (2) new rules to Windows Firewall for incoming connections on the new RDP port you have to do.

How to Change RDP Default Port in Windows 10

Step 1. Change the remote desktop port in the registry.

1. Find an unused port using this list of TCP and UDP port numbers.

2. Opening Registry editor. For this:

1. Press at the same time Win image + R buttons to open the run command window.
2. Stand up regedit and press Enter To open the registry editor.


3. Go to this button on the left panel:

  • HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp

4. Double click on the right panel Port number.

How to Change the Remote Desktop Port (RDP) in Windows

5. Choose Ten and type the new port number (eg ‘3489’ in this example) in Value information box. Click when done OK.

Change the RDP port

6. Close registry editor.

Step 2. Add a NEW remote desktop port (RDP) in Windows Firewall.

After changing the Remote Desktop port in the Windows registry, you must allow incoming traffic to the new RDP port in Windows Firewall by following these instructions:

1. Transition Control Panel > All control panel elements > Windows firewall.


2. press Advanced settings on the left.

Allow PPTP in Windows Firewall

3. Choose Rules of entry on the left and press New rule.

New firewall rule

4. Choose Port on the first screen and press The next one.


5. On the next screen, leave TCP protocol is selected and at Special local ports Enter a new port number for RDP connections. (eg ‘3489’ in this example). Click when done The next one.

Firewall - Add a new RDP port

6. On the next screen, leave the default setting (Allow connection) and click The next one.

Firewall - allow connection

6. Click on The next one apply the new rule to all network profiles.


7. Finally, enter a well-known name for the new RDP port and click Termination.


8. Now follow steps 3-7 again, but this time in step 4 create a new access rule for the UDP protocol.


9. After creating two (2) incoming rules, restart to your computer and you’re ready to connect to your PC via Remote Desktop Connection using the new port number.*

Additional help: To remotely connect to your computer using Remote Desktop Connection, enter your computer’s IP address and new RDP port number in the following format: *

For example, if your computer’s IP address is “” and the new RDP port is “3489”, type “”.


That’s it! Let me know if this guide helped you by leaving a comment about your experience. Please like and share this guide to help others.

If you found this article useful, please support us by donating. Even $1 can make a big difference for us We continue to help others while keeping this site free:

Leave a Comment