This package allows Flutter apps to get Wifi IP Details like Internet Service Provider(ISP), Country, Public IP Address, etc.
Android | iOS | MacOS | Web | Linux | Windows |
---|---|---|---|---|---|
✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |
In the dependencies:
section of your pubspec.yaml
, add the following line:
dependencies:
wifi_ip_details: <latest_version>
- For getting WIFI Details just call this method
// Getting WIFI IP Details
final _publicIP = await WifiIPDetails.getMyIP();
final _ipDetails = await WifiIPDetails.getMyWIFIDetails();
- Incase you have the access token then just pass in the access token on the same method.
// Getting WIFI IP Details using Access Token
final _ipDetails = await WifiIPDetails.getMyWIFIDetails("YOUR ACCESS TOKEN");
- Enable Internet Permission.
Don't Forget to give Star and Like 🚀