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

Forcing my WRT54GL to message me while IP changed...

Discussion in 'Tomato Firmware' started by pc131, Sep 12, 2007.

  1. pc131

    pc131 LI Guru Member

    Hello

    I am wondering,if is it possible to write a script on Tomato 1.07 that will send a message (e-mail?) while public IP address changes on WAN port (my ISP changes IP 2~3 times a month). I found that i have BusyBOX 1.2.2 installed, but i haven't found any apropriate command to do this. Anyone had any idea? I need to know IP when its changed to get onto the router and wake up computer then.

    Any help appreciated.

    Tom
     
  2. roadkill

    roadkill Super Moderator Staff Member Member

    you can't send a message without a SMTP server installed on the router
    maybe you could send a net message if you'll found a program that does it on the WRT
    I think it would be easier to run a program which check the public IP let's say every 5 minutes and uses your ISP SMTP to send you an e-mail if it has changed.
    BTW you're on Linux or Windows?
     
  3. scaredwitless

    scaredwitless LI Guru Member

    I don't know how you'd go about generating an email on WAN IP change. But may I ask is there a reason why you wouldn't want to setup the DDNS options built into Tomato? If you sign up for one of the DDNS providers that Tomat's DDNS client supports then you can have Tomato automatically update it whenever the IP changes and you'll have a nice easy to remember URL always attached to your current WAN IP.
     
  4. roadkill

    roadkill Super Moderator Staff Member Member

    if remote access is the reason I think you should go for dynamic dns provider like anyone else...
     
  5. pc131

    pc131 LI Guru Member

    Yes remote access is the issue. I want to get into the router, the fire one of the computers using WAKE-ON-LAN. But when router IP changes, i can't get into WRT54GL.

    I registered myself on no-ip.com, chose hostname, put current IP addres etc. then similar i did in Tomato i checked "Force Next Update" and i got messages:

    Last Update Wed, 12 Sep 2007 09:42:25 +0200: 12.345.67.889
    Last Response Wed, 12 Sep 2007 09:42:25 +0200: IP address is current. No update required.

    Now what when IP changes? WRT54GL sends updated IP to no-ip.com? or no-ip.com asks WRT54GL once for given time. But... what if next time no-ip. com asks the router is not there.... Could you explain me quickly no-ip.com service working rules?:)

    Tom
     
  6. pc131

    pc131 LI Guru Member

    OK what if i have smtp server on WRT54GL? HERE we have very small mailing system that i will try install on 54GL today. what i need is to know by any command if IP is being changed on 54GL. what are your opinions on this?

    Tom
     
  7. danix71

    danix71 LI Guru Member

    WRT54GL v.1.1&Tomato 1.07. I use Dyndns.com as DDNS.
     
  8. Low-WRT

    Low-WRT LI Guru Member

    I use no-ip.com and have had no problems. When your ip address changes, the router will let the dns provider know and the provider will update it. To log in to your router remotely, you won't use an ip address, you will use a domain name that you choose instead. Very easy.

    EDIT--Don't use the software provided by the ddns, as Tomato has it built in.
     
  9. pc131

    pc131 LI Guru Member

    the router will let the dns provider - you mean no-ip.com?

    i use builtin Tomato ddns support
    =========================

    YEP it works, i reach 54GL by the registered hostname in no-ip.com service - we'll se now what when ip changes
     
  10. scaredwitless

    scaredwitless LI Guru Member

    Yeah so long as you set tomato up right for no-ip, which it sounds like you did, then tomato will contact no-ip with updates anytime the WAN IP changes. So just remember your new URL and don't worry about it, Tomato takes care of the rest now.
     
  11. pc131

    pc131 LI Guru Member

    It looks nice, i won't have to remember IP since i know registered hostname. Thanks everyone.

    Tom
     

Share This Page