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: nicola on Oct 25, '05 10:13:57AM
Just another useful site:
 curl "http://www.networksecuritytoolkit.org/nst/cgi-bin/ip.cgi" 
will give the IP address as text: no need to parse anything...

[ Reply to This | # ]
A script to find a router's public non-static IP address
Authored by: sjk on Oct 25, '05 05:41:31PM
Ahh, that appends the missing newline I'd been adding with this script:

#!/bin/sh

printf "$(curl -s http://www.whatismyip.org)\n"


[ Reply to This | # ]
correction
Authored by: sjk on Oct 25, '05 05:45:05PM

Foo. Append a missing backslash before the final 'n' in that command line.



[ Reply to This | # ]