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

Many of you use Remote Desktop feature to access your home or work computers running Windows 10. All you usually need to do to implement this is set up a port forwarding rule on your router. You can receive incoming connections on any port and direct them to RDP port of the Windows workstation on the LAN. But what to do if your PC is connected directly to the Internet without a router? How to configure the remote access and stay secured? The answer is – change remote desktop port in Windows settings. By default Remote Desktop uses port 3389 that is commonly known. Consequently, hackers can scan it and if they receive a login/password prompt they can start brute force attack and ultimately gain access to your PC. Here is how to change Remote Desktop Port on Windows 10 to some non-standard port to improve security and evade from brute force attacks aimed at default service port. 

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

  1. Open the registry editor (press Win+R, type regedit, press Enter): regedit win10
  2. Navigate to
    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp
  3. Find and double-click on the PortNumber value.
  4. Switch it to Decimal mode
  5. Change the default 3389 to your preferred port number. Perhaps, I wish it to be 3385:
  6. Click OK to save: change RDP port number
  7. Reboot your computer for changes to take effect.

Let’s Check The Access Using the New RDP Port

  1. Press Win+R.
  2. Type
    mstsc
  3. Hit Enter: mstsc
  4. Type your remote server’s IP or hostname and new port number through the colon. Just like this: 192.168.0.1:3385
  5. Hit Enter to connect:

    connect to RDP server non-standard port

    Connect to Remote Desktop server with non-standard port.

Once more: we don’t recommend to use RDP session without setting up OpenVPN or VPN. But changing the default port for Remote Desktop service will make a possible hack a bit more difficult as hackers use to scan/attack standard ports to gain access to your PC or server.

And the last tip: if you are using a shortcut to access your remote desktop server, don’t forget to save its new version with the new port number (otherwise you may not be able to connect anymore). To create a new RDP shortcut or update existing:

  • press Win+R, type mstsc (from deprecated “Microsoft Terminal Server Client”) and press Enter  to launch RDP dialogue: win+r mstsc
  • here click More OptionsRDP connection show options
  • now you may optionally enter your user name and, if you wish, even check the flag Allow me to save credentials and then click Save assave RDP shorctut
  • Create a new shortcut or replace the existing one.

Leave a Reply

Your email address will not be published.