seeip_client 1.1.0 copy "seeip_client: ^1.1.0" to clipboard
seeip_client: ^1.1.0 copied to clipboard

Obtain IP address information using SeeIP - A simple IP address API

example/seeip_client_example.dart

import 'package:seeip_client/seeip_client.dart';

void main() async {
  var seeip = SeeipClient();

  // Fetches only the IP address of the requesting device.
  var ip = await seeip.getIP();
  print(ip);

  // Fetches only the IPv4 address of the requesting device.
  var ipv4 = await seeip.getIPv4();
  print(ipv4);

  // Fetches the Geo IP of the requesting device.
  var geoIP = await seeip.getGeoIP();
  print(geoIP);

  // Fetches the Geo IP of the specified IP address.
  var geoIPSpecific = await seeip.getGeoIP('216.58.208.174');
  print(geoIPSpecific);
}
3
likes
160
points
265
downloads

Publisher

verified publishermadaboutbrighton.net

Weekly Downloads

Obtain IP address information using SeeIP - A simple IP address API

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

http

More

Packages that depend on seeip_client