LowEndBox - Cheap VPS, Hosting and Dedicated Server Deals

How To Change RDP Port on a Windows VPS

Tags: , , , , , , , , , Date/Time: February 16, 2021 @ 12:00 am, by raindog308

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!

 

I'm Andrew, techno polymath and long-time LowEndTalk community Moderator. My technical interests include all things Unix, perl, python, shell scripting, and relational database systems. I enjoy writing technical articles here on LowEndBox to help people get more out of their VPSes.

3 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

Leave a Reply to Dustin B. Cisneros Cancel 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 *