Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

hotshotharry

macrumors 6502
Original poster
Sep 6, 2007
315
0
Does anyone know of a program that will email the IP address of a host computer whenever the IP address changes?
 
DynDns

I don't know of anything that would email it to you but if you sign up to dyndns.com it keeps it constantly up to date and you'll get given a host name. For example username@homeip.net

Then you just put in that instead of the ip address. Of course you would need to update your router settings to reflect this!
 
If you're using Linux, here is a script that can be set up as a cron job. Should also work if you can use bash shell scripts with a mac or windows (I don't use either so I don't know how).


#! /bin/sh
date > date
ip=`lynx -dump checkip.dyndns.org | awk '{ print $4 }' | tr -d "\n\n"`
if
cat ip | grep $ip
then echo "IP hasn't changed. Not sending notification"
else
echo "Sending IP change notification"
nail -s $ip YOUR_EMAIL_ADDRESS < date
fi
echo -n `/bin/ip` > ip
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.