Announcement

Collapse
No announcement yet.

[Script] Get WAN IP Address and Email if changed

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [Script] Get WAN IP Address and Email if changed

    If anyone is looking to get a quick script to return your WAN IP address, try this. Homeseer's function returns the LAN IP, which I am not as interested in. This script accesses http://xml.showmyip.com and grabs your WAN IP. It stores it to the settings.ini for future comparisons. Each time your event runs, it will update a virtual device and compare for change. Once changed, a text Message or regular email is sent.

    Feel free to post any comments or suggestions in the Script Discussion Forum.



    **Update** Since the xml.showmyip.com is no longer working, I recoded the script to use two other sources http://www.my-ip-address.com and http://checkip.dyndns.org. If the primary fails, it attemps to pull from the alternate and logs accordingly. If things change down the road with these, feel free to add your own and pass in the correct MidStartPos and MidLength parameters to grab the new string. Thanks.

    -Tom

    [This message was edited by Tom Kern on Fri, 15 August 2003 at 11:14 PM.]
    Attached Files
    -Tom

    Visit Kernhome
    Kern Theater Gallery

    (User: guest / Pass: guest)
Working...
X