http://www.perlmonks.org?node_id=368731


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.