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


Click here to return to the 'View IP address info with GeekTool' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
View IP address info with GeekTool
Authored by: jemuel85 on Nov 05, '08 12:11:47AM
After trying for an hour, i realized that www.whatismyip.com has an auto page that allows the script to read the IP without a grep.

Here's my code

[code]
ifconfig | grep netmask | grep -v 127.0.0.1 | awk {'print $2'};
curl -s www.whatismyip.com/automation/n09230945.asp | awk {'print $1'}
[/code]

This simply just displays both internal and external IP addresses in 2 lines. You can modify it to display text.

[ Reply to This | # ]