Skip to content

C++ API for MaxMind's simplified version of the GeoLite2 Database

License

Notifications You must be signed in to change notification settings

alandtsang/geolite2cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

geolite2cpp

License

C++ API for MaxMind's simplified version of the GeoLite2 Database.

Documentation

Please refer to http://dev.maxmind.com/.

Dependence

sudo apt install cmake libmaxminddb-dev

Usage

./test -i 36.110.59.146
ip=36.110.59.146, country=47, prov=1, city=0, isp=1

If you installed mmdb-bin, then you can use the mmdblookup command to view the IP

mmdblookup --file ipdb.mmdb --ip 36.110.59.146

  {
    "city": 
      0 <uint16>
    "country": 
      47 <uint16>
    "isp": 
      1 <uint16>
    "prov": 
      1 <uint16>
  }

About

C++ API for MaxMind's simplified version of the GeoLite2 Database

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published