iroh-http-discovery 0.6.1

Optional mDNS peer discovery for iroh-http (desktop platforms)
Documentation

iroh-http-discovery

Optional local-network peer discovery for iroh-http.

Implements standard DNS-SD over mDNS (via mdns-sd), publishing PTR + SRV

  • TXT + A/AAAA records so nodes find each other on the same local network without relay servers. Because it speaks the same wire format as Apple's mDNSResponder (NWBrowser) and Android's NsdManager, desktop nodes are discoverable from mobile.

Note: This crate is included automatically when you use the platform adapters with default features. You only need to depend on it directly if you are building a custom Rust integration on top of iroh-http-core.

When to use

  • Desktop apps (macOS, Linux, Windows) that need local peer discovery
  • Custom Rust integrations that need the shared DNS-SD session engine

Platform architecture

  • Desktop uses this crate's mdns-sd transport.
  • iOS/Android use NWBrowser/NetService and NsdManager as transport adapters, then reuse this crate's platform-neutral session engine and peer projection through the Tauri plugin.
  • Environments with only relay/DNS discovery do not need local DNS-SD.

Usage

This crate is typically not used directly. Enable local discovery in the platform adapter's NodeOptions:

const node = await createNode({
  discovery: { mdns: { serviceName: "my-app" } }
});

License

MIT OR Apache-2.0