Haukcode.RtpMidi.Mdns 1.0.99

dotnet add package Haukcode.RtpMidi.Mdns --version 1.0.99
                    
NuGet\Install-Package Haukcode.RtpMidi.Mdns -Version 1.0.99
                    
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.RtpMidi.Mdns" Version="1.0.99" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Haukcode.RtpMidi.Mdns" Version="1.0.99" />
                    
Directory.Packages.props
<PackageReference Include="Haukcode.RtpMidi.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.RtpMidi.Mdns --version 1.0.99
                    
#r "nuget: Haukcode.RtpMidi.Mdns, 1.0.99"
                    
#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.RtpMidi.Mdns@1.0.99
                    
#: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.RtpMidi.Mdns&version=1.0.99
                    
Install as a Cake Addin
#tool nuget:?package=Haukcode.RtpMidi.Mdns&version=1.0.99
                    
Install as a Cake Tool

Haukcode.RtpMidi.Mdns

mDNS/Bonjour peer discovery and advertising for Haukcode.RtpMidi.

Browses the local network for _apple-midi._udp services and exposes peers as IObservable<RtpMidiPeer> streams. Advertises your own session so macOS, rtpMIDI, and hardware bridges can find you without manual IP entry.

Installation

dotnet add package Haukcode.RtpMidi.Mdns

Discover peers

One-shot scan

var peers = await RtpMidiDiscovery.ResolveAsync();
foreach (var peer in peers)
    Console.WriteLine($"{peer.Name} @ {peer.ControlEndPoint}");

Continuous monitoring

using var discovery = new RtpMidiDiscovery();

discovery.PeersFound.Subscribe(peer =>
    Console.WriteLine($"Found: {peer.Name} @ {peer.ControlEndPoint}"));

discovery.PeersLost.Subscribe(peer =>
    Console.WriteLine($"Lost: {peer.Name}"));

discovery.StartMonitoring();

Connect to a discovered peer

var peers = await RtpMidiDiscovery.ResolveAsync();
var peer  = peers.First();

await using var session = new RtpMidiSession("My App");
session.MidiReceived.Subscribe(midi => /* handle */ );
await session.ConnectAsync(peer.ControlEndPoint);

Make your app visible in macOS Audio MIDI Setup, Tobias Erichsen's rtpMIDI, and hardware bridges (e.g. iConnectivity mioXM):

using var advertiser = new RtpMidiAdvertiser("My App", controlPort: 5004);
advertiser.Start();

// Your session is now discoverable on the local network.
// Dispose to send goodbye packets and remove the advertisement.
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.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.99 96 4/22/2026
1.0.98 92 4/22/2026
1.0.97 90 4/22/2026
1.0.96 92 4/22/2026
1.0.94 93 4/21/2026
1.0.93 87 4/21/2026
1.0.92 88 4/21/2026
1.0.91 93 4/21/2026
1.0.90 91 4/21/2026
1.0.89 87 4/21/2026
1.0.88 91 4/21/2026
1.0.87 89 4/21/2026
1.0.85 98 4/20/2026
1.0.84 99 4/20/2026
1.0.83-PR-27-99222510 76 4/20/2026
1.0.82-PR-27-ad5588c0 76 4/20/2026
1.0.81-PR-27-fea04649 78 4/20/2026
1.0.80 86 4/20/2026
1.0.79-PR-27-85e4213f 74 4/20/2026
1.0.73-PR-27-3e9f285c 86 4/20/2026
Loading failed