By default Windows machines are remotely accessible via Remote Desktop on TCP port 3389. In certain situations changing the Remote Desktop port is useful, especially when you receive a huge number of failed Remote Desktop login attempts on default port. In order to change the default port of Remote Desktop, you'll need to alter the registry of your server.

The instructions below apply to machines under Windows Server 2012, 2008 R2, 2008, and 2003. Follow these steps:

- Login to your windows VPS/server as administrator via Remote Desktop

- Click simultaneously on the Windows logo + R to open the “Run

- Open the registry editor by typing the “regedit” command

- Search for this registry subkey:

                      HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TerminalServer\WinStations\RDP-Tcp\PortNumber

Double-click or right-click on the “PortNumber” registry subkey, select the decimal base and type the port number of your choice (the default port is 3389, in this example, we selected port 3390). Click on “Ok” to save your selection.


IMPORTANT: Make sure that remote access to your server through the new port is authorized in your Windows firewall before executing the next step

- Exit the registry editor
- Restart your VPS/server

Was this answer helpful? 0 Users Found This Useful (1 Votes)