Change the VPS Remote Desktop (RDP) port

It’s can be recommended to change windows remote desktop default port for added security or to change the entry port on your server to avoid a routing issue. You can change the default port with a few easy steps. First, you’ll define this port in a firewall rule, then you will change the RDP port.

You can choose to use any port that is not in use or reserved, there is a wiki list of all the ports that are officially or unofficially used. So it’s best to choose something that is not on that list. If you wish, contact our support team for a recommendation.

This process is considered an ‘advanced’ process as you need to modify the registry. If you fail to perform both actions correctly you will be locked out of your VPS and the only option is to completely reimage the server.

Therefore, we suggest you back up all important information before you attempt this. If you take care however you shouldn’t have a problem updating your port number.

Here are step by step instructions on how to modify your RDP port.

Step 1 – Change the Firewall to allow your new port

First you need to find the firewall. The best way to do this is to click on Windows icon and type in ‘Firewall’. You will see ‘Windows Firewall with Advanced Security’ appear.

  1. Open Firewall (Windows Defender Firewall with Advanced Security)
  2. From the left sidebar click on Inbound Rules
  3. From the right sidebar click on New Rule
  4. Select Port and click Next
  5. Select TCP and type the port number in Specific local port and click Next until you reach the step where you asked to enter a rule name, give the rule a name and Click Finish. (Repeat from #7 to #11 for UDP)

Step 2 – Change RDP TCP port on Windows Server

  1. Open registry editor app by searching for regedit in windows search or use RUN.
  2. Locate the following from regedit app:
    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp
  3. look for PortNumber and right-click on it and Modify
  4. Make sure to select Decimal under Base option
  5. Change the port number in the ‘value data’ area to any number you prefer, let’s say 1234 and click OK
  6. Quit the registry editor

Step 3 – Restart the server to make the changes

  1. Double-check that you have entered the correct details for the firewall and that this matches the details in the registry.
  2. When you are sure you have completed all the above steps. Restart the server.
  3. Try to connect to RDP as usual but when you type the IP address, don’t forget to type the custom port number after the IP in this format IP:Port (e.g. 192.168.1.5:1234)
  4. You should now be able to connect through that specific port to your server.
  5. Bobs your uncle!

The post Change the VPS Remote Desktop (RDP) port appeared first on Betfair trading blog | Expert advice from Professional Betfair trade.