Haukcode.Mdns 1.0.3

There is a newer version of this package available.
See the version list below for details.
dotnet add package Haukcode.Mdns --version 1.0.3
                    
NuGet\Install-Package Haukcode.Mdns -Version 1.0.3
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Haukcode.Mdns" Version="1.0.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Haukcode.Mdns" Version="1.0.3" />
                    
Directory.Packages.props
<PackageReference Include="Haukcode.Mdns" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Haukcode.Mdns --version 1.0.3
                    
#r "nuget: Haukcode.Mdns, 1.0.3"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Haukcode.Mdns@1.0.3
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Haukcode.Mdns&version=1.0.3
                    
Install as a Cake Addin
#tool nuget:?package=Haukcode.Mdns&version=1.0.3
                    
Install as a Cake Tool

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
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();
Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • 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