Microsoft Internet Security and Acceleration Server 2004 SDK

OverrideServerPort Property of IFPCServerPublishingProperties[C++]

FPCServerPublishingProperties.OverrideServerPort [Visual Basic]

[C++]

The OverrideServerPort property gets or sets the port number for overriding the default port on the server published by the rule to which the ISA Server 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.

HRESULT get_OverrideServerPort(
  long* plServerPort
);

HRESULT put_OverrideServerPort(
  long lServerPort
);

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 ISA Server computer will forward requests, or to 0 if the 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 ISA Server computer will forward requests.

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 OverrideServerPort property gets or sets the port number for overriding the default port on the server published by the rule to which the ISA Server 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.

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 ISA Server computer will forward requests.

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