Skip to content

Instantly share code, notes, and snippets.

@sk0x1234
Forked from ZhDev/v1.sh
Created June 12, 2023 04:13
Show Gist options
  • Save sk0x1234/bb21f01dca5682791f677bdd8825a8b4 to your computer and use it in GitHub Desktop.
Save sk0x1234/bb21f01dca5682791f677bdd8825a8b4 to your computer and use it in GitHub Desktop.
Get public IP address from command line
curl ifconfig.me
curl -s checkip.dyndns.org | grep -o "[[:digit:].]\+"
wget -qO- ipecho.net/plain
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment