Page tree

Welcome to FreeSoftwareServers Confluence Wiki

Skip to end of metadata
Go to start of metadata

2 Changes must be made on the host, I won't cover DNS/DHCP stuff.

1st, change the port via RegEdit!

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TerminalServer\WinStations\RDP-Tcp\PortNumber

On the Edit menu, click Modify, and then click Decimal.
Type the new port number, and then click OK.

2nd, open the port in Windows Firewall with CMD

netsh advfirewall firewall add rule name="Custom RDP Port" dir=in action=allow protocol=TCP localport=[CUSTOMPORT#]    

Reboot!
For RDP Reboot via CMD line:

shutdown /r /t 5
   
  • No labels