http://www.perlmonks.org?node_id=217295


in reply to Perl script running on the client machine

If you have the name of a host, then you should be able to use gethostbyname() to get the IP from anywhere. If this is being used in a CGI context to track any sort of session data, check Super Search, as there have been comments before about IP's comming out of AOL and firewalls.
from the frivolous to the serious