Skip to content
pubscout

get_ip_address

0.0.7, released 3 years ago by an unverified publisher

Get the IP address of the current device using https://api64.ipify.org.

WASM-ready
$ flutter pub add get_ip_address
Source repository

What it does

Provides a simple mechanism to fetch the system IP address of the current device. Uses https://api64.ipify.org under the hood and supports json or text response types.

AI-written summary of version 0.0.7, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to retrieve the public IP address of the current device.
  • You want a straightforward way to fetch IP addresses with minimal configuration.

Skip it when

  • You need local network IP addresses rather than the external system IP.
  • You require an offline solution for obtaining IP addresses.

Strengths

  • Simple and easy to use API
  • Supports multiple request types (json and text)

Weaknesses

  • Depends on an external web service (ipify.org) to resolve the IP
  • Not documented for local network IP discovery

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
1

Add the dependency to pubspec.yaml and import the package. No native platform permissions explicitly documented.

var ipAddress = IpAddress(type: RequestType.json);
dynamic data = await ipAddress.getIpAddress();

Alternatives

Packages that do the same job and could replace get_ip_address.