5 Simple Steps To Change Remote Desktop RDP Port In Windows 10

By Katy

Published on:

Changing the default Remote Desktop Protocol (RDP) port in Windows 10 can enhance security and help avoid unwanted access to your system. By default, Windows uses port 3389 for RDP, making it a prime target for hackers. Altering this port can significantly reduce the risk of unauthorized access while allowing legitimate users to connect securely. In this article, we will guide you through the steps to change the RDP port effectively, ensuring that your remote desktop sessions are both secure and efficient. We will cover everything you need to know, from accessing the registry to modifying firewall settings. Let’s dive in!

Accessing the Registry Editor

To change the RDP port, you first need to access the Registry Editor. This tool allows you to make advanced configurations in Windows. You can access it by typing “regedit” in the Windows search bar and pressing Enter. Make sure to back up the registry before making any changes, as incorrect modifications can lead to system instability.

Locating the RDP Port Key

Once in the Registry Editor, navigate to the following path:

HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTerminal ServerWinStationsRDP-Tcp

Here, you will find a key named “PortNumber.” This is the key you will modify to change the default RDP port.

Modifying the Port Number

Right-click on the “PortNumber” key and select “Modify.” In the dialog that appears, change the base to “Decimal” and enter your desired port number. It is recommended to choose a port number between 49152 and 65535 to avoid conflicts with other services. Click “OK” to save your changes.

Configuring Windows Firewall

After changing the port number in the Registry Editor, you must configure the Windows Firewall to allow traffic through the new port. Open the Windows Firewall settings and create a new inbound rule. Specify the port you just set, select “Allow the connection,” and complete the wizard to enable the rule.

Restarting the Remote Desktop Service

Finally, to apply the changes, you need to restart the Remote Desktop service. You can do this by opening the Services app (type “services.msc” in the search bar), locating “Remote Desktop Services,” and clicking “Restart.” After this, your new RDP port will be active.

Step Description Key Action Notes Confirmation
1 Access Registry Editor Type “regedit” Backup the registry Registry Editor opens
2 Locate RDP Port Key Navigate to the key path Find “PortNumber” Key is visible
3 Modify Port Number Change base to Decimal Choose a safe port Changes saved
4 Configure Firewall Create inbound rule Allow new port Rule is active

To conclude, changing the Remote Desktop port in Windows 10 is a straightforward process that can significantly enhance your system’s security. By following the steps outlined above, you can effectively customize your remote access settings and reduce the risk of unauthorized connections.

FAQs

Why should I change the RDP port?

Changing the RDP port helps to improve security by making it less predictable for potential attackers. The default port is widely known and often targeted.

What port should I choose?

It is advisable to select a port number between 49152 and 65535 to avoid conflicts with other services and ensure that it is not commonly used.

Do I need to change my firewall settings after changing the RDP port?

Yes, you must create a new inbound rule in the Windows Firewall to allow traffic through the newly assigned port.

What happens if I forget the new port number?

If you forget the new port number, you can always revert to the default port (3389) by following the same steps in the Registry Editor. Remember to also update your firewall settings accordingly.


Disclaimer- We are committed to fair and transparent journalism. Our Journalists verify all details before publishing any news. For any issues with our content, please contact us via email. 

Recommend For You

Leave a Comment