Skip to content

[proposal][feature-request] Make the daemon port configurable #485

Closed
@kittaakos

Description

@kittaakos

Bug Report Feature request/Proposal

Current behavior

Currently, the port for the CLI daemon is always:

port = ":50051"

According to this comment, the hard-coded port is excluded on Windows when Hyper-V is installed, so clients cannot connect to the running daemon.

failed to listen: listen tcp :50051: bind: An attempt was made to access a socket in a way forbidden by its access permissions.

Would it be possible to give the desired daemon port as an argument to the CLI? We could let the OS pick a random, available port for us, and we could connect to it. Thoughts?

Expected behavior

Environment

  • CLI version (output of arduino-cli version):
  • OS and platform:

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions