Peer-to-peer file sharing in the browser

Browsers connect to each other with WebRTC and send files directly, with a relay as a fallback.

Overview

When two browsers can reach each other, the file goes directly between them. When they cannot, the data is relayed through the server as encrypted chunks.

Why it works well

  • Fast, because there is no upload to a middle server first.
  • Private, because nothing is stored.
  • Reliable, because the relay takes over when a direct path is blocked.

Common questions

What is WebRTC?
A browser technology for direct connections between devices. Zero Portal uses it for transfers.
What if a direct connection is impossible?
Then the encrypted data is relayed through the server.

Related