in reply to Public IP Address
Here are a few alternatives:
http://www.ipchicken.com/
http://www.whatismyip.com
Here is some parsing code that will generically work on all 3 : (It could be made more paranoid, or cleverer, but this is easy to read):
Better still, use Regexp::Common: (untested)my ($IP_addr)=$content=~m/(\d+\.\d+\.\d+\.\d+)/;
use Regexp::Common qw /net/; my ($IP_addr)= $content=~ /$RE{net}{IPv4}/ ;
"A closed mouth gathers no feet." --Unknown
|
|---|