ping_discover_network_plus
0.0.5, released 3 years ago by marcus.brasizza.com
Ping IP subnets and discover local network devices and services.
What it does
Allows Flutter apps to scan an IP subnet to find active network devices and open ports. It provides stream-based network discovery methods to locate printers, services, or other hardware on a local Wi-Fi network.
AI-written summary of version 0.0.5, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to discover printers or smart devices on a local Wi-Fi network.
- You want to scan a specific subnet and port to find active IP addresses.
Skip it when
- You are communicating with remote internet APIs rather than local network hardware.
- You need robust device discovery protocols like mDNS or UPnP instead of raw port pinging.
Strengths
- Provides stream-based discovery for monitoring found devices in real time.
- Supports checking single ports or entire subnets.
- Tested on both Android and iOS platforms.
Weaknesses
- Requires the device to be connected to Wi-Fi and relies on a separate plugin to fetch local IP info.
- Raw port scanning can be slow or blocked depending on network firewalls.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
Requires the wifi_info_plugin_plus dependency and appropriate local network permissions depending on the target platform.
import 'package:ping_discover_network_plus/ping_discover_network_plus.dart';
const port = 80;
final stream = NetworkAnalyzer.discover2(
'192.168.0', port,
timeout: Duration(milliseconds: 5000),
);
stream.listen((NetworkAddress addr) {
if (addr.exists) {
print('Found device: ${addr.ip}:$port');
});Alternatives
Packages that do the same job and could replace ping_discover_network_plus.
- ping_discover_network_forked
Library to ping IP subnets and discover local network devices and services.
48Compare - network_tools
Discover open ports, devices on a subnet, and perform network scanning.
87Compare - bonsoir
A Zeroconf library to discover network services and broadcast your own.
88Compare - http2
An HTTP/2 implementation in Dart for low-level transport and pooled HTTP/2 requests.
91Compare
Works with
Packages commonly used together with ping_discover_network_plus: ones it builds on, ones built on it, and its own family.