Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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
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 soandso.rules.net 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 192.168.1.101..but 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 Taulmarill (Deacon) on Jun 22, 2004 at 13:51 UTC
    so you would need something like DynDNS
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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://368716]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (11)
As of 2014-09-17 12:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (74 votes), past polls