Software
Now Reading
ip2geo – a handy script for geoip lookups
0

ip2geo – a handy script for geoip lookups

This script reads IP addresses from STDIN and uses the MaxMind GeoIP databases to output various data points for each source IP. The script uses the GeoCityLite and ASN databases for enrichment. The user can specify various fields for output in a format string. You can use this script to download the GeoIP database files if needed as well.

Usage

Look up a single IP address with default output format string:

echo 192.30.252.122 | ./ip2geo.py

"192.30.252.122","37.7697","-122.3933","36459","GitHub, Inc."

Learn more

Leave a Response


Please enter the result of the calculation above.