Skip to content
pubscout

multicast_dns

0.3.3+1, released 5 months ago by flutter.dev

Dart package for performing mDNS queries, Bonjour, and Avahi service discovery.

$ flutter pub add multicast_dns
Source repository

What it does

Performs service discovery over multicast DNS (mDNS) utilizing the MDnsClient class. It allows querying for services like Bonjour and Avahi on the local network.

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

Use it when

  • You need to discover local network services using mDNS or Bonjour.
  • You are building a Dart or Flutter application that communicates with local network devices.

Skip it when

  • You are communicating with remote REST or GraphQL backends.
  • You do not require local network service discovery.

Strengths

  • Supports multiple platforms including Android, iOS, Windows, macOS, and Linux.
  • Based on RFC 6762 Multicast DNS.

Weaknesses

  • Not documented beyond basic usage and README overview.

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
1

not documented

import 'package:multicast_dns/multicast_dns.dart';

void main() async {
  final MDnsClient client = MDnsClient();
  await client.start();
  // ... perform queries ...
  client.stop();
}

Alternatives

Packages that do the same job and could replace multicast_dns.

  • http2

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

  • bonsoir

    A Zeroconf library to discover network services and broadcast your own.

  • super_dns_client

    A DNS resolver for Dart and Flutter supporting DoH and traditional UDP/TCP lookups.

Works with

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