Why Browser File Transfers Need a Zero-Data Guard
2026-12-01 · 1 min read
When building a cross-device file transfer platform on the open web, passing public STUN and TURN servers straight into RTCPeerConnection creates an invisible trap for everyday users.
The silent relay problem
If a phone sits on 5G while a laptop sits on Wi-Fi—or if a Wi-Fi router enforces AP isolation—WebRTC silently picks srflx or relay candidates and pushes gigabytes of video across the user's cellular plan without warning.
Two-stage verification before the first byte
Inside transferit.network, our transport layer always begins with a strict local-only probe (iceServers: []), inspects selectedCandidatePairId via getStats(), and requires localCandidate.candidateType === 'host' on both sides before unlocking automatic streaming. When local routing isn't reachable, we pause cleanly and put the choice back in the user's hands.
