Skip to content

Instantly share code, notes, and snippets.

@mikenoethiger
Created April 27, 2020 08:08
Show Gist options
  • Save mikenoethiger/57376b6c14816c5c05fd8484af94ddff to your computer and use it in GitHub Desktop.
Save mikenoethiger/57376b6c14816c5c05fd8484af94ddff to your computer and use it in GitHub Desktop.
Get public ip address via terminal
wget http://ipecho.net/plain -O - -q ; echo
# or add this to ~/.bash_aliases or ~/.zshrc in order to make the command available by the `ip` alias
# alias ip="wget http://ipecho.net/plain -O - -q ; echo"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment