network_tools
6.1.0, released 5 days ago by op3nsoc13ty.blogspot.com
Discover open ports, devices on a subnet, and perform network scanning.
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.
- http2
An HTTP/2 implementation in Dart for low-level transport and pooled HTTP/2 requests.
91Compare - cote_network_logger
Real-time Dio HTTP request/response logger with a web dashboard.
69Compare - ping_discover_network_forked
Library to ping IP subnets and discover local network devices and services.
48Compare - ping_discover_network_plus
Ping IP subnets and discover local network devices and services.
48Compare
Works with
Packages commonly used together with network_tools: ones it builds on, ones built on it, and its own family.
- json_annotationnetwork_tools depends on itProvides annotations for json_serializable to generate JSON (de)serialization code.
- loggingnetwork_tools depends on itProvides configurable logging with levels and stream listeners for Dart apps.
- sqlite3network_tools depends on itLightweight and convenient SQLite bindings for Dart using dart:ffi
- universal_ionetwork_tools depends on itCross-platform dart:io implementation with browser support for HttpClient and other APIs
- multicast_dnsnetwork_tools depends on itDart package for performing mDNS queries, Bonjour, and Avahi service discovery.
- get_itnetwork_tools depends on itA fast, type-safe service locator for Dart and Flutter without BuildContext or code generation.
- driftnetwork_tools depends on itDrift is a reactive library to store relational data in Dart and Flutter applications.
- sqlite3_flutter_libsnetwork_tools depends on itObsolete package that once bundled native SQLite libraries for Flutter; now contains no code.