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


Click here to return to the 'GeekTool - Ideas of using it' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
GeekTool - Ideas of using it
Authored by: Gfx on Jul 07, '04 09:55:41PM
To get your external IP when using a router, you need to get it from outside (a few websites provides such a service) or use your access to your router (much harder to simply get only the IP).

This is the code I use to get my external IP:

curl -s http://checkip.dyndns.org/ | sed 's/[a-zA-Z<>/ :]//g'
It would be also possible to make a little script to use the output of http://www.showmyip.com/simple/ but remember that they limit you to 300 requests per day.

I hope this helps.

[ Reply to This | # ]