Skip to content

Instantly share code, notes, and snippets.

@coltenkrauter
Created September 15, 2022 16:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save coltenkrauter/8f61fbce5b6f1a3300d3d42e592c5667 to your computer and use it in GitHub Desktop.
Save coltenkrauter/8f61fbce5b6f1a3300d3d42e592c5667 to your computer and use it in GitHub Desktop.
One liner to get public IP address of server on bash/sh/zsh Linux Ubunutu
dig @resolver4.opendns.com myip.opendns.com +short
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment