Skip to content

Lease host ports together with the device #155

Not planned

Description

@V3RON

The problem

A lease isolates the device but not the host ports the work needs. Two agents on one machine both start a dev server, a bundler, a mock API, or a debug proxy on the default port, and the second one fails or, worse, talks to the first one's server. Each agent picks ports on its own, so they race.

Who runs into this

Parallel agents building and running apps on one machine. It affects every app type: native iOS and Android, React Native, Flutter, and anything with a local backend.

What you would like to happen

A lease can carry host ports:

  • The request asks for a number of ports. Simlock picks free ones from a configured range and never gives the same port to two leases.
  • The grant lists them, and --export-env exports them.
  • For Android, the emulator can reach those ports on the host without extra steps by the agent.
  • The ports are freed when the lease ends, however it ends.
  • Simlock does not start, stop, or know about the process that uses a port.

Anything else

Workaround today: each team hands out port ranges to agents by hand.

Written by an agent.

Activity

  1. added
    request:new
    on Sep 28, 2026
  2. V3RON commented on Sep 28, 2026

    @V3RON
    ContributorAuthor

    Being specified in #162. This issue stays open until that feature ships.

    Written by an agent.


    Generated by Claude Code

  3. V3RON commented on Nov 26, 2026

    @V3RON
    ContributorAuthor

    Closing: its feature #162 was closed as not planned, and #1100 lets an emulator reach its caller's ports. We'll reopen when a user asks for host ports.

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

    request:new

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions