get_ip_address 0.0.7 copy "get_ip_address: ^0.0.7" to clipboard
get_ip_address: ^0.0.7 copied to clipboard

A package to get the ip address of the current device. Uses https://api64.ipify.org to get the system IP.

get_ip_address #

A flutter package to get the system ip address

Getting Started #

Add the dependency in your pubspec.yaml file

ip_address: <version>

Then run,

flutter pub get or pub get.

How to use? #

Add

var ipAddress = IpAddress(type: RequestType.json);

type is optional, default value is RequestType.text.

Now, to get the IpAddress

dynamic data = await ipAddress.getIpAddress();

So, depending on type the ipAddress will be given.

If any error occurred it will throw IpAddressException.

48
likes
160
pub points
97%
popularity

Publisher

unverified uploader

A package to get the ip address of the current device. Uses https://api64.ipify.org to get the system IP.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

http

More

Packages that depend on get_ip_address