Skip to content

Instantly share code, notes, and snippets.

@ZhDev
Created November 13, 2012 01:49
Show Gist options
  • Save ZhDev/4063404 to your computer and use it in GitHub Desktop.
Save ZhDev/4063404 to your computer and use it in GitHub Desktop.
Get public IP address from command line
curl ifconfig.me
curl -s checkip.dyndns.org | grep -o "[[:digit:].]\+"
wget -qO- ipecho.net/plain
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment