http://qs1969.pair.com?node_id=127733


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`.