Skip to content

Managed TCP viewer binds all interfaces when requested with localhost host #135

Closed

Description

@trissim

OpenHCS 0.8.6: a managed Napari viewer was requested through openhcs_ui_stream_selected_plate_files_to_viewer with host=127.0.0.1, port=5590, transport_mode=tcp. The returned connection identifies 127.0.0.1, but ss -ltnp shows the viewer process listening on 0.0.0.0:5590. In an isolated local analysis session this unexpectedly exposes the viewer control endpoint on non-loopback interfaces. Expected: bind the requested loopback address, or make the server bind address explicit and distinguish it from the client host in the MCP response. Please retain localhost-only behavior as a supported route.

Activity

  1. added
    bug
    on Sep 29, 2026
  2. trissim commented on Sep 29, 2026

    @trissim
    CollaboratorAuthor

    Implementation owner: OpenHCS coordinator, extending existing PR #159 in /home/ts/wt/openhcs-viewer-bind-20260929. The four other issue workers have been notified of the reserved streaming/listener write scope. An independently declared listen interface now projects through the existing process-launch owner; focused actual-socket tests pass. Fresh installed detached-viewer acceptance remains pending while H003 is active.

  3. trissim commented on Oct 1, 2026

    @trissim
    CollaboratorAuthor

    Completed on main in PR #159, now explicitly linked as a closing PR.

    The shared process-launch/lifecycle authorities distinguish connection host from declared listen_host, default managed TCP data/control listeners to loopback, and reject mismatched reuse before mutation. Besides real socket and both viewer-family controls in the PR, the subsequent actual installed public-MCP/Napari witness streamed two tiny source-projected channels, read typed state/captures, verified actual loopback listeners, and closed only its disposable viewer.

    Closing the unexpected all-interface bind regression. Native RGB rendering acceptance (#282) and retained-window protocol/reset work (#280/#308) are distinct and remain tracked separately.

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

    bugui

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions