Tutorials

How To Change Remote Desktop (RDP) Port On Windows 10

Written by Brendan Smith

Many PC owners enjoy the feature of Remote Desktop for accessing their home or work PCs on Windows 10. Implementing this feature simply requires setting up a specific port forwarding rule by accessing your router settings. As a result, you can get incoming connections on any port and forward them to RDP port of the Windows computer on the LAN. However, what if your PC is connected to the web without any router in place? How to set up the remote access and maintain your system in a safe environment? The trick is simple – modify remote desktop port in Windows parameters.

The Remote Desktop by default applies port 3389, which is a well-known fact. This means that hackers can examine the default RDP port and if they manage to obtain a login/password prompt they may initiate the brute force attack and eventually gain access to your system via RDP. Below please find the working solution on how to amend Remote Desktop Port on Windows 10 to some non-standard parameter to enhance security and avoid brute force attacks targeting the default service port.

How To Modify Remote Desktop Port Number On Windows 10

  1. Launch the Registry Editor (press Win+R, type regedit, press Enter):
    Run Regedit
  2. Go to HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp:
    Regedit RDP
  3. Perform a double-click on the PortNumber value:
    RDP TCP
  4. Amend the value to Decimal mode:

  5. Modify the default port from 3389 to your desired port number. For example, set it to be 33089:
    RDP port changes
  6. Don’t forget to click OK to save the changes;
  7. Restart your PC to apply the amendments.

Checking the access via the amended RDP port

  1. Apply the “Win + R” hotkey.
  2. Type
    mstsc
  3. Click “OK”
  4. Provide the IP address of your remote server, as well as the new port number in the “Remote Desktop Connection” window:
    Remote Desktop Connection
  5. Press “Enter” to initiate the connection.

Important tip: we strongly advise that you use RDP session only in conjunction with the OpenVPN or other VPN service available. However, amending the default port for Remote Desktop tool will make a possible hack a bit more complex as hackers use to investigate/attack common ports to get access to your computer or server.

Another important piece of advice: when you have a specific shortcut to get connected to your remote desktop server, make sure you provide it with the new settings that reflect the change of the port number. Failure to do so will not let you connect properly.

Steps to create a new RDP shortcut or to modify the existing one

  • Apply the “Win + R” hotkey, then type mstsc and hit Enter to start RDP dialogue:
  • click on “Show Options” or “More Options”;
  • optionally provide your user name and, if necessary, check the flag “Allow me to save credentials”:
    RDP Options
  • click on “Save as”;
  • finally, create a new RDP shortcut, or replace the existing shortcut with the new one.
  • .

Performing the steps above will give your security for your Windows and protect your system from hackers. An example see Dharma ransomware article.

Sending
User Review
0 (0 votes)
Comments Rating 0 (0 reviews)

About the author

Brendan Smith

Journalist, researcher, web content developer, grant proposal editor. Efficient and proficient on multiple platforms and in diverse media. Computer technology and security are my specialties.

Leave a Reply

Sending

This site uses Akismet to reduce spam. Learn how your comment data is processed.