Skip to content
pubscout

dart_ping

10.0.1, released 5 months ago by an unverified publisher

Multi-platform ICMP ping utility for Dart and Flutter with live statistics.

$ flutter pub add dart_ping
Source repository

What it does

Performs ICMP network pings across Windows, macOS, Linux, Android, and iOS. Exposes live round-trip statistics and packet-loss summaries through a reactive stream.

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

Use it when

  • You need to check network connectivity or host reachability in a Dart or Flutter application.
  • You want live latency statistics and packet-loss summaries during network diagnostics.

Skip it when

  • You only need standard HTTP health checks rather than low-level ICMP ping packets.

Strengths

  • Supports all major platforms including native iOS via Swift and FFI
  • Provides real-time round-trip statistics and packet-loss summaries
  • Allows selecting specific network interfaces or IP versions (IPv4/IPv6)

Weaknesses

  • Requires platform-specific configurations like iOS build hooks or macOS App Sandbox network entitlements
  • ICMP operations may be restricted by device firewalls or OS network permissions

Setup

Kind
FFI (native library)
Effort
Medium
Code generation
No
Direct dependencies
5

iOS uses a bundled Swift ICMP engine compiled via build hooks requiring the 10.x SDK floor. macOS release builds with app sandbox require network client and server entitlements.

final ping = Ping('google.com', count: 5);
ping.stream.listen((event) {
  print(event);
});

Alternatives

Packages that do the same job and could replace dart_ping.

  • http2

    An HTTP/2 implementation in Dart for low-level transport and pooled HTTP/2 requests.

  • http

    A composable, Future‑based library for making HTTP requests across platforms.

  • wake_on_lan

    Send wake-on-LAN magic packets to devices on a local network.

Works with

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