Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re^2: How to identify router IP address

by dba (Monk)
on Jun 22, 2004 at 13:43 UTC ( #368716=note: print w/replies, xml ) Need Help??

in reply to Re: How to identify router IP address
in thread How to identify router IP address

Apologize if I was not clear. This is my home Netgear MR814 4 port router. The internet IP changes (almost) everytime when I reboot the router.
  • Comment on Re^2: How to identify router IP address

Replies are listed 'Best First'.
Re^3: How to identify router IP address
by Grygonos (Chaplain) on Jun 22, 2004 at 13:49 UTC
    might it suggest DynDNS it allows you to dynamically update a hostname... ala so you can always connect to that hostname.. but the true ip behind it is updated via the DynDNS plugin whenever the router DHCP's. You might also want to upgrade the (assuming this is coming from your home cable or dsl connection) your account to have a static IP. ( I don't know if DynDNS can correctly determine the true outgoing ip address being used... because the machine connected to the router should be something like if the cable modem goes directly into the machine via ethernet port it should work fine
Re^3: How to identify router IP address
by hardburn (Abbot) on Jun 22, 2004 at 14:18 UTC

    I'll suggest something other than DynDNS, and actually use Perl in the process. I keep an external web server with this simple CGI:

    #!/usr/bin/perl use CGI 'header'; print header('text/plain'); print $ENV{REMOTE_ADDR};

    Then you can query that CGI from inside your network and get the IP address. That information is stored on the router itself, of course, but it isn't necessarily easy to get at automatically.

    send money to your kernel via the boot loader.. This and more wisdom available from Markov Hardburn.

Re: How to identify router IP address
by Abigail-II (Bishop) on Jun 22, 2004 at 14:58 UTC
    A bit of clicking using the Netgear website reveales that the router has a web interface. I'd expect the configured address can be grabbed from your routers website. Did you check?

    Abigail (bless my ISP who provides me with a static IP address)

      How do you access the web interface if you don't know its ip address?

      Update: This was stupid. You mean the external ip address, I see.

Re^3: How to identify router IP address
by Taulmarill (Deacon) on Jun 22, 2004 at 13:51 UTC
    so you would need something like DynDNS

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://368716]
and snow settles gently...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (2)
As of 2017-12-11 05:10 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (286 votes). Check out past polls.