idkit_ip 0.0.2 copy "idkit_ip: ^0.0.2" to clipboard
idkit_ip: ^0.0.2 copied to clipboard

This package is mainly used to obtain the user's public network IP address for convenient expansion, mainly to obtain two public network addresses, IPv4 and IPv6.

idkit_ip #

This package is mainly used to obtain the user's public network IP address for convenient expansion, mainly to obtain two public network addresses, IPv4 and IPv6.

IPv4 user public network address acquisition

String ip1 = await IDKitIp.getIPv4(format: IPFormat.json);
print(ip1); // {'ip':'204.2.250.22'}

String ip = await IDKitIp.getIPv4();
print(ip); // 204.2.250.22

IPv6 user public network address acquisition

String ip2 = await IDKitIp.getIPv6(format: IPFormat.json);
print(ip2); // {'ip':'204.2.250.22'}

String ip3 = await IDKitIp.getIPv6();
print(ip3); // 204.2.250.22

Important tip

For a complete use case, please see the example project.

1
likes
120
pub points
41%
popularity

Publisher

unverified uploader

This package is mainly used to obtain the user's public network IP address for convenient expansion, mainly to obtain two public network addresses, IPv4 and IPv6.

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (LICENSE)

Dependencies

flutter, http

More

Packages that depend on idkit_ip