Skip to content

Instantly share code, notes, and snippets.

@skojin
Created January 26, 2012 01:53
Show Gist options
  • Save skojin/1680421 to your computer and use it in GitHub Desktop.
Save skojin/1680421 to your computer and use it in GitHub Desktop.
Get public IP address and copy to clipboard
curl -silent http://checkip.dyndns.org | grep -Eo '([0-9]{1,3}\.){3}[0-9]{1,3}' | pbcopy
curl ifconfig.in
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment