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:
- 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.
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.