E1. The General Format of Address

The network address looks as follows:

[<protocol>/][<protocol-specific-part>]

By default, <protocol> has the TCP value, IPX and NetBIOS are also possible. The default values of <protocol-specific-part> are determined by the application.

IP Addresses

<interface>::=<ip-address>

<ip-address> can be either a DNS name or an IP address separated by periods (for example, 127.0.0.1).

<socket-address>::=<interface>:<port-number>

<port-number> must be specified by a decimal number.

IPX Addresses

<interface>::=<ipx-network>.<mac-address>

<ipx-network> must contain 8 hexadecimal numbers, <mac-address> must contain 12 hexadecimal numbers.

<socket-address>::=<interface>:<socket-number>

<socket-number> must contain 4 hexadecimal numbers.

NetBIOS Addresses

Datagram-oriented protocol:

nbd/NAME[:PORT[:LANA]]

Connection-oriented protocol:

nbs/NAME[:PORT[:LANA]]

where NAME — NetBIOS computer name, PORT — port (by default 23), LANA — number of the network adapter (important for NetBEUI).

Examples:

1.tcp/127.0.0.1:2193

means a TCP protocol, port 2193 on an interface 127.0.0.1.

2.tcp/[::]:2193

means a TCP protocol, port 2193 on an IPv6 interface 0000.0000.0000.0000.0000.0000.0000.0000

3.localhost:2193

the same.

4.tcp/:9999

value for the Server: the default interface depending on the application (usually all available interfaces), port 9999; value for client: the default connection to the host depending on the application (usually localhost), port 9999.

5.tcp/

TCP protocol, default port.

6.spx/00000000.000000000001:2193

means socket SPX loopback 0x2193.

UDS Addresses

Connection-oriented protocol:

unx/<file_name>

Datagram-oriented protocol:

udx/<file_name>

Examples:

1.unx/tmp/drwcsd:stream

2.unx/tmp/drwcsd:datagram

Connection-Oriented Protocol

<protocol>/<socket-address>

where <socket-address> sets the local address of the socket for the Server or a remote server for the client.

Datagram-Oriented Protocol

<protocol>/<endpoint-socket-address>[-<interface>]

Examples:

1.udp/231.0.0.1:2193

means using a multicast group 231.0.0.1:2193 on an interface depending on the application by default.

2.udp/[ff18::231.0.0.1]:2193

means using a multicast group [ff18::231.0.0.1] on an interface depending on the application by default.

3.udp/

application-dependent interface and endpoint.

4.udp/255.255.255.255:9999-myhost1

using broadcasting messages on port 9999 on myhost1 interface.