Created
March 16, 2014 04:58
-
-
Save Rachitlohani/9578761 to your computer and use it in GitHub Desktop.
get public IP from command line
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##get public ip from command line | |
wget http://checkip.dyndns.org/ -O - -o /dev/null | cut -d: -f2 | cut -d\< -f1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this is silly, why not just do curl curlmyip.com