Intermittent ICE Failure in LAN-Only Janus Streaming Setup

Dear Lorenzo,

I hope you’re doing well. I’m currently working with the JanusGateway and Videoroom plugin on a Raspberry Pi as the server, and I’ve run into an intermittent issue that I hope you might be able to advise on.

My setup:

  • The Janus server (Raspberry Pi - with no internet access) and the janus.js (React frontend) client are on the same local network.

  • STUN/TURN are not used (no ICE servers configured).

  • Most of the time, the subscriber connects and receives media correctly.

  • However, in about 1 out of 10 attempts, the subscriber fails with:

    • ICE state: failed

    • DTLS state: created

    • No media received

    • Only host and srflx candidates (as expected on LAN)

Given that everything is local, I was surprised by the occasional ICE failure. Could this be due to timing or race conditions in ICE negotiation or DTLS handshake? Is there any configuration you’d recommend to improve reliability in this kind of offline, LAN-only scenario?

Thanks very much for your time, and for your excellent work on Janus.

Best regards,
joshua Kalima.