OverrideServerPort Property of the IFPCServerPublishingProperties Interface

The OverrideServerPort property gets or sets the port number for overriding the default port on the server published by the rule to which the Forefront TMG computer will forward requests. The default port is specified in the PrimaryConnections property of the FPCProtocolDefinition object for the protocol specified in the PublishedProtocol property. If the value of the OverrideServerPort property is nonzero and if the protocol definition specifies only a single port for primary connections, this value will override the default port number. If the protocol definition specifies multiple ports for primary connections, these ports cannot be overridden, and the value of the OverrideServerPort property must be set to zero.

[C++]
HRESULT put_OverrideServerPort(
	long lServerPort
);
HRESULT get_OverrideServerPort(
	long* plServerPort
);

Parameters

plServerPort

Pointer to a 32-bit integer that is set on return to the port number for overriding the default port on the server published by the rule to which the Forefront TMG computer will forward requests, or to 0 if the default port should not be overridden.

lServerPort

A 32-bit integer that specifies the port number for overriding the default port on the server published by the rule to which the Forefront TMG computer will forward requests.

Return Value

These property methods return S_OK if the call is successful; otherwise, they return an error code.

[Visual Basic]
Property OverrideServerPort As Long

Property Value

A 32-bit integer that specifies the port number for overriding the default port on the server published by the rule to which the Forefront TMG computer will forward requests.

Remarks

This property is read/write. Its default value is 0, and its range of permissible values is from 0 through 65535.

If the value of this property is 0, the default port number assigned to the published protocol is used.

Requirements

Client Requires Windows Vista or Windows XP.
Server Requires Windows Server 2008.
Version Requires Forefront Threat Management Gateway (TMG).
IDL

Declared in Msfpccom.idl.

DLL

Requires Msfpccom.dll.

See Also

FPCServerPublishingProperties


Send comments about this topic to Microsoft

Build date: 11/30/2009

© 2008 Microsoft Corporation. All rights reserved.