Skip to content
pubscout

network_tools

6.1.0, released 5 days ago by op3nsoc13ty.blogspot.com

Discover open ports, devices on a subnet, and perform network scanning.

Rock solid
$ flutter pub add network_tools
Source repository

What it does

Network Tools helps you scan local subnets to discover active hosts and connected devices, scan ports on a single device or range, and perform mDNS device searches. It supports concurrent scans, progress callbacks, and running scans in background isolates.

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

Use it when

  • You need to discover all active devices on the local subnet.
  • You need to scan ports on a target IP address or range.
  • You need to resolve mDNS devices and retrieve device information.

Skip it when

  • You are building web applications (requires Dart native/mobile/desktop platforms).
  • You only need high-level HTTP requests rather than raw TCP/IP or network discovery.

Strengths

  • Fast subnet and port scanning with bounded concurrency.
  • Supports running scans in background isolates to keep the UI responsive.
  • Provides streaming results as ports or hosts resolve.

Weaknesses

  • Requires platform-specific permissions and configurations (such as local network access on iOS or multicast locks on Android).
  • Some advanced features or permissions vary by operating system platform.

Setup

Kind
Pure Dart
Effort
Medium
Code generation
Yes (build_runner)
Direct dependencies
12

Requires initializing network tools with your app document directory in the main function. Android requires a MulticastLock and location permissions for Wi-Fi details; iOS requires multicast networking entitlement and local network permission.

Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();
  final appDocDirectory = await getApplicationDocumentsDirectory();
  await configureNetworkTools(appDocDirectory.path, enableDebugging: true);
  runApp(const MyApp());
}

Alternatives

Packages that do the same job and could replace network_tools.

Works with

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