GetIPAndPort method of the Win32_TSGatewayServerSettings class

Obtains the listening IP address and port number for the specified transport.

Syntax

uint32 GetIPAndPort(
  [in]  uint16 TransportType,
  [out] string IPAddress,
  [out] uint16 Port
);

Parameters

TransportType [in]

Specifies the transport type. This must be one of the following values.

0

RPC over HTTP transport.

1

HTTP transport.

2

UDP transport.

IPAddress [out]

A string that receives the listening IP address, in octet form (for example, "192.168.1.1").

Port [out]

Specifies the listening port number.

Return value

If the method succeeds, it returns zero. If the method is unsuccessful, it returns a nonzero value. For a list of error codes, see Remote Desktop Services WMI Provider Error Codes.

Requirements

Requirement Value
Minimum supported client
None supported
Minimum supported server
Windows Server 2012
Namespace
Root\CIMv2\TerminalServices
MOF
TSGateway.mof
DLL
AagWmi.dll

See also

Win32_TSGatewayServerSettings