Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Detecting when my ISP changes my IP

by Kanji (Parson)
on Sep 22, 2002 at 05:34 UTC ( #199857=note: print w/ replies, xml ) Need Help??


in reply to Detecting when my ISP changes my IP

You don't say why you need to detect an IP change, but there's been a few similar posts here in the monastery that might be worth checking out.

Another option if you use ISC's dhclient, is to forego Perl altogether and make use of dhclient-script's exit hooks with an (untested!) shell script like...

#!/bin/sh ## Script is sourced from dhclient-script. ## $reason and $new_ip_address are set there. if [ "X$reason" = "XBOUND" ]; then echo $new_ip_address > ~adamm/.current_inet_addr fi

    --k.



Comment on Re: Detecting when my ISP changes my IP
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://199857]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2015-07-04 17:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls