Skip to content

Instantly share code, notes, and snippets.

@Rachitlohani
Created March 16, 2014 04:58
Show Gist options
  • Save Rachitlohani/9578761 to your computer and use it in GitHub Desktop.
Save Rachitlohani/9578761 to your computer and use it in GitHub Desktop.
get public IP from command line
##get public ip from command line
wget http://checkip.dyndns.org/ -O - -o /dev/null | cut -d: -f2 | cut -d\< -f1
@Rachitlohani
Copy link
Author

this is silly, why not just do curl curlmyip.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment