Windows 10's default RDP port has been the same for so long that many admins know it off by heart: 3389. Unfortunately, though, they aren't the only ones. It's typically the first one hackers try, meaning anyone with the default setting is more prone to a successful attack.

As a result, it can be well worth taking the time to change RDP port in Windows 10. It won't radically increase your server's security, but this small change can combines with other techniques to create a much safer experience on the whole.

This guide will show you how to change RDP port in Windows 10 using Regedit to give you a better chance of resisting an attack.

How to change RDP port

As mentioned, the process to change RDP port starts and ends with Regedit. This was the case for older versions of Windows, at it applies to Microsoft's latest OS, too.

To open it, press Windows + R and type "regedit". Then, press Enter.

Run dialog populated with the word 'regedit'

Navigate to the RDP TCP port number by pasting the following into your search bar or navigating to the sub-key manually:

Computer\HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp

Find the "PortNumber" DWORD and double-click it.

The registry editor with PortNumber selected

In the resulting editing dialog, change the Value data to your new port number which should be between 1025 and 65535, making sure it's set to Decimal.

Edit DWORD interface with the value data 1337

Press OK and close the registry editor. You have now successfully changed RDP port in Windows 10, but you'll need to restart your VPS for the changes to take. You can do so via your VPS control panel, but this is no recommended as it performs a full power cycle and can cause data corruption.

Instead, press Start and then the power button, or type shutdown /s in Command Prompt.