Haukcode.Mdns
1.0.5
See the version list below for details.
dotnet add package Haukcode.Mdns --version 1.0.5
NuGet\Install-Package Haukcode.Mdns -Version 1.0.5
<PackageReference Include="Haukcode.Mdns" Version="1.0.5" />
<PackageVersion Include="Haukcode.Mdns" Version="1.0.5" />
<PackageReference Include="Haukcode.Mdns" />
paket add Haukcode.Mdns --version 1.0.5
#r "nuget: Haukcode.Mdns, 1.0.5"
#:package Haukcode.Mdns@1.0.5
#addin nuget:?package=Haukcode.Mdns&version=1.0.5
#tool nuget:?package=Haukcode.Mdns&version=1.0.5
Haukcode.Mdns
Lightweight mDNS (RFC 6762) and DNS-SD (RFC 6763) for .NET — zero external dependencies, pure managed C#.
Features
- Advertise a service so other devices can discover it via mDNS
- Browse for services on the local network
- Multi-adapter multicast — binds to all suitable network interfaces
- RFC-compliant announce sequence, TTL refresh, and goodbye packets
- Cross-platform: Windows, Linux ARM64, macOS
Installation
dotnet add package Haukcode.Mdns
Advertise a service
var profile = new ServiceProfile("DMX Core 100", "_apple-midi._udp", port: 5004);
using var advertiser = new MdnsAdvertiser(profile);
advertiser.Start();
// Device is now visible on the network
// Dispose to send goodbye packets
Browse for services
using var browser = new MdnsBrowser("_apple-midi._udp");
browser.ServiceFound += svc =>
Console.WriteLine($"Found: {svc.InstanceName} @ {svc.Port}");
browser.ServiceLost += svc =>
Console.WriteLine($"Lost: {svc.InstanceName}");
browser.Start();
Links
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- No dependencies.
NuGet packages (3)
Showing the top 3 NuGet packages that depend on Haukcode.Mdns:
| Package | Downloads |
|---|---|
|
Haukcode.RtpMidi.Mdns
mDNS/Bonjour peer discovery and advertising for Haukcode.RtpMidi. Browses the local network for _apple-midi._udp services and exposes found/lost peers as IObservable streams. Advertise your own session so other devices can find it. |
|
|
Haukcode.NetworkMidi2.Mdns
mDNS peer discovery and advertising for Haukcode.NetworkMidi2. Browses the local network for _midi2._udp services and exposes found/lost peers as IObservable streams. |
|
|
Haukcode.StreamDeck
Transport-agnostic .NET library for Elgato Stream Deck devices. Single IStreamDeckDevice interface works whether the deck is on USB HID or behind an Elgato Network Dock. Includes mDNS discovery (_elg._tcp), USB HID enumeration, encoder support (Stream Deck Plus), and ImageSharp-based key image encoding. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.14 | 993 | 4/20/2026 |
| 1.0.13 | 438 | 4/19/2026 |
| 1.0.12-PR-2-ccc52e21 | 74 | 4/19/2026 |
| 1.0.11 | 114 | 4/19/2026 |
| 1.0.10-PR-1-6f9bc2e8 | 81 | 4/19/2026 |
| 1.0.9 | 94 | 4/19/2026 |
| 1.0.8-PR-1-4ee9c854 | 82 | 4/19/2026 |
| 1.0.7-copilot-e8f6070d | 90 | 4/19/2026 |
| 1.0.5 | 835 | 4/16/2026 |
| 1.0.4 | 134 | 4/16/2026 |
| 1.0.3 | 101 | 4/16/2026 |