There was a problem loading the comments.

How to change the default Windows RDP port to improve security.

Support Portal  »  Knowledgebase  »  Viewing Article


Changing the default RDP (Remote Desktop Protocol) port on your VPS can be done by following these steps:

  1. Log in to your VPS using Remote Desktop Connection or any other remote desktop client.

  2. Open the Registry Editor by typing "regedit" in the Start menu search bar and pressing Enter.

  3. Navigate to the following key: 

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


  4. Locate the "PortNumber" entry in the right-hand pane and double-click on it.

  5. Select "Decimal" and change the value to the new port number you want to use. Make sure the new port number is not already in use by another service.

  6. Close the Registry Editor and restart the Remote Desktop service.

  7. If you are using Windows Firewall, you will need to allow the new port through the firewall. Open the "Windows Defender Firewall with Advanced Security" and create a new inbound rule that allows the new RDP port.

  8. Test the new RDP connection by using the new port number in your remote desktop client.

Changing the default RDP port can improve security, as it makes it harder for attackers to find and exploit your RDP service.

However, changing the port number may also require additional configuration changes in any firewalls, routers, or port forwarding rules you have set up.

Also, be sure to remember the new port number, as you will need to use it when connecting to your VPS via RDP in the future.

Another option would be to secure your Windows VPS or Dedicated Server using a VPS such as Wireguard.

Share via
Did you find this article useful?  

Related Articles


© Rackzar