Search packages, repositories and app categories

Package detailsv1.1.4

mdns_plugin

mDNS Service discovery plugin for iOS & Android which generates events based on discovery of services on the local network.

30-day downloads
47
Likes
8
Pub points
40

Install package

flutter pub add mdns_plugin

Package Overview

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

The mdns_plugin is a Flutter/Dart package that enables mDNS (multicast DNS) service discovery on iOS and Android devices. It allows applications to detect and interact with services available on the local network, such as printers, smart home devices, or custom networked services. The plugin emits events when new services are discovered or become unavailable, facilitating real-time network awareness. It's ideal for apps requiring zero-configuration networking in local environments.

Use cases

  • Discovering local network devices
  • Connecting to IoT devices
  • Enabling zero-configuration networking
  • Building local service integrations
  • Real-time device presence detection

Key features

  • Cross-platform support (iOS & Android)
  • Event-driven service discovery
  • Local network service scanning
  • Simple API for listening to service events
  • Lightweight and efficient

Suitable for

  • IoT application developers
  • Local network tool builders
  • Smart home app creators
  • Network-aware mobile apps
  • Apps needing automatic device detection

Considerations

  • Requires local network access
  • May not work behind certain firewalls
  • Limited to local subnet discovery
  • No encryption or authentication built-in
  • Performance depends on network conditions

Original README

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

flutter

CircleCI

This repository includes Flutter application and packages.

The applications here are developed on the v1 branch and currently a configuration is included to use CircleCI to build Android APK's when merged into the master branch. The APK images can be downloaded as artifacts from CircleCI once built.

mDNS Plugin

A Flutter mDNS package, which is published at pub.dev. The example which demonstrates the use is here.

gRPC Plugin

A package which provides connection and reflection for remote gRPC services. Please see pub.dev for the package information, and the example which demonstrates the use is here.

Notes on developing a gRPC Client

On a Macintosh, use the following commands in order to make a working gRPC installation, assuming you have Homebrew already installed:

bash% brew install grpc && brew upgrade grpc

We assume that the protocol buffer files (with extension .proto) are in the folder lib/protobuf of your project. The generated output should go into the lib/providers folder.

For Macintosh, there is a script in order to generate the Dart files:

bash% git clone git@github.com:djthorpe/flutter.git
bash% cd flutter/grpc_client
bash% install -d lib/providers/google/protobuf
bash% install -d lib/providers/grpc/reflection/v1alpha
bash% source ../genproto-darwin.sh
bash% flutter test && flutter build ios

Categories

Source repository

Projects using this package

No data available yet.