Skip to content

Instantly share code, notes, and snippets.

@Frodox
Last active December 17, 2015 06:39
Show Gist options
  • Save Frodox/5566870 to your computer and use it in GitHub Desktop.
Save Frodox/5566870 to your computer and use it in GitHub Desktop.
get ip adress
curl -G http://checkip.dyndns.org/index.html |grep "Current IP Address" |cut -d ':' -f 2 |cut -d '<' -f 1
wget -O - -q icanhazip.com
@Frodox
Copy link
Author

Frodox commented Jan 17, 2014

curl -s http://checkip.dyndns.org/ | grep -oP '[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment