Auto-switch port when getting: "RuntimeError: Failed to bind to WebSocket port 9877: Address already in use (os error 98)" #4241
Labels
enhancement
New feature or request
good first issue
Good for newcomers
🏎️ Quick Issue
Can be fixed in a few hours or less
Milestone
Describe the annoyance
Currently if there's a rerun server already using WebSocket port 9877 on a machine,
rr.serve
throws the following error:To Reproduce
rr.serve
(I ran into it on python, but you can trycd rerun/examples/rust && cargo run --bin minimal_serve
)Expected behavior
Assign a different free port (e.g. streamlit does this also).
Your goals
rr.serve
sessions openrr.serve
on a shared machine/server where multiple users might simultaneously be using rerunDesktop (please complete the following information):
The text was updated successfully, but these errors were encountered: