Skip to content

sbenner/iplookup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

Releases

No releases published

Packages

No packages published

Languages