tcp-environ(5)

NAME
tcp-environ - TCP-related environment variables

DESCRIPTION
The following environment variables describe a TCP connection. They are set up by tcp-env, tcpclient, and tcpserver. Note that TCP(6)LOCALHOST, TCP(6)REMOTEHOST, and TCP(6)REMOTEINFO can contain arbitrary characters.

PROTO
    The string TCP or TCP6.

TCPLOCALHOST
    The domain name of the local host, with uppercase letters converted to lowercase. If there is no currently available domain name for the local IP address, TCPLOCALHOST is not set.

TCPLOCALIP
    The IPv4 address of the local host, in dotted-decimal form or the respective compactified IPv6 address.

TCPLOCALPORT
    The local TCP port number, in decimal.

TCPREMOTEIP
    The IPv4 or the compactified IPv6 address of the remote host.

TCPREMOTEPORT
    The remote TCP port number.

TCPREMOTEHOST
    The domain name of the remote host, with uppercase letters converted to lowercase. If there is no currently available domain name for the remote IP address, TCPREMOTEHOST is not set.

TCPREMOTEINFO
    A connection-specific string, perhaps a username, supplied by the remote host via 931/1413/IDENT/TAP. If the remote host did not supply connection information, TCPREMOTEINFO is not set.

TCP6INTERFACE
    The interface name ("eth0") for IPv6 connections using link-local addresses.

TCP6LOCALIP
    The IPv6 address of the local host in compactified IPv6 address.

TCP6REMOTEIP
    The compactified IPv6 address of the remote host.

TCP6LOCALPORT
    and

TCP6LOCALHOST
    as well as

TCP6REMOTEPORT
    and

TCP6REMOTEHOST
    are identical to their IPv4 counterparts.

SEE ALSO
tcpclient(1), tcpserver(1), tcp-env(1), tcp(4)