[CLUE-Tech] Getting the external IP from a wireless router

David Anselmi anselmi at americanisp.net
Fri Oct 24 12:29:17 MDT 2003


Keith Christian wrote:
> Hi Dave,
> 
> Good point.  I found the page in the router's http interface that shows what
> the external IP is.  I would like to see if I can use any means to script that
> and navigate through 2 or 3 links with Lynx, then dump to a text file for
> parsing.

lynx -dump '<URL here>' | sed '<script to parse out IP here>'

That should do it.  You shouldn't need to navigate at all, just use the 
URL of the page with the IP on it.  If the router uses basic 
authentication to control access to the page you want, use -auth in lynx.

I tried this on my DSL router but it doesn't seem to put the external IP 
on any of the web pages.

Dave




More information about the clue-tech mailing list