-
-
Save sk0x1234/bb21f01dca5682791f677bdd8825a8b4 to your computer and use it in GitHub Desktop.
Get public IP address from command line
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
curl ifconfig.me |
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
curl -s checkip.dyndns.org | grep -o "[[:digit:].]\+" |
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
wget -qO- ipecho.net/plain |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment