Search packages, repositories and app categories

Package detailsv3.1.3

flutter_icmp_ping

Flutter plugin that sends ICMP ECHO_REQUEST to network hosts.

AndroidiOS
30-day downloads
43.2K
Likes
15
Pub points
150

Install package

flutter pub add flutter_icmp_ping

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A Flutter plugin enabling ICMP ECHO_REQUEST (ping) functionality to test network connectivity with remote hosts. It allows developers to check if a device or server is reachable over the network by sending ICMP packets and measuring response times. Designed for Android and iOS, it provides a simple API to integrate ping operations into apps for network diagnostics, health checks, or connection monitoring. The plugin leverages platform-specific implementations to ensure compatibility across both operating systems.

Use cases

  • Network reachability testing
  • Application health monitoring
  • Connection quality assessment
  • Server availability checks
  • Diagnostic tools in apps

Key features

  • Supports Android and iOS platforms
  • Simple API for sending ICMP pings
  • Measures round-trip response time
  • Cross-platform consistency
  • Lightweight and focused on ping functionality

Suitable for

  • Network diagnostic applications
  • Monitoring services
  • DevTools for app developers
  • IoT device connectivity checks
  • Apps requiring real-time network status

Considerations

  • Requires appropriate system permissions on Android
  • Limited to ICMP ping only
  • No support for other protocols
  • May be blocked by firewalls or network policies
  • iOS requires additional configuration for ICMP access

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

flutter_icmp_ping

Flutter plugin that sends ICMP ECHO_REQUEST.

pub package

Supported platforms

  • Flutter Android
  • Flutter iOS

Getting Started

To use this plugin, add flutter_icmp_ping as a dependency in your pubspec.yaml file.

dependencies:
  flutter_icmp_ping:

Import the library in your file.

import 'package:flutter_icmp_ping/flutter_icmp_ping.dart';

See the example directory for a complete sample app using Ping. Or use the Ping like below.

try {
  final ping = Ping(
    'google.com',
    count: 3,
    timeout: 1,
    interval: 1,
    ipv6: false,
    ttl: 40,
  );
  ping.stream.listen((event) {
    print(event);
  });
} catch (e) {
  print('error $e');
}

Categories

Dependencies

Dependency list 1 items

Source repository

Projects using this package

No data available yet.