Closed
Description
Bug Report Feature request/Proposal
Current behavior
Currently, the port for the CLI daemon is always:
arduino-cli/cli/daemon/daemon.go
Line 37 in ef6463b
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: