• Skip to primary navigation
  • Skip to main content
  • Skip to footer

Company · Blog · Newsletter · Events · Partner Program

Downloads      Support      Security     Admin Login
Rublon

Rublon

Secure Remote Access

  • Product
    • Regulatory Compliance
    • Use Cases
    • Rublon Reviews
    • Authentication Basics
    • What is MFA?
    • Importance of MFA
    • User Experience
    • Authentication Methods
    • Rublon Authenticator
    • Remembered Devices
    • Logs
    • Single Sign-On
    • Access Policies
    • Directory Sync
  • Solutions
    • MFA for Remote Desktop
    • MFA for Remote Access Software
    • MFA for Windows Logon
    • MFA for Linux
    • MFA for Active Directory
    • MFA for LDAP
    • MFA for RADIUS
    • MFA for SAML
    • MFA for RemoteApp
    • MFA for Workgroup Accounts
    • MFA for Entra ID
  • Customers
  • Industries
    • Financial Services
    • Investment Funds
    • Retail
    • Technology
    • Healthcare
    • Legal
    • Education
    • Government
  • Pricing
  • Docs
Contact Sales Free Trial

How to Change the RDP Port in Windows

February 13, 2023 By Rublon Authors

Last updated on April 23, 2024

When you start a Remote Desktop connection, the Remote Desktop client on your computer starts listening to the connection on a defined listening port. The default port for RDP is 3389.  This article describes how to change the RDP listening port.

How to change the RDP port in Windows?

1. Before you make any changes, choose a new port number.

Pick a port within the 1024-49151 range.

Using well-known ports (1-1023) or dynamic, private, or ephemeral ports (49152-65535) is not recommended.

We picked port 33900 for this tutorial.

2. If you use a firewall, open the port you want to use for RDP.

3. Connect to your remote computer (Windows Client or Server) via RDP.

Image showing opening the Remote Desktop Connection to change the RDP port in Windows

4. Start the registry editor (press WIN+R, type regedit, and press Enter).

Image showing typing regedit in the Run window

5. Navigate to the following Remote Desktop Registry:

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp
Image showing editing the Windows Registry to change the RDP listening port

6. Find the PortNumber value, double-click it, and change the port number (Base Decimal).

Image showing changing the RDP port number in Windows registry

7. Click OK to save the changes and restart your computer for the changes to take effect.

How to validate the RDP port change in Windows?

1. After changing the RDP port in Windows and restarting your computer, connect to your Windows Server or Client via RDP.

Image showing opening the Remote Desktop Connection to validate the RDP port change in Windows

2. Open Powershell (press WIN+R, type powershell, and press Enter).

Image showing typing powershell in the Run window

3. Run the following PowerShell command to confirm Remote Desktop Service is listening on the new port:

Get-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -name "PortNumber"
Image showing the execution of a command in PowerShell to verify Remote Desktop Service is listening on the new port

Note

You can also verify the port change by running the command netstat -an in the Command Prompt and looking for your new port number in the list of addresses.

Why should I change the RDP port in Windows?

Remote Desktop Connection (RDP) is one of the most common cyberattack vectors. Changing the RDP port can help you defend against port scanning and hackers using brute force attacks to enter your remote computers to steal data.

How can I further improve my RDP security?

You can use Multi-Factor Authentication (MFA) to secure your Remote Desktop connections with an extra layer of protection. MFA adds a secure second factor that prevents 99.9 percent of attacks on your accounts.

Enabling company-wide Multi-Factor Authentication (MFA) may seem a daunting task. But it really isn’t. Mercifully, there are MFA security providers that can help you deploy MFA on all your endpoints, achieve regulatory compliance, and introduce strong security controls for your workforce.

How Rublon MFA can help

Rublon MFA is a sophisticated Multi-Factor Authentication (MFA) security provider that enables organizations with MFA for RDP, MFA for RD Gateway, MFA for RD Web Access, MFA for RD Web Client, and more.

To enable MFA for Remote Desktop Services, start a Free 30-Day Rublon Trial.

Filed Under: Blog

Try Rublon for Free
Start your 30-day Rublon Trial to secure your employees using multi-factor authentication.
No Credit Card Required


Footer

Product

  • Regulatory Compliance
  • Use Cases
  • Rublon Reviews
  • Authentication Basics
  • What is MFA?
  • Importance of MFA
  • User Experience
  • Authentication Methods
  • Rublon Authenticator
  • Remembered Devices
  • Logs
  • Single Sign-On
  • Access Policies
  • Directory Sync

Solutions

  • MFA for Remote Desktop
  • MFA for Windows Logon
  • MFA for Remote Access Software
  • MFA for Linux
  • MFA for Active Directory
  • MFA for LDAP
  • MFA for RADIUS
  • MFA for SAML
  • MFA for RemoteApp
  • MFA for Workgroup Accounts
  • MFA for Entra ID

Secure Your Entire Infrastructure With Ease!

Experience Rublon MFA
Free for 30 Days!

Free Trial
No Credit Card Required

Need Assistance?

Ready to Buy?

We're Here to Help!

Contact

Industries

  • Financial Services
  • Investment Funds
  • Retail
  • Technology
  • Healthcare
  • Legal
  • Education
  • Government

Documentation

  • 2FA for Windows & RDP
  • 2FA for RDS
  • 2FA for RD Gateway
  • 2FA for RD Web Access
  • 2FA for SSH
  • 2FA for OpenVPN
  • 2FA for SonicWall VPN
  • 2FA for Cisco VPN
  • 2FA for Office 365

Support

  • Knowledge Base
  • FAQ
  • System Status

About

  • About Us
  • Blog
  • Events
  • Co-funded by the European Union
  • Contact Us

  • Facebook
  • GitHub
  • LinkedIn
  • Twitter
  • YouTube

© 2025 Rublon · Imprint · Legal & Privacy · Security

  • English