How to change RDP port on Windows

For security reasons, it is necessary to change default service ports to non-standard ports (e.g., changing RDP from 3389 to 23389).

Instruction:

1. Create a snapshot of the instance

Go to your instance, select Take Snapshot, and then click Confirm.

2. Open the Registry Editor

Open the "Run" dialog (Windows Key + R), type regedit, and click OK.

3. Navigate to the RDP-Tcp key

In the Registry Editor, navigate to the following path: \HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp

4. Modify the PortNumber value

In the right-hand pane, right-click on PortNumber and select Modify.

5. Set the new port number

  • Select the Decimal base.

  • Enter your desired new port number. The port number should be four digits or more and must not conflict with other service ports.

  • In this example, the port is set to 43389.

  • Click OK when you are done.

6. Close all windows and restart the computer.

Last updated

Was this helpful?