This library provides utilities for working with MaxMind’s geolocation databases. It lets you look up information about where an IP address is located.
To use this library, you’re going to need to download one of MaxMind’s V2 databases. The library has been tested against their free "GeoLite2" databases, but should work with their enterprise DBs as well.
(define geoip (make-geoip "/path/to/some-database.mmdb")) (geoip-lookup geoip "127.0.0.1") (geoip-lookup geoip "220.127.116.11")