A lightweight Flutter package that retrieves the public IP address of the current device by making a request to the ipify.org API. It simplifies network identification across multiple platforms, including mobile, web, and desktop environments. The package is designed for ease of use with minimal setup, returning the IP address as a string. Ideal for debugging, logging, or location-based features requiring network identity.
Use cases
- Fetching public IP for debugging
- Logging user IP in apps
- Implementing geo-based features
- Tracking device connectivity
- Displaying IP in app settings
Key features
- Simple API with one method
- Supports all major platforms
- Uses reliable ipify.org service
- Returns IP as string
- Minimal dependency overhead
Suitable for
- Developers needing quick IP lookup
- Apps requiring network identity
- Cross-platform projects
- Debugging network issues
- Lightweight utility needs
Considerations
- Relies on external API (ipify.org)
- No local IP detection
- Requires internet connection
- Limited to public IP only
- Rate limits may apply on high usage