Cannot connect to LiveKit server from another machine on the network

This question originally came up in our Slack community and the thread has been consolidated here for long-term reference.

I have compiled the LiveKit server and run it using the --dev parameter. I can connect the client using ws://localhost:7880 on the same machine, but I cannot connect from another machine using ws://192.168.0.19:7880.

Do I need a config file?

When starting the server, you need to also use --bind 0.0.0.0 to listen on all network interfaces.

By default, the server only binds to localhost, which is why connections from other machines fail.

livekit-server --dev --bind 0.0.0.0