How about this?
use IO::Socket::INET; $s = IO::Socket::INET->new ( PeerAddr =>"1.2.3.4", Proto =>"udp", ) or die "no socket!\n"; print $s->sockhost, " ", scalar(gethostbyaddr($s->sockaddr,$s->sockdomain)),"\n";
In reply to Re: Detecting when my ISP changes my IP
by zengargoyle
in thread Detecting when my ISP changes my IP
by meonkeys
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |