LuaRocks.org had a security incident in September 2026. Read the incident report.

ip2location

IP2Location Lua Package

$ luarocks install ip2location

This Lua package provides a fast lookup of country, region, city, latitude, longitude, ZIP code, time zone, ISP, domain name, connection type, IDD code, area code, weather station code, station name, mcc, mnc, mobile brand, elevation, usage type, address type, IAB category, district, autonomous system number (ASN), autonomous system (AS), AS domain, AS usage type and AS CIDR from IP address by using IP2Location database. This package uses a file based database available at IP2Location.com. This database simply contains IP blocks as keys, and other information such as country, region, city, latitude, longitude, ZIP code, time zone, ISP, domain name, connection type, IDD code, area code, weather station code, station name, mcc, mnc, mobile brand, elevation, usage type, address type, IAB category, district, autonomous system number (ASN), autonomous system (AS), AS domain, AS usage type and AS CIDR as values. It supports both IP address in IPv4 and IPv6.

Versions

8.8.2-1115 days ago23 downloads
8.8.1-1312 days ago27 downloads
8.8.0-11 year ago20 downloads
8.7.1-11 year ago48 downloads
8.7.0-13 years ago152 downloads
8.6.1-14 years ago113 downloads
8.6.0-14 years ago34 downloads
8.5.0-14 years ago82 downloads
8.4.0-15 years ago69 downloads
8.3.1-15 years ago92 downloads
8.3.0-16 years ago56 downloads
8.2.0-17 years ago114 downloads
8.0.3-18 years ago99 downloads

Dependencies

lua >= 5.3

Manifests