Skip to content

Instantly share code, notes, and snippets.

@danielecook
Created March 24, 2020 15:43
Show Gist options
  • Save danielecook/3e612828a596436de5bd3035507b8280 to your computer and use it in GitHub Desktop.
Save danielecook/3e612828a596436de5bd3035507b8280 to your computer and use it in GitHub Desktop.
IP info; ipinfo.io #bash-utils
# 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