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

Web based IP detection?

Discussion in 'Tomato Firmware' started by Kibe, Jan 24, 2007.

  1. Kibe

    Kibe LI Guru Member

    Since I have a router with it's WAN port configured to use a invalid internal IP (connected to another router) is it possible that Tomato detects the real valid IP address from some internet service like dyndns.org and then updates with the correct info, not 10.0.0.1?

    Is there any other firmware that supports this out of the box?

    Thanks a lot!
     
  2. u3gyxap

    u3gyxap Network Guru Member

    No router/firmware combination supports that out of the box, but you can write a script that will use external site such as dyndns to check you IP and to export it somewhere.
     
  3. digitalgeek

    digitalgeek Network Guru Member

    what is you are trying to do? if you disable wan on the second router and set the gateway and dns to your first router, all device plugged into the second will apear to orignate from the first
     
  4. bogderpirat

    bogderpirat Network Guru Member

    you could get your ip somewhere from the internet, e.g. via some php script on the internet containing
    PHP:
    <?php=$_SERVER['REMOTE_ADDR'];?>
    and then update the ip via some dyndns update script. perhaps this one, or something of the likes.
     
  5. GeeTek

    GeeTek Guest

    Seems like some bright programmer at the DNS services company could have figured out how to update your URL by using the IP that the account login was made from. There is no need at all for them to be told what your IP is, yet they base their whole industry on doing just that. If you needed to update your IP from a connection other than the one you wish to point to, you must use manual update anyway.
     
  6. orangekay

    orangekay LI Guru Member

    This is exactly what I do on my own DNS server (and I'm pretty sure everydns.net does it too), but it is not always possible to obtain a correct IP for people who are behind various proxies, so it's generally bad coding practice to rely upon the REMOTE_ADDR variable for anything.
     

Share This Page