Your cart is currently empty!
How to Change the RDP Port on Windows 10 or Windows 11
Changing the Remote Desktop Protocol (RDP) port can help reduce the risk of automated attacks and port scans. By default, Windows uses port 3389 for RDP, which is widely known and often targeted. Switching it to a custom port won’t make your system bulletproof, but it adds a layer of obscurity that can help.
Here’s how to change the RDP port on Windows 10 or Windows 11:
⚠️ Important Warning
Before changing the RDP port:
- Make sure your firewall is configured to allow traffic on the new port.
- Note down your current port settings, so you can revert if needed.
- If you’re accessing the machine remotely, changing the RDP port may disconnect your session. Use caution.
Step-by-Step: Change the RDP Port in Windows
1. Open the Windows Registry Editor
- Press
Win + R
, typeregedit
, and hit Enter. - Click Yes if prompted by User Account Control (UAC).
2. Navigate to the RDP Port Key
Go to this path in the Registry Editor:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp
3. Find and Modify the Port Number
- Look for a value called PortNumber.
- Double-click it.
- Select Decimal as the base.
- Change the value from 3389 to your new port (e.g., 3390, 4444, etc.).
- Click OK.
4. Allow the New Port Through Windows Firewall
- Open Windows Defender Firewall.
- Click Advanced settings.
- Go to Inbound Rules, find Remote Desktop – User Mode (TCP-In).
- Right-click → Properties → Protocols and Ports tab.
- Change the Local port to your new port number.
- Repeat the same for any related RDP rules.
Or, create a new inbound rule:
- Port → TCP → Specific port (your new one) → Allow the connection → Apply to all profiles → Give it a name like “Custom RDP Port.”
5. Restart Your Computer
Restart the machine to apply the changes.
How to Connect to the New RDP Port
When using Remote Desktop Connection, type your IP or hostname followed by a colon and the port number:
192.168.1.100:3390
Final Notes
- Avoid using common alternate ports like 22 or 8080 — pick something obscure but within the valid range (1025–65535).
- If you’re behind a router or firewall, make sure the new port is forwarded properly.
- Always combine RDP security tweaks with stronger solutions like Network Level Authentication (NLA), VPN, and strong passwords.
Changing the RDP port isn’t a silver bullet, but it’s a smart move if you’re hardening a Windows system for remote access. Handle with care, document your changes, and always have a fallback plan.
Tech enthusiast and content creator passionate about making technology simple for everyone. I share practical tips, guides, and reviews on the latest in computers, software, and gadgets. Let’s explore the digital world together!