Overview
The nsd package is a Flutter plugin enabling network service discovery and registration using DNS-SD, Bonjour, and mDNS protocols. It allows apps to discover and advertise services on local networks across Android, iOS, macOS, and Windows. Ideal for peer-to-peer communication, device pairing, and local network integration, it simplifies finding devices or services like printers, media players, or custom IoT devices without relying on the internet. The plugin provides a consistent API across platforms, making it easier to build seamless local network experiences.
Use cases
- Local device discovery
- Service advertising
- IoT device pairing
- Peer-to-peer app communication
- Printer or media device detection
- Networked app collaboration
Key features
- Cross-platform mDNS support
- Service discovery and registration
- Simple API for local network interaction
- Supports Android, iOS, macOS, and Windows
- Built-in Bonjour/DNS-SD compatibility
- Real-time service updates
Suitable for
- Developers building local network apps
- IoT application creators
- Apps needing device discovery
- Teams implementing zero-configuration networking
- Projects requiring peer-to-peer connectivity
Considerations
- Requires local network access
- May need firewall configuration
- Limited to local subnet discovery
- Platform-specific mDNS implementation nuances
- Not suitable for internet-based service discovery
- Performance depends on network stability
