Created
September 15, 2022 16:51
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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