$DEFAULT_NET

Set the default network path for clients, Uniface servers, or Uniface Routers.

$DEFAULT_NET=NetworkConnector:HostID+PortNumber:TLSProfile {|UserName|Password}

Arguments

  • NetworkConnector—three-letter code for the network connector; one of TCP or TLS. Default is TCP, but it is not always possible to omit this value in path assignments.
  • 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.

  • PortNumber—port number on which the server or Uniface Router listens. If omitted, the default depends on the type of server and protocol. For the Uniface Router on TCP, it is 13001.
  • TLSProfile—name of a TLS connection profile that is defined in the [NET_SETTINGS] section of the assignment file; applicable only if NetworkConnector is TLS. For more information, see TLS Connection Profiles.
  • UserName—logon name and additional (operating system-specific) information to log on to HostID. Additional information might be, for example, a domain name used by HostID to validate UserName.

  • Password—password of UserName to log on to HostID

Defaults

Assignment file: assignment files of clients, Uniface Servers, and Uniface Routers
Section: [SETTINGS]
Default value: None

Description

The $DEFAULT_NET assignment file setting can be used to specify the default network path of remote or local connections.

Uniface programs search for the port number in the following order:

  1. Path assignment in the [PATHS] section
  2. $DEFAULT_NET assignment setting in the [SETTINGS] section
  3. A connector-specific system setting. For TCP and TLS , this is the value defined for the Urouter service using TCP, as defined in the /etc/services file for urouter9 (Unix), or platform-specific equivalent.
  4. Hard-coded default port.

$DEFAULT_NET for Uniface Router

The Uniface Router uses the $DEFAULT_NET setting to determine the port it should listen on. If UserName and Password are specified, they are ignored.

It is only possible to specify one connector and port number, so if you want to specify multiple ports, use both the TCP and TLS network connectors, and do not set $DEFAULT_NET. Instead, you must specify the connectors and port numbers on the command line when starting Uniface Routers. For example

On Windows:
urouter /inst="Uniface 10 urouter" TCP:+13001 TCP:+13002
urouter /inst="Uniface 10 urouter" TLS:+13002:Srv1Cert TCP:+13001

On Linux and Unix:
urouter TCP:+13001 TCP:+13002
urouter TLS:+13002:Srv1Cert TCP:+13001

Example: Using $DEFAULT_NET

For a client, it is useful to specify the default host name, port number, user name, and password to remove redundancy from the assignment file, for example:

[SETTINGS]
$DEFAULT_NET = TCP:myhost+13005|guest|?

[PATHS]
$FILES = TCP:||| + FIL:|||
$SRU = TCP:||| + SRU:|||