Standalone and fully offline IP-to-Country lookup table and CIDR prefix finder.
The database is updated as of 2023-Mar-16.
Getting Started
In your pubspec.yaml
file add:
dependencies:
ip2country: any
Then, in your code import:
import 'package:ip2country/ip2country.dart';
Here is a full example:
import 'package:ip2country/ip2country.dart';
void main() {
final country = lookup('192.199.248.75');
print(country); //US
}
Libraries
- ip2country
- Standalone and fully offline IP-to-Country lookup table and CIDR prefix finder.