ip2country 1.0.0 copy "ip2country: ^1.0.0" to clipboard
ip2country: ^1.0.0 copied to clipboard

Standalone and fully offline IP-to-Country lookup table and CIDR prefix finder.

pub package

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
}
2
likes
150
pub points
54%
popularity

Publisher

verified publisherpwa.ir

Standalone and fully offline IP-to-Country lookup table and CIDR prefix finder.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on ip2country