Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^3: How to identify router IP address

by hardburn (Abbot)
on Jun 22, 2004 at 14:18 UTC ( #368731=note: print w/ replies, xml ) Need Help??


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

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.


Comment on Re^3: How to identify router IP address
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2014-12-25 22:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (163 votes), past polls