in reply to Getting net addy on localhost?
You can use Net::hostent gethost() to get $h->name,
which would be the outside name (not localhost),
then use gethost() again on that outside name
and the address is in inet_ntoa($h->addr).
Look at `perldoc Net::hostent`.
In Section
Seekers of Perl Wisdom