A Terminal Server Gateway (TS Gateway) server is a kind of gateway that enables authorized users to connect to remote computers on a corporate network. These authorized users can connect from any computer by using an Internet connection. TS Gateway uses the Remote Desktop Protocol (RDP) together with the HTTPS protocol to help create a more secure encrypted connection.

Earlier versions of RDC cannot connect to remote computers across firewalls and across network address translators. This is because port 3389 is typically blocked to improve network security. Port 3389 is the port that is used for Remote Desktop connections. However, a TS Gateway server uses port 443. Port 443 transmits data through a Secure Sockets Layer (SSL) tunnel.
A TS Gateway server has the following benefits:
It enables Remote Desktop connections to a corporate network from the Internet without requiring a virtual private network (VPN) connection.
It enables connections to remote computers across firewalls.
It helps you share a network connection with other programs that are running on the computer. This enables you to use the Internet service provider (ISP) connection instead of the corporate network to send and to receive data over the remote connection.
To specify a TS Gateway server, follow these steps:
1. Click Start, click All Programs, click Accessories, click Communication, and then click Remote Desktop Connection.
2. Click Options, click the Advanced tab, and then click Settings.
3. Click Use these TS Gateway server settings, type the server name in the Server name box, and then select one of the following logon methods from the Logon methods list:
  Allow me to select later
This option lets you select a logon method when you connect.
  Ask for password
This option prompts you for a password when you connect.
4. Select or clear the Bypass TS Gateway server for local addresses check box. By selecting this check box, you prevent the traffic that is moving to and from local network addresses from being routed through the TS Gateway server. This option makes the connection faster.