Created
April 3, 2022 23:59
-
-
Save x1unix/12436f506a13ec5e0690ffcb31ca0995 to your computer and use it in GitHub Desktop.
Get public IP from terminal
This file contains hidden or 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
curl -i https://cloudflare.com/cdn-cgi/trace | grep ip | awk -F'=' '{print $2}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment