Created
June 1, 2022 10:23
-
-
Save gingermat/fb27c6b6af55e509c2d0b765477c8c90 to your computer and use it in GitHub Desktop.
Detect my IP address
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
# Return my IP address | |
function myip() { | |
dig -4 TXT +short o-o.myaddr.l.google.com @ns1.google.com | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment