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

    Joined:
    Sep 6, 2007
    #1
    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

    Joined:
    May 19, 2009
    #2
    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!
     
  3. foob macrumors 6502

    foob

    Joined:
    Feb 17, 2009
    #3
    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
     

Share This Page