Skip to content

Instantly share code, notes, and snippets.

@NathanKleekamp
Created October 1, 2015 12:21
Show Gist options
  • Save NathanKleekamp/1b78b05c3dbf98b2ca72 to your computer and use it in GitHub Desktop.
Save NathanKleekamp/1b78b05c3dbf98b2ca72 to your computer and use it in GitHub Desktop.
Get current external IP address via cURL
# 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