Changing the Remote Desktop Protocol (RDP) port on Windows 10 might sound techy, but it’s pretty simple. You just need to tweak a few settings in the registry editor, and you’re good to go. This guide will walk you through each step, ensuring you understand what you’re doing and why you’re doing it.
How to Change RDP Port Windows 10
Changing the RDP port on Windows 10 involves modifying the Windows registry to a new port number. It’s a detailed process but straightforward if you follow the steps carefully. Here’s how to do it:
Step 1: Open the Registry Editor
Press Win + R
, type regedit
, and hit Enter
.
The Registry Editor is where you can make deep changes to your system. Always proceed with caution.
Step 2: Navigate to the RDP Port Key
Find this path: HKEY_LOCAL_MACHINESystemCurrentControlSetControlTerminal ServerWinStationsRDP-TcpPortNumber
.
This is where the RDP port settings are stored. Navigating through the registry is like following a path in a forest.
Step 3: Modify the Port Number
Double-click PortNumber
, select Decimal
, change the value to your desired port number, and click OK
.
Changing the port number is like telling your computer to listen for remote connections on a different channel.
Step 4: Close the Registry Editor
Simply close the Registry Editor.
You’ve made the necessary changes, so closing the editor keeps things neat and tidy.
Step 5: Update Firewall Settings
Go to Windows Firewall
, create a new inbound rule for the new port number.
This step ensures that your new port is open for remote connections, like opening a gate for visitors.
After completing these steps, your Windows 10 computer will listen for RDP connections on the new port you specified.
Tips for Changing RDP Port Windows 10
- Always back up your registry before making changes. It’s like having a safety net.
- Choose a port number higher than 1024 to avoid conflicts with well-known ports.
- Ensure your new port number is not blocked by your ISP.
- Update any scripts or tools that connect to your RDP to use the new port.
- Restart your computer to ensure all changes take effect properly.
Frequently Asked Questions
Why should I change my RDP port on Windows 10?
Changing the RDP port can help reduce the risk of unauthorized access because many attackers target the default port.
Can I use any port number for RDP?
No, it’s best to use a port number above 1024 and avoid ports already in use by other services.
What should I do if I lose my RDP connection after changing the port?
Check your firewall settings and ensure you’ve updated the port in your RDP client.
Is it safe to modify the registry?
Yes, but it’s crucial to be careful. Always back up the registry before making changes.
How do I know if my new port number is working?
You can use tools like netstat
or port scanning software to check if the new port is open and listening.
Summary
- Open the Registry Editor.
- Navigate to
RDP-TcpPortNumber
. - Modify the Port Number.
- Close the Registry Editor.
- Update Firewall Settings.
Conclusion
Changing the RDP port on Windows 10 can seem daunting, but it’s actually a straightforward process if you follow the steps carefully. By altering the registry and updating your firewall settings, you can improve your system’s security and reduce the risk of unauthorized access. This change isn’t just for tech gurus; anyone with basic computer knowledge can do it. Remember to always back up your registry before making any changes and choose a unique port number to avoid conflicts.
If you’re interested in learning more about securing your remote desktop connections, consider looking into additional measures like using strong passwords, enabling Network Level Authentication (NLA), and regularly updating your system. By taking these steps, you can ensure a safer remote working environment.

Kermit Matthews is a freelance writer based in Philadelphia, Pennsylvania with more than a decade of experience writing technology guides. He has a Bachelor’s and Master’s degree in Computer Science and has spent much of his professional career in IT management.
He specializes in writing content about iPhones, Android devices, Microsoft Office, and many other popular applications and devices.