Resources · 5 guides

WebRTC and Networking for File Transfer

Data channels, ICE, STUN, TURN and NAT traversal, explained with the trade-offs that decide whether two peers connect.

Last updated

About this topic

WebRTC is the browser standard that makes direct browser-to-browser connections possible. For file transfer the relevant parts are the data channel (reliable, ordered messages over SCTP, encrypted with DTLS) and ICE, the procedure that tries every possible network path between two peers using STUN and TURN servers.

Most failed or slow WebRTC transfers come down to the network: NAT behaviour, blocked UDP, proxies that only speak HTTP, or a relay in the path. These guides explain the mechanisms well enough to diagnose those cases, and show where SRIFT falls back to a relay over port 443 when WebRTC cannot connect.