Skip to content

mDNS service not discoverable with correct hostname #9040

@j0nl1

Description

@j0nl1

Description

The mDNS service publication was missing an explicit host configuration, which caused the service to not be
properly discoverable with the opencode.local hostname on the local network.

Current Behavior

  • The mDNS service is published without a host field, so it uses the system's default hostname instead of
    opencode.local
  • The CLI displays opencode.local without the port number, which is misleading

Expected Behavior

  • The mDNS service should be discoverable at opencode.local
  • The CLI should display the full address including the port (e.g., opencode.local:3000)

Steps to Reproduce

  1. Start the web server with mDNS enabled
  2. Try to discover the service using dns-sd -B _http._tcp or a Bonjour browser
  3. Notice the service is not advertised with opencode.local as the hostname

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions