Skip to content

Latest commit

 

History

History
executable file
·
29 lines (16 loc) · 647 Bytes

File metadata and controls

executable file
·
29 lines (16 loc) · 647 Bytes

IPv4 Lookup

IPv4 lookup in maxmind's CSVs.

  1. Build with

mvn clean compile assembly:single

  1. Download CSVs from

https://dev.maxmind.com/geoip/geoip2/geolite2/

  1. 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.

  1. Supply the needed IP addresses into the STDIN.