1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

IP Monitor script needed

Discussion in 'Tomato Firmware' started by LanceMoreland, Jul 21, 2009.

  1. LanceMoreland

    LanceMoreland Network Guru Member

    I am using a program called "Gateway IP monitor" to send an email my blackberry when and if my IP address changes so that I can Remote Desktop in if the IP address changes for some reason. It happens from time to time. The problem is that the computer that the program resides on has to be logged in to in order for the program to run. If I log out no email is sent.

    Is there a script that I can load into my router that would perform the same function?

    Lance
     
  2. occamsrazor

    occamsrazor Network Guru Member

    (Perhaps I'm missing something...) You could instead use a dynamic DNS name service such as www.dyndns.org - that way whatever the IP address is you can log in via the DNS name such as yourname.dyndns.org. Tomato includes a dynamic DNS update client.
     
  3. SgtPepperKSU

    SgtPepperKSU Network Guru Member

    There are many free dynamic DNS providers that would be more convenient that what you are doing. With this, you can simply Remote Desktop to lancemoreland.dyndns.org, and your router will make sure that name always points to its IP address. Even better, this is easily configurable via the Tomato GUI (Basic->DDNS) for many such providers (and usually can be set up on this page via "Custom URL" for others).
     
  4. LanceMoreland

    LanceMoreland Network Guru Member

    Thanks guys, I have that set up now. What are the recommended setings on the Dynamic DNS page in tomato to make sure everything is updated properly if my ip changes? I am particularly interested in the best settings for the following fields:

    Auto refresh every
    Save state when IP changes (nvram commit)
    Force next update

    I did search and found no answers.

    Thanks,
    Lance
     
  5. fyellin

    fyellin LI Guru Member

    I can tell you what I have mine set up to and what I think they mean, based on my experience with dyndns.org. If I'm wrong, someone please correct me.
    • Every 28 days
    • Yes save to NVRAM
    • No, don't force next update
    If you have a free account with dyndns.org, they will stop serving your address unless you contact them periodically to say "Yes, I'm still here." I suspect this is to try and encourage you to get a paid account. Contacting them every 28 days seems to be about right.

    On the other hand, they get angry if you contact them too frequently with the same IP address. They do not want you sending you the same IP address over and over just because you've rebooted your router or your power has gone out. By saving your IP address to NVRAM, it ensures that if your reboot and still have the same address, you won't contact them again.

    The third item tells Tomato that when you hit the "SAVE" button, you want it to contact your ddns server. The item will be unchecked when the GUI returns after you hit the save button. You should only click this if you suspect, somehow, that Tomato is confused or your ddns server is confused.
     

Share This Page