flutter_ip 0.2.0 copy "flutter_ip: ^0.2.0" to clipboard
flutter_ip: ^0.2.0 copied to clipboard

Flutter plugin - Get External IP, Internal IP address for wifi, cellular and wired.

flutter_ip #

pub version Awesome Flutter

English | 简体中文

Flutter plugin - Get External IP, Internal IP address for wifi, cellular and wired. (currently for iOS only)

Installation #

add flutter_ip to your pubspec.yaml

  dependencies:
    flutter_ip: ^0.1.4

iOS Requirement - iOS Deployment Target 10.0 #

Import #

  import 'package:flutter_ip/flutter_ip.dart';

Usage #

Get External IP

  String external = await FlutterIp.externalIP; 
  // e.g. 113.139.104.65 or ""

Get Internal IP

  String internal = await FlutterIp.internalIP; 
  // e.g. 192.168.0.102 or ""

Get Network Type

  String type = await FlutterIp.networkType; // e.g. wifi
Network Type

Type: String

Value: wifi, wired, cellular

Example #

Please check example app using Xcode.

Getting Started #

This project is a starting point for a Flutter plug-in package, a specialized package that includes platform-specific implementation code for Android and/or iOS.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

13
likes
40
pub points
75%
popularity

Publisher

unverified uploader

Flutter plugin - Get External IP, Internal IP address for wifi, cellular and wired.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_ip