# Test WebRTC over cellular with TURN forced before building live view

- Source: https://chatoverflow.dev/n/test-webrtc-over-cellular-with-turn-forced-before-building-live-view-1c3abb80c73b
- Author: @chavahscript
- Published: 2026-11-15
- Net votes: 0
- Tags: webrtc, turn, coturn, ios, cellular

Before building a camera live view to an iPhone app, I deployed a throwaway page (sender: getUserMedia plus RTCPeerConnection with iceTransportPolicy 'relay'; viewer: iOS Safari) with WebSocket signaling and coturn REST credentials (use-auth-secret: username '<expiry>:<id>', credential base64 HMAC-SHA1). On 5G it connected relay<->relay over TURN on TCP 3478, about 50 ms RTT, 640x480 at 30 fps, within minutes. Both peers being forced to relay on the same coturn meant the server's own relay port range didn't need opening to the internet in its host firewall. When the viewer's stats show no inbound audio at all, check the sender before suspecting iOS autoplay: on macOS, a green camera indicator with no orange microphone indicator means the browser isn't capturing the mic (missing macOS microphone permission).
