Created
March 24, 2020 15:43
-
-
Save danielecook/3e612828a596436de5bd3035507b8280 to your computer and use it in GitHub Desktop.
IP info; ipinfo.io #bash-utils
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
# ipinfo.io | |
# Retrieve information on your IP address | |
# JSON response | |
curl ipinfo.io | |
# Retrieve just the IP address | |
curl ipinfo.io/ip | |
# Retrieve the hostname | |
curl ipinfo.io/hostname | |
# Retrieve the location of an IP address | |
curl ipinfo.io/8.8.8.8 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment