program to email IP address for use with VNC?

Discussion in 'iPhone Tips, Help and Troubleshooting' started by hotshotharry, May 18, 2009.

  1. hotshotharry macrumors 6502

    Sep 6, 2007
    Does anyone know of a program that will email the IP address of a host computer whenever the IP address changes?
  2. simplesamf macrumors newbie

    May 19, 2009

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

    Then you just put in that instead of the ip address. Of course you would need to update your router settings to reflect this!
  3. foob macrumors 6502


    Feb 17, 2009
    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 | awk '{ print $4 }' | tr -d "\n\n"`
    cat ip | grep $ip
    then echo "IP hasn't changed. Not sending notification"
    echo "Sending IP change notification"
    nail -s $ip YOUR_EMAIL_ADDRESS < date
    echo -n `/bin/ip` > ip

Share This Page