Search packages, repositories and app categories

Package detailsv0.0.3

flutter_mdns_plugin

Flutter mDNS plugin

AndroidiOS
30-day downloads
58
Likes
10
Pub points
120

Install package

flutter pub add flutter_mdns_plugin

Package Overview

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

A Flutter plugin that enables mDNS (multicast DNS) functionality for discovering local network devices and services. It allows apps to broadcast and resolve service records on the local network using standard mDNS protocols, facilitating seamless device communication in environments like home automation or IoT applications. The plugin supports both Android and iOS platforms, providing a consistent interface for service discovery and resolution. It is ideal for apps needing to locate printers, smart devices, or other services on the same network without requiring manual configuration.

Use cases

  • Discovering local network devices
  • Automating IoT device pairing
  • Enabling zero-configuration networking
  • Supporting printer discovery
  • Facilitating local service communication

Key features

  • Cross-platform mDNS support
  • Service browsing and resolution
  • Broadcast and advertisement of services
  • Simple API for integration
  • Real-time service updates

Suitable for

  • IoT application developers
  • Local network service discoverers
  • Home automation apps
  • Printer connectivity tools
  • Apps requiring zero-configuration networking

Considerations

  • Requires local network access
  • May need permissions on Android/iOS
  • Limited to local subnet discovery
  • Performance depends on network stability
  • No support for non-local mDNS queries

Original README

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

flutter_mdns_plugin

A simple plugin for discovering mdns services in Flutter on Android and iOS. The example project is set to discover Chromecasts only, but you can set any mdns service by changing the discovery_service string in device_scanner.dart.

iOS installation Make sure you add the Foundation framework to your iOS project in xcode.

Android installation No installation required. Just make sure the permission android.permission.INTERNET is added in your AndroidManifest.xml, but that should be automatically set when creating a new Flutter project.

Most of the code for Android came from this repository: https://github.com/platinumjam/flutter_mdns

Most of the code for iOS came from this resource: https://www.eventbrite.com/engineering/bonjour-gatekeeper-how-to-implement-bonjour-service-in-an-ios-or-android-app/

Categories

Source repository

Projects using this package