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.
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.
- platform_device_id
Get unique device IDs across Android, iOS, Windows, Linux, macOS, and Web.
50Compare - carrier_info
Gets network type, carrier codes, and SIM info on Android and iOS.
86Compare - corner_radius_plugin
Flutter plugin to read device screen corner radii on Android and iOS
69Compare - memory_info
Get device RAM and disk storage information on Android and iOS.
74Compare