how to change remote desktop port

Change Remote Desktop Port: Your Comprehensive Guide

By Laura Allen
AD

In the realm of remote desktop management, the port configuration plays a pivotal role in providing secure and seamless access to your computers. While the default Remote Desktop Protocol (RDP) port is 3389, there may be situations where you might need to change it. This guide walks you through the process of how to change remote desktop port, optimizing your security and accessibility.

Before delving into the how-to, it's crucial to understand why you might want to alter the default port. Changing the port can add an extra layer of security, helping to prevent unauthorized access attempts. It also allows you to run multiple Remote Desktop sessions simultaneously if required, by assigning separate ports to each instance.

Changing the Remote Desktop Port on the Remote Computer

To modify the RDP port on your target computer, you can use the Windows Registry. Proceed with caution, as incorrect changes can lead to system issues. Always backup your registry before making changes.

AD
How to Use Remote Desktop to Access Your Windows 11 PC From Anywhere
How to Use Remote Desktop to Access Your Windows 11 PC From Anywhere
How To Use Remote Desktop Connection In Windows & Mac
How To Use Remote Desktop Connection In Windows & Mac
How to Enable Remote Desktop in Windows 11
How to Enable Remote Desktop in Windows 11

A universal method involves using the Windows Registry Editor and Group Policy Object Editor. Here, we'll focus on the registry method due to its broader accessibility. Let's explore the steps involved in changing the remote desktop port.

Using Windows Registry Editor

Follow these steps to change the remote desktop port using Registry Editor:

How to Remotely Access PC From Phone: A 5-Minute Setup
How to Remotely Access PC From Phone: A 5-Minute Setup
Remote Desktop Not Resizing? 5 Ways to Fix Scaling Issues
Remote Desktop Not Resizing? 5 Ways to Fix Scaling Issues
the instructions for how to use remote desktop
the instructions for how to use remote desktop

  • Press the Windows key + R to open the Run dialog box.
  • Type 'regedit' and press Enter to open the Registry Editor.
  • Navigate to 'HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp'.
  • Look for the 'PortNumber' value in the right pane. This is the current RDP port number.
  • Double-click on 'PortNumber', change the value to your desired new port number (between 49152 and 65535), and click 'OK'.
  • Close the Registry Editor and restart your computer for the changes to take effect.

AD

Once your computer restarts, you can verify the change by running 'netstat -ano | findstr :' in the Command Prompt, replacing '' with your new RDP port.

Configure Remote Desktop Easy Print on Windows Server 2022/2025
Configure Remote Desktop Easy Print on Windows Server 2022/2025
How to Remotely Turn a PC On and Off
How to Remotely Turn a PC On and Off
Setting Up Remote Desktop in Windows 8
Setting Up Remote Desktop in Windows 8
3 Ways To Use Multiple Monitors With Remote Desktop (RDC) in Windows PC
3 Ways To Use Multiple Monitors With Remote Desktop (RDC) in Windows PC
5 Solutions to Fix Remote Desktop Not Allowing Copy Paste
5 Solutions to Fix Remote Desktop Not Allowing Copy Paste
How to Fix Remote Desktop Licensing Mode is Not Configured
How to Fix Remote Desktop Licensing Mode is Not Configured

Using Group Policy Object Editor

The Group Policy Object Editor provides an easy-to-use interface to manage RDP port settings. Here's how to use it:

AD
  • Press the Windows key + R to open the Run dialog box.
  • Type 'gpedit.msc' and press Enter to open the Local Group Policy Editor.
  • Navigate to 'Computer Configuration\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Security'.
  • Click on 'Security Levels' and double-click on 'Allow local connections'.
  • Check 'User-defined' and enter your desired port number in the 'Port number' field. Click 'OK'.
  • Now, close the Local Group Policy Editor and restart your computer.

How to use xrdp on Linux Mint 15 to allow remote desktop connections from Windows 8.
How to use xrdp on Linux Mint 15 to allow remote desktop connections from Windows 8.
a computer screen with the words remote desktop brid on it
a computer screen with the words remote desktop brid on it
How to Use Microsoft's Remote Desktop Connection
How to Use Microsoft's Remote Desktop Connection

Connecting to the Remote Computer with the Changed Port

After successfully changing the remote desktop port, you'll need to configure your remote desktop client to use this new port. Here's how to do it:

AD
  • Open the Remote Desktop client (mstsc.exe).
  • In the 'Computer' field, enter the new IP address or hostname followed by the new port number, e.g., '192.168.1.100:40000'.
  • Click 'Connect' to initiate the remote desktop session using the changed port.

Congratulations, you've successfully changed your remote desktop port! Regularly reviewing and updating your security measures, like changing default ports, ensures a robust and secure remote desktop experience.

Remember, always keep your systems updated and be vigilant about potential security threats. If you encounter any issues, don't hesitate to seek professional guidance. Happy secure computing!

AD