codex - 💡(How to fix) Fix Add Bonjour/mDNS service discovery for app-server [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#22418Fetched 2026-05-14 03:36:23
View on GitHub
Comments
0
Participants
1
Timeline
2
Reactions
1
Participants
Timeline (top)
labeled ×2
RAW_BUFFERClick to expand / collapse

What variant of Codex are you using?

App / app-server

What feature would you like to see?

I would like Codex app-server to optionally advertise itself over Bonjour/mDNS when it starts, so local apps can discover an available app-server instance without hard-coded ports, manual configuration, or port scanning.

A first version could publish a service such as _codex-app-server._tcp.local with conservative TXT metadata, for example:

  • protocol/API version
  • app-server variant or surface
  • instance ID
  • whether authentication/capability negotiation is required

The advertised metadata should avoid secrets. Discovery should only help clients find the server endpoint; the normal app-server authorization and handshake rules should still decide whether a discovered client can actually connect or perform actions.

Problem

Apps that integrate with app-server currently need an out-of-band way to find it. That usually means one of:

  • asking the user to configure a host and port
  • relying on a fixed or remembered port
  • scanning ports locally
  • maintaining per-surface launch coordination

That creates unnecessary friction for companion apps, native desktop integrations, IDE extensions, and other local clients that should be able to attach to a running Codex app-server instance when the user has already started one.

Proposed behavior

When app-server starts, it could register a Bonjour/mDNS service for the active listener. Clients could browse for the service, inspect the TXT metadata, and then connect using the existing app-server protocol.

Suggested guardrails:

  • keep existing bind-address defaults unchanged
  • make advertisement configurable, or start as opt-in if that is safer
  • advertise only endpoints the app-server is already intentionally serving
  • do not publish tokens, session IDs, thread IDs, user IDs, or paths in TXT records
  • require the existing authentication/capability handshake after discovery
  • withdraw the service promptly when app-server shuts down or changes listener state

Concrete use case

A native app wants to connect to Codex app-server after the user launches Codex. Today the native app has to know how that app-server was launched and which port it selected. With Bonjour/mDNS, the app can discover the running instance, present the discovered server to the user if needed, and then connect through the normal app-server flow.

This would also make multi-app integrations less brittle when ports change between launches or when multiple Codex surfaces exist on the same machine/network.

Additional information

I searched existing issues for Bonjour, mDNS, and app-server discovery before opening this and did not find a matching feature request.

This request is only for service discovery. It is not a request to weaken app-server authorization or expose private state over the local network.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

codex - 💡(How to fix) Fix Add Bonjour/mDNS service discovery for app-server [1 participants]