Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'A script to find a router's public non-static IP address' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A script to find a router's public non-static IP address
Authored by: Mike F. on Oct 24, '05 12:45:54PM

Doesn't work for me.

The problem is that the ping -c 1 -R www.yahoo.com statement doesn't list my external IP. So the rest of the script is useless. I'm using a Lancom DSL/i-10 Office Router with NAT on a dynamic IP DSL line.

To avoid dependencies on external resources I query the router itself via its web interface to get the current external IP. This has worked fine for years now.



[ Reply to This | # ]

A script to find a router's public non-static IP address
Authored by: gxw on Oct 24, '05 01:54:36PM

The sript in the hint doesn't work with a Netgear prosafe vpn firewall router either. Couple of the scripts in the comments work fine.

curl -s http://checkip.dyndns.org | awk '{print $6}' | awk ' BEGIN { FS = "<" } { print $1 } '

and

http://whatsmyip.com



[ Reply to This | # ]