in reply to Detecting when my ISP changes my IP
For me this works on Linux and Win32, and I use a cable modem too.use Socket; use Sys::Hostname; my $host = hostname(); my $address = inet_ntoa(scalar gethostbyname($host || 'localhost')); print "$host > $address\n" ;
Graciliano M. P.
"The creativity is the expression of the liberty".
|
|---|