Created
October 1, 2015 12:21
-
-
Save NathanKleekamp/1b78b05c3dbf98b2ca72 to your computer and use it in GitHub Desktop.
Get current external IP address via cURL
This file contains 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
# Via http://askubuntu.com/questions/95910/command-for-determining-my-public-ip | |
curl -s checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment