Monday, March 20, 2017

How to change Remote Desktop port number


  1. Launch regedit by pressing Win+R and enter "regedit" in the field.
  2. Go to the following folder:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp
  3. Open the entry named "PortNumber".
  4. On the right side of the window, under Base part, set the radio button from hexadecimal to decimal and then enter the desired port number in the left side.
  5. Launch Windows Defender Firewall with Advanced Security by pressing Ctrl+R and enter "wf.msc" in the field.
  6. In the left column, select "Inbound Rules".
  7. In the right column, select "New Rule..."
  8. In the appearing window, select "Port" radio button and click Next.
  9. Leave the top radio button on TCP and enter the number given previously in regedit and click Next.
  10. Leave the radio button on the top option and click Next.
  11. Select the network types you want to enable RDP on (default is all of them) and click Next.
  12. Enter a name (up to you, it has no effect on functioning) and click Finish.