Forum Discussion
Thomas Lecroart
Jun 12, 2019Copper Contributor
Windows server 2019 / Remote Desktop Gateway - cannot change tcp port
Hi, We've tried this on 2 different Windows 2019 installs (fully updated) : with Remote Desktop Gateway feature enabled. Using the RD Gateway manager, in Transport Settings, we try to change the def...
MBullot
Jun 19, 2020Copper Contributor
This problem took me way more time than it should have. Here is the complete solution :
Add Inbound Firewall rule for YourCustomPortValue
Regedit
[HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\TerminalServerGateway\Config\Core]
IsUdpEnabled REG_DWORD 0
Cmd
net stop tsgateway && net start tsgateway
Regedit
[HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\TerminalServerGateway\Config\Core]
HttpsPort REG_DWORD (YourCustomPortValue)
Cmd
net stop tsgateway && net start tsgateway
Trying to do both registry changes at once will result in the tsgateway service to fail with a warning.