mdns_dart
2.2.2, released 3 months ago by an unverified publisher
A pure Dart mDNS library for local network service discovery and advertisement.
What it does
It implements Multicast DNS (mDNS) directly in Dart, allowing applications to discover and advertise services on local networks. It supports both client queries and server publishing without relying on native platform SDKs.
AI-written summary of version 2.2.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to discover or advertise services on a local network using pure Dart.
- You are working in Docker or bridge networks where native platform mDNS resolution is limited.
Skip it when
- You only need high-level HTTP client requests rather than raw local network device discovery.
Strengths
- Pure Dart implementation with no native dependencies.
- Works reliably in Docker and bridge networks.
- Provides both service discovery and advertisement features.
Weaknesses
- Requires direct socket control handling for low-level networking scenarios.
- Limited to local network multicast environments.
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
final results = await MDNSClient.discover('_http._tcp');
for (final service in results) {
print('${service.name} at ${service.primaryAddress?.address}:${service.port}');
}Works with
Packages commonly used together with mdns_dart: ones it builds on, ones built on it, and its own family.