talira

network_info_plus

A Flutter plugin to discover Wi-Fi and network information

open sourceBSD-3-Clausefree

network_info_plus is a Flutter plugin from the Flutter Community's Plus plugins that lets an app discover details of the network it is on: the Wi-Fi name and BSSID, its IPv4 and IPv6 address, subnet mask, broadcast address and gateway IP. It works on Android, iOS, macOS, Linux and Windows, but not on the web. Reading the Wi-Fi name or BSSID on Android and iOS needs location permission, which the app must request itself. It is BSD-3-Clause licensed and lives in the fluttercommunity/plus_plugins monorepo.

Problems it solves

  • get the name of the Wi-Fi network the phone is connected to in my Flutter app
  • find the device's local IP address and gateway in Flutter
  • show which network the user is on before syncing data

Features

  • Wi-Fi name and BSSID
  • device IPv4 and IPv6 address on Wi-Fi
  • subnet mask, broadcast address and gateway IP

Limitations

  • Doesn't work on the web1
  • Reading the Wi-Fi name or BSSID on Android and iOS needs location permission, which the plugin doesn't request1

Alternatives

The same job

These do what network_info_plus does.

  1. local_auth Flutter plugin for local authentication with biometrics, passcode, PIN or pattern
  2. connectivity_plus Flutter plugin for checking network connectivity (Wi-Fi, mobile, Ethernet, VPN)
  3. path_provider Flutter plugin for finding commonly used locations on the device's file system

Compare network_info_plus with the top 3