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


Click here to return to the '10.4: Retrieve WAN IP via script and Automator' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Retrieve WAN IP via script and Automator
Authored by: delta592 on Jun 07, '06 07:57:11PM
Copuple of alternatives can be run from the Terminal:

curl -s http://whatismyip.com | awk '/Your/ {print $4}' | awk -F\< '{print $1}'



You could use this if you have lynx installed:

lynx -dump http://whatismyip.com | awk '/Your/ {print $4}'

[ Reply to This | # ]
10.4: Retrieve WAN IP via script and Automator
Authored by: unforeseen:X11 on Jun 08, '06 07:23:40AM
Simply use www.whatismyip.org and you get nothing but your IP back. Much easier.

---
this is not the sig you`re looking for.

[ Reply to This | # ]