Skip to content

Web page port: settable in Network, the next free port when taken; camex 4.1.2 #284

Closed

Description

@compot-dev

Since 2.24.1 the debug page is always on port 8085 and Decoder tells the camex server that port. On a device with another of our apps holding 8085 (TECNO KM4: MicroSNANDer), Decoder's page never starts (EADDRINUSE, retried every 10 s) and the server's page for the Decoder client showed the other app's page.

Decided for all our Android apps (2026-11-18): the web page listens on 8085 by default; the port can be changed in the app's settings; when the port is taken, the app takes the next free one (8086, 8087, …), shows the real address and logs which port it took and why. One camex tunnel per device stays as it is.

To do:

  • Network: a "Web page port" field (default 8085, empty: 8085).
  • DebugServer: bind the set port or the next free one; /stats.json addresses and the on-screen URLs show the real port; a port change in Network rebinds.
  • The camex tunnel is told the port actually bound (its web_port), and is restarted when that port changes while it runs.
  • bundles/camex → 4.1.2 (Android library: the tunnel reaches other apps' servers (another app's page under this client's name) camex#187): the tunnel lets in only connections to the app's own web port held by the app itself; another app's page answers 502 instead.
  • README (three languages), docs, tests/e2e.sh.
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

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions