GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — macOS: JmDNS advertiser cannot bind UDP 5353 (mDNSResponder); need native DNS-SD path · Issue #212 · hap-java/HAP-Java

macOS: JmDNS advertiser cannot bind UDP 5353 (mDNSResponder); need native DNS-SD path #212

New issue
Copy link
New issue
Copy link
Open
#213
Open
macOS: JmDNS advertiser cannot bind UDP 5353 (mDNSResponder); need native DNS-SD path#212
#213
Copy link

Description

@kgoderis
kgoderis
opened on Oct 22, 2026
Issue body actions

Problem

On macOS, Apple's mDNSResponder exclusively owns UDP 5353. HAP-Java's default advertising path creates a dedicated JmDNS instance that tries to bind that port, which fails with Address already in use / "no suitable mDNS". Controllers never see _hap._tcp even when the HAP TCP listener is up.

Verified locally:

  • lsof / bind attempts show 5353 is unavailable to the JVM
  • dns-sd -B _hap._tcp stays empty while using JmDNS-only advertising

Proposed direction

Add a pluggable HomekitAdvertiser and a native DNS-SD implementation that calls DNSServiceRegister via JNA (Bonjour IPC) so _hap._tcp is published without binding 5353. Keep existing JmDNS constructors for backward compatibility.

Context

Fork / WIP: https://github.com/kgoderis/HAP-Java/tree/feature/native-dnssd-advertiser
Docs draft: https://github.com/kgoderis/HAP-Java/blob/feature/native-dnssd-advertiser/docs/NATIVE_DNSSD.md

Activity

  1. kgoderis
    added 3 commits that reference this issue on Oct 22, 2026

    Add native DNS-SD advertiser for macOS Bonjour without binding UDP 5353.

    This issue will close once commit 175f81a is merged into the 'master' branch.
    175f81a

    Add native DNS-SD advertiser for macOS Bonjour without binding UDP 5353.

    This issue will close once commit fb1842f is merged into the 'master' branch.
    fb1842f

    Add native DNS-SD advertiser for macOS Bonjour without binding UDP 5353.

    This issue will close once commit 9c032ca is merged into the 'master' branch.
    9c032ca
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.