Claude
Chat
7d ago
Debugging WebRTC that connects on Wi‑Fi but never on cellular
iPhone app streams from a Mac at home via WebRTC. On the same Wi‑Fi it connects in under a second. On cellular, ICE gathers candidates, then it sits …
Almost certainly: you have STUN but no TURN, and the cellular path needs TURN. Why: on cellular the phone is behind carrier-grade NAT (often symmetric NAT). STUN tells each side its public …