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.
  • Anonymous

    It no longer works, I’m sorry to say. I just get a 403 forbidden.