demoit icon indicating copy to clipboard operation
demoit copied to clipboard

Conflict on port 35729 when 2 servers want to run with -dev

Open Deleplace opened this issue 6 years ago • 1 comments

$ demoit -port 7000 -shellport 7001 -dev sample/
2019/03/18 14:07:06 Welcome to DemoIt. Please, open http://localhost:7000
2019/03/18 14:07:06 Permitting clients to write input to the PTY.
2019/03/18 14:07:06 HTTP server is listening at: http://:::7001/
2019/03/18 14:07:06 listen tcp :35729: bind: address already in use

It would be nice to switch automatically to another port, when 35729 is already in use. I don't know if it is feasible, or if 35729 is the only possible option, though.

Deleplace avatar Mar 18 '19 13:03 Deleplace

See possible fix at https://github.com/Deleplace/fork-demoit/commit/adb7af1b18436e217ea1e338ee90fb23aec1a1c4

Can be promoted to a PR, if for strategic reasons we decide to keep 3 distinct ports

Deleplace avatar Mar 27 '19 14:03 Deleplace