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

A Dart package for retrieving some information about IP that is connected to the internet. such as city & country name, continent code, latitude and longitude, IP v4 or v6.

example/ipwhois_example.dart

import 'package:ipwhois/ipwhois.dart';

void main() async {
  final resultV4 = await getMyIpInfo();
  final resultV6 = await getMyIpInfo(version: IpVersion.v6);

  print(resultV4); // ip: 5.200.119.128, continentCode: AS, country: Iran, countryCode: IR, countryCode3: IRN, region: Tehran, regionCode: 23, city: Tehran, latitude: 35.7108, longitude: 51.4274, timezone: Asia/Tehran, offset: 12600, asn: 57218, organization: Rightel Communication Service Company PJS
  print(resultV6); // null
}
5
likes
160
points
73
downloads

Publisher

unverified uploader

Weekly Downloads

A Dart package for retrieving some information about IP that is connected to the internet. such as city & country name, continent code, latitude and longitude, IP v4 or v6.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

http

More

Packages that depend on ipwhois