LowEndBox - Cheap VPS, Hosting and Dedicated Server Deals

How To Change RDP Port on a Windows VPS

This article was contributed by Dustin Cisneros from RackNerd. If you are looking for a Windows VPS, Linux VPS or even shared/reseller hosting services — be sure to take a look at RackNerd’s latest LowEndBox special offers here.

If you ordered a Windows VPS, you may want to consider changing your RDP port to one that is on a non-standard port. By default, the RDP protocol utilizes port 3389, which is commonly bruteforced and/or scanned. Changing your Windows Server’s RDP listening port is an extra security step you can take.

In this tutorial we will go over how to change the RDP port on your Windows VPS.

  1. Log into your Windows VPS via the Remote Desktop Connection Client.
  2. Once connected to the VPS, start the registry editor. (Type regedit in the search area)
  3. Navigate to the following registry subkey: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp
  4. Find PortNumber
  5. Click Edit > Modify, and then click Decimal.
  6. Type the new port number you’d like to change your RDP port to, and then click OK.
  7. Close the registry editor
  8. Allow the new port number in your Windows Firewall settings
  9. Restart the Windows Server.

After the server has finished restarting, you will notice the server no longer responds to RDP connections on the standard port, so you will now need to specify the port when connecting via RDP. For example, VPSIP:PORTNUMBER

Do you change the RDP port on your Windows VPS? What other security measures do you take when deploying a Windows based server? Leave your feedback down in the comments section below!

 

raindog308

5 Comments

  1. We enjoy giving back to the community! Have topics you’d like for RackNerd to contribute? Be sure to comment :)

    Looking for the best deal around for a Windows VPS? Take a look: https://my.racknerd.com/cart.php?a=add&pid=299

    February 16, 2021 @ 1:01 am | Reply
    • Stepan:

      Thank you!
      Is there easy way to enforce secure connections in WFS settings?
      Also prompt for certificate bothers me, it shows up randomly out of the blue, unpredictably when starting RDP session.

      March 16, 2021 @ 7:23 am | Reply
  2. I created a scheduled job in PowerShell that pings my router’s dynamic DNS hostname and updates my VPS’s firewall to only allow RDP connections from it.

    This lets me restrict access to my IP address even though it’s dynamic and changes frequently.

    https://gist.github.com/lucent-sea/18352202a542f875cc9ac9c3c5113d94

    Also, IPBan is really nice!

    https://github.com/DigitalRuby/IPBan

    March 31, 2021 @ 1:01 am | Reply
  3. Thank you for writing this content. Looking for it from quite sometime as due to pandemic, use of RDP increases and security threats also. So, port changing is a good option to go for. Keep up the good work.

    May 21, 2021 @ 8:20 am | Reply
  4. If you are unable to connect to your Windows VPS using the default port (3389), you can change your RDP Port on a Windows VPS. The default port is typically found in the Windows VPS settings, but you may need to open the port manually.

    June 1, 2022 @ 8:35 am | Reply

Leave a Reply

Some notes on commenting on LowEndBox:

  • Do not use LowEndBox for support issues. Go to your hosting provider and issue a ticket there. Coming here saying "my VPS is down, what do I do?!" will only have your comments removed.
  • Akismet is used for spam detection. Some comments may be held temporarily for manual approval.
  • Use <pre>...</pre> to quote the output from your terminal/console, or consider using a pastebin service.

Your email address will not be published. Required fields are marked *