Change the Remote Desktop (RDP) Port in Windows Server


Why change the RDP port?

  • Reduces risk of automated scans and brute-force attacks
  • Helps you personalize and secure remote access
  • Useful in environments where hiding the default port is required

Steps to change the RDP port in Windows Server

1. Open the Registry Editor (Regedit)

  • Press Win + R, type regedit and press Enter
  • Navigate to:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp
  • Find the PortNumber key and double-click it
  • Set it to Decimal and enter your new port (e.g., 3390)

2. Open the new port in the firewall

  • Go to Control Panel > Windows Firewall > Inbound Rules
  • Find the "Remote Desktop" rule, copy and modify it to match your new port
  • Or create a new rule to allow the new TCP port

3. Restart the server or RDP service

  • You can restart the whole server to apply the changes
  • Or go to Services and restart Remote Desktop Services

4. Connect using the new port

  • In your RDP client, use the IP followed by a colon and the port:
23.175.40.x:3390

Precautions

  • Don't close your session until you're sure the new port is working
  • Use a second RDP session to test the new configuration safely

Need help?

If you lose access or can't connect through the new port, open a support ticket at billing.baires.host and we’ll help you recover access.

You can also reach us on social media:

Was this answer helpful? 0 Users Found This Useful (0 Votes)