-
Notifications
You must be signed in to change notification settings - Fork 451
Get local websocket port upon launching rr.serve with ws_port=0 #7237
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @Wumpf - any updates on this? I'm in the process of upgrading an application from using Rerun 0.16.1 to the latest (at this point, 0.22.1). This is advancing well, but I note that my workaround above to get the port upon launching |
Ah, seems like the default logging level is now less than INFO, so it should be an easy fix on my side to keep the workaround functional: just define the env var
|
I've removed the workaround and now pre-determine the socket port before calling |
Thanks! But that's still an annoying issue though, there should be some more standardized way to retrieve the port when using automatic port selection |
Is your feature request related to a problem? Please describe.
I have a "server" app (in python) that dynamically launches (and kills) rerun websocket server instances. Client apps (with Rerun viewer in them) will then connect to any of those instances. So far so good. However, having to manually (pre)determine the ports those instances will run on is a bit of a hassle.
Describe the solution you'd like
A convenient/reasonable solution is that, upon launching with
rr.serve(ws_port=0, ...)
, there's a Rerun API that reports the local port that was assigned. (apologies if such thing already exists and I'm just not finding it.)I'm using rerun-sdk
0.16.1[EDIT:] 0.17.0Describe alternatives you've considered
Such port shows up as part of INFO logging, eg:
but not ideal having to parse it from there.
The text was updated successfully, but these errors were encountered: