16.5 Inetd Environment
If a connection is made with a streaming protocol (‘stream’) and
if --environment option has been given, inetd will
set the following environment variables before starting the program:
- Always ‘TCP’.
- Local IP address of the interface which accepted the connection.
- Port number on which the TCP connection was established.
- IP address of the remote client.
- Port number on the client side of the TCP connection.
Additionally, if given the --remote option, inetd
sets the following environment variables:
- DNS name of TCPLOCALIP.
- DNS name of TCPREMOTEIP.