Producer/consumer transports get disconnected and reconnected continuously on a specific network.

Hello everyone,

I tested my application, and it works normally. However, I encountered an issue when using a specific network: the transport repeatedly disconnects and reconnects. For other users, the video appears blank, and from my perspective, their video is also blank, even though the network seems fine. When I switch to another network, it works normally.

I also tried pinging the server, and it connects normally with an average latency of 57 ms.


Is there a specific setup I might have configured incorrectly? I’m not sure where to start debugging. Please let me know if you have any ideas or need more information.

Thank you for your time.

Based on your problem description with a specific network, my main suspect (as usual) is a (lack of) TURN server. Probably that network has some simetric NAT in the middle or something like that, I have a similar issue when connecting using Vodafone mobile network but worked fine with using wifi + fiber. Can you provide more details about the failling network?

I see, I also suspect it might have something to do with the NAT network or a similar issue. I’ll start debugging in that direction. I’ve also tried using Mediasoup’s debug mode, but I didn’t encounter any connection errors there. Thanks, this gives me an idea of where to start.

1 Like

I did add the TURN server, but the problem still persists. There wasn’t even an ICE state or transport indication showing that it’s reconnecting or similar.

TURN servers are not silver bullets, they can increase connectivity success from 80% to 95%, but there’s a 5% that’s imposible, like Vodafone example i told you. Anyway, if you don’t get reconnection attempts, maybe you have a problem with signaling.