Perhaps my use of the term 'tty' was inappropriate.
Our application is a Warehouse management system that uses a large network of wireless PC's running terminal emulators. Each wireless PC (natch) has an IP address. It would be nice to be able to capture this information for logging / debugging purposes. We are maintaining an error log table in Oracle, and we would like the client app to be able to include the IP in error messages in this table.
We
can discover the IP addresses of these sessions from a host command line as follows:
who -uH am i
...and examining the "COMMENTS" column. Hence we DO know that the HPUX server has access to this information, and that the 'who' command can retrieve it. If only I had the source code for 'who' ....