Unable to connect to traced via websocket

47 views
Skip to first unread message

Jacob Ignatius

unread,
Jun 9, 2025, 9:18:13 AMJun 9
to Perfetto Development - www.perfetto.dev
Hi,

I'm trying connect to the traced service via the websocket ws://<ip>:8037/traced.
I have traced and traced_probes running. Then I started started a Perfetto tracing session.
Finally I started tracebox with  ./tracebox websocket_bridge I opened port 8037 in the firewall for two-way communication, but I am not able to connect using the Perfetto UI: https://ui.perfetto.dev/#!/record

Am I missing something? I did notice that tracebox is listening on 127.0.0.1, not 0.0.0.0. So is it not possible to connect from another machine on the same LAN?


Steve Golton

unread,
Jun 9, 2025, 9:32:54 AMJun 9
to Jacob Ignatius, Perfetto Development - www.perfetto.dev
Hi Jacob,

As you already noted, websocket_bridge intentionally listens only on localhost (I believe for security reasons).

We recommend using ssh port forwarding to record a trace from another machine.

E.g.
ssh -L8037:localhost:8037 <remote-machine>


--
You received this message because you are subscribed to the Google Groups "Perfetto Development - www.perfetto.dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to perfetto-dev...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/perfetto-dev/41c0455d-995c-447d-a7ac-89c201258e99n%40googlegroups.com.

Jacob Ignatius

unread,
Jun 9, 2025, 11:11:52 AMJun 9
to Perfetto Development - www.perfetto.dev
Thanks Steve. I got that working now.
Reply all
Reply to author
Forward
0 new messages