Friday, December 9, 2022

How To Change RDP Port On Windows 10 And 11?

Microsoft’s Remote Desktop Protocol allows users to connect to another computer from a remote location.

This makes completing tasks on another PC over a distance simple and easy. The RDP port is used to send signal to the host computer, which allows the client computer to control it.

Microsoft always uses 3389, the standard port, which allows hackers to easily connect through remote systems and use password guessing scripts to take control.

It is smart to change the RDP port for this reason on your Windows PC. Here I have shown how to change the RDP port on Windows 10 and 11 so stick to end!

How To Change RDP Port On Windows 10 And 11?

RDP port can be changed from the Registry. You can do this by directly editing it from the Registry Editor or using a series of commands from the Windows PowerShell.

Here I have shown both the methods so you can pick the one you prefer.

Method 1: Changing The RDP Port Using Registry Editor

Registry Editor allows users to edit the Windows Registry. However, editing Windows Registry can be risky and if done incorrectly can lead to system crashes.

So, first backup your Registry keys and then follow the steps as I have shown. You can follow this article to back up the registry keys.

Once you have backed up your Registry, follow the steps give below to change the RPD port using Registry editor:

  • Press the Windows + R keys to open Run.
  • Type regedit in the command box and press Enter. This will open the Registry Editor.


  • Navigate to the following path:
Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp
  • Locate the PortNumber REG_DWORD and double-click on it.
  • Select the Decimal option and set the Port you want. Click on OK to save the changes.


Now restart your PC to have the changes take place.

Method 2: Changing The RDP Port Using PowerShell

If you don’t prefer messing with the Registry directly and would much rather use some quick commands, then you can use the PowerShell to do it.

Here is how you can do it:

  • Right-click on the Start menu.
  • Select Windows PowerShell (Admin) from the menu.


  • Type in the following command and press Enter:
Get-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -name "PortNumber"


  • After the port number is displayed, enter the following commands:
$portvalue = 3320

Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -name "PortNumber" -Value $portvalue

New-NetFirewallRule -DisplayName 'RDPPORTLatest-TCP-In' -Profile 'Public' -Direction Inbound -Action Allow -Protocol TCP -LocalPort $portvalue

New-NetFirewallRule -DisplayName 'RDPPORTLatest-UDP-In' -Profile 'Public' -Direction Inbound -Action Allow -Protocol UDP -LocalPort $portvalue


Here we are changing the port value to 3320, so you can change it to the port number you want set.

Wrapping Up

So, there you have it. Now you know how to change RDP port number on Windows 10 and 11. Remember that keeping the standard port number, as set by Microsoft, is leaving your PC vulnerable.

Your digital security is in your hands and you should take charge of it. If you have any question regarding this topic, ask us in the comment section and we would happily help you as much as we can.

Sanmay Chakrabarti
Sanmay Chakrabarti
Sanmay is a Windows Insider and editor at BottoBotto. He is a Tech enthusiast and has been writing tech blogs for over 2 years now. He loves reading books, traveling to new places and listening to music in his free time.


Please enter your comment!
Please enter your name here

Must Read