Skip to content
pubscout

ping_discover_network_forked

0.0.1, released 5 years ago by an unverified publisher

Library to ping IP subnets and discover local network devices and services.

$ flutter pub add ping_discover_network_forked
Source repository

What it does

Allows developers to scan an IP subnet to discover active network devices and services on specific ports. It provides methods to ping addresses either sequentially or all at once using Dart streams.

AI-written summary of version 0.0.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to discover network printers or other local hardware in a Wi-Fi network
  • You want to scan a local subnet for active IP addresses on specific ports

Skip it when

  • You need advanced network diagnostic tools beyond basic subnet pinging
  • Devices are not connected to a local Wi-Fi network

Strengths

  • Simple stream-based API for network discovery
  • Supports checking single ports, port ranges, and subnets
  • Null safe

Weaknesses

  • Requires devices to be connected to Wi-Fi
  • Limited documentation beyond basic examples

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0

The device must be connected to a Wi-Fi network.

import 'package:ping_discover_network/ping_discover_network.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_forked.

Works with

Packages commonly used together with ping_discover_network_forked: ones it builds on, ones built on it, and its own family.