Microsoft Internet Security and Acceleration Server 2004 SDK

OverridePublishPort Property of IFPCServerPublishingProperties[C++]

FPCServerPublishingProperties.OverridePublishPort [Visual Basic]

[C++]

The OverridePublishPort property gets or sets the port number for overriding the default port on which the ISA Server computer will listen for requests on behalf of the server published by the rule. 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 OverridePublishPort 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 OverridePublishPort property must be set to zero.

HRESULT get_OverridePublishPort(
  long* plPublishPort
);

HRESULT put_OverridePublishPort(
  long lPublishPort
);

Parameters

plPublishPort
Pointer to a 32-bit integer that is set on return to the port number for overriding the default port on which the ISA Server computer listens for requests on behalf of the server published by the rule, or to 0 if the the default port should not be overridden.
lPublishPort
A 32-bit integer that specifies the port number for overriding the default port on which the ISA Server computer listens for requests on behalf of the server published by the rule.

Return Values

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

Remarks

This property is read/write. Its default value is 0.

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

[Visual Basic]

The OverridePublishPort property gets or sets the port number for overriding the default port on which the ISA Server computer will listen for requests on behalf of the server published by the rule. 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 OverridePublishPort 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 OverridePublishPort property must be set to zero.

Property OverridePublishPort As Long

Property Value

A 32-bit integer that specifies the port number for overriding the default port on which the ISA Server computer listens for requests on behalf of the server published by the rule.

Remarks

This property is read/write. Its default value is 0.

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

Requirements

Server: Requires Windows Server 2003 or Windows 2000.
Version: Requires Internet Security and Acceleration Server 2004.
Header: Declared in Msfpccom.idl.
Library: Use Microsoft Internet Security and Acceleration Server 2004 Administration Library.

See Also

FPCServerPublishingProperties