IPv4 lookup in maxmind's CSVs.
- Build with
mvn clean compile assembly:single
- Download CSVs from
https://dev.maxmind.com/geoip/geoip2/geolite2/
- Pass GeoLite2-City-Blocks-IPv4.csv GeoLite2-City-Locations-en.csv files' paths as the application cmd parameters.
e.g. assuming you're located in the project's folder:
cd target && java -jar iplookup-1.0.jar ~/tools/GeoLite2-City-CSV_20171205/GeoLite2-City-Blocks-IPv4.csv ~/tools/GeoLite2-City-CSV_20171205/GeoLite2-City-Locations-en.csv
The sample files are provided in the resources
folder.
- Supply the needed IP addresses into the STDIN.