Whatsmyip from the Command Line

Nice little one liner to obtain your WAN IP address.

 
curl http://www.whatismyip.com/automation/n09230945.asp ; echo

Then alias that badboy E.g.:

 
alias whatsmyip='curl http://www.whatismyip.com/automation/n09230945.asp ; echo'

Happy day.

Share:
  • del.icio.us
  • Reddit
  • Technorati
  • Twitter
  • Facebook
  • Google Bookmarks
  • HackerNews
  • PDF
  • RSS
This entry was posted in programming. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">