Aminserve

Changing remote desktop port in Windows VPS (RDP)

Remote Desktop Protocol (RDP) allows remote administration of Windows systems over a network connection. It enables users to access GUI desktops, applications, files, and network resources on a remote host machine as if they were sitting in front of it. RDP uses the client-server model and transmits data over a TCP-based protocol.

By default, RDP listens on TCP port 3389 for incoming connections. While convenient, this well-known port number makes RDP vulnerable to attacks. Attackers and malware routinely scan network address ranges looking for open RDP ports to compromise. Therefore, it is highly recommended to change the default port if RDP is required.

Reasons to Change the Default RDP Port

Here are some key reasons to change the default RDP port:

How to Change the Default RDP Port

The RDP port can be changed by modifying a registry setting on Windows machines:

Change remote desktop port

  1. Open the Run dialog by pressing Windows + R and type “regedit” to launch the Registry Editor with admin rights.
  2. Navigate to the following registry key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp
  3. In the right-pane, locate the “PortNumber” DWORD value and double-click to modify it.
  4. Change the value data field to a custom port like 33389 and click OK. Avoid using common ports such as 22, 25 etc.
  5. Update firewall rules on the local and remote ends to allow the new port inbound.
  6. Reboot the system for changes to take effect.
  7. Notify legitimate users of the new RDP port to use when connecting remotely.

Extra Security Best Practices

In addition to changing the default port, implement these extra security measures:

Conclusion

The default RDP port 3389 provides an easy attack vector for malicious actors to target. While changing the port does not resolve all RDP security issues, it can effectively eliminate many automated small-scale attacks and slow down targeted efforts. Combined with additional safeguards, it is a simple hardening measure that adds tangible benefits by removing low-hanging fruit.

Exit mobile version