$DEFAULT_TCP_HOST

Specify the default host identifier for the local host, to help in TCP protocol resolution (for both TCP and TLS protocols).

$DEFAULT_TCP_HOST = localhost | HostID

Arguments

  • HostId—host machine where the Uniface Router that handles requests for a server is running. If omitted, the default is localhost ( the current machine). It can be specified as:
    • A Domain Name Server (DNS) entry, such as mycompany.com
    • An Network Information Service (NIS) entry, such as examplehost
    • An IP address, such as 93.184.216.119 (TCP4) or 2606:2800:220:6d:26bf:1447:1097:aa7 (TCP6).

    The format of the IP address, either as specified or as resolved by the DNS or NIS entry, determines the version of the TCP/IP protocol used. For more information, see Host Identification for TCP/IP and TLS.

Defaults

Assignment file: Assignment files of Uniface Servers and the Uniface Router
Section: [SETTINGS]
Default value: None

Description

To determine which TCP/IP protocol version should be used to create a listening port, the network connector attempts to discover the IP addresses for the local machine. On some platforms, this information is provided only if a host name is specified; otherwise TCP4 is used.

You can use the $DEFAULT_TCP_HOST setting to specify the default host name for the local host. The protocol version is derived from the format of the host identifier, either as a literal IP address or as a name that resolves to an IP address. If you provide a name that successfully resolves to TCP6, it will use TCP6 for this listening port.

Note:  TCP6 is not supported by the Uniface Router Monitor, so do not use this format if you are using these facilities.

This setting is especially useful in an exclusive server assignment file. Like the Uniface Router, an exclusive server may need to create its own listening port, and this is the only way to unambiguously specify the identifier for the local host.

$DEFAULT_TCP_HOST is applicable to both TCP and TLS connections.

Related Topics