Windows Server 2012 RDS: Changing the Default Port of RD Gateway
The RD Gateway can be used to securely publish RemoteApps or Full Desktops over the internet over Secure Sockets Layer (SSL). By default the RD Gateway port listeners on port 443 for incoming requests. With Windows Server 2012, it’s possible to change this default port. This Wiki will guide in changing this default port, and use it inside a client.
With Windows Server 2012, many of the RDS roles can now be managed using the new central Server Manager console. The RD Gateway is an exception to this. So we open up the Remote Desktop Gateway Manager which is also available as a Windows 8 tile.
http://2.bp.blogspot.com/--nGttCEPr-o/T7OowyRhb0I/AAAAAAAAAy8/bSuvPLxP4Y4/s320/1.png
We right-click the properties of the RD Gateway server and select properties and on the properties dialog we select Transport Settings.
http://4.bp.blogspot.com/-VzL58KHI9EM/T7OoyJ8zp8I/AAAAAAAAAzE/HVs6aSe0IBA/s320/2.png
Here we have the option available “HTTP Port (default 443)” to change the default port. In this example we change it to port 666 and apply the configuration. We need to confirm that the following actions will be performed; 1. A listener is added to the firewall, all active connections will be disconnected and the RD Gateway Server will be restarted
http://2.bp.blogspot.com/-Uzy1N_GFvjI/T7OozPUoF6I/AAAAAAAAAzI/S-nB_egMGP8/s320/3.png
We can then configure the client to start using the RD Gateway on the new port by simply adding “:666” to the configuration in e.g. mstsc
http://4.bp.blogspot.com/-Y6AQ3rt97JQ/T7Oozm9kOeI/AAAAAAAAAzQ/fDrDk9ZLqtU/s320/4.png
Using the RD Gateway button on the RDP bar we can confirm that we’re actually using the RD Gateway by using the new port.
http://4.bp.blogspot.com/-dN4ULooCipA/T7Oo0f4UcpI/AAAAAAAAAzY/f8JsshHEFhQ/s320/5.png