Skip to content

Instantly share code, notes, and snippets.

@x1unix
Created April 3, 2022 23:59
Show Gist options
  • Save x1unix/12436f506a13ec5e0690ffcb31ca0995 to your computer and use it in GitHub Desktop.
Save x1unix/12436f506a13ec5e0690ffcb31ca0995 to your computer and use it in GitHub Desktop.
Get public IP from terminal
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