Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Sets the listening IP address and port number for the specified transport.
Syntax
uint32 SetIPAndPort(
[in] uint16 TransportType,
[in] string IPAddress,
[in] uint16 Port,
[in] boolean OverrideExisting
);
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 [in]
Specifies the listening IP address, in octet form (for example, "192.168.1.1").
Port [in]
Specifies the listening port number.
OverrideExisting [in]
Indicates whether to override the existing IP/Port binding for HTTP. This parameter is only used if the TransportType parameter contains 0 (RPC over HTTP) or 1 (HTTP).
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 |
|
DLL |
|