Explainer Apr 22, 2026 · 9 min read

What Is Peer-to-Peer File Sharing? And Why It Beats Email and Cloud for Big Files

A plain-English explainer: how P2P moves a file directly from one device to another — no upload step, no size cap, no server copy.

Sending a 4 GB video to a friend usually looks like this: upload it to a cloud bucket, wait, share a link, ask them to download it. The file crosses the internet twice, sits on a stranger’s server in between, and counts against somebody’s storage quota. None of that is necessary. The two devices are sitting on the same planet — often the same Wi-Fi — and they can just talk to each other.

That’s peer-to-peer file sharing: the file moves directly from sender to recipient, with no middle server holding a copy. The role of the cloud shrinks to a one-second handshake at the start — “Hey, are you there? Here’s how to reach me.” After that, it’s just two devices and a wire.

iPhoneMaya
Windows PCRavi
PathDirect · same LAN
EncryptionDTLS-SRTP
Throughput86 Mb/s
Progress0%

How it actually works

The protocol underneath InterDrop is WebRTC — the same real-time engine that powers Google Meet, Discord voice, and Zoom. It was designed for audio and video, but a single primitive in it, the RTCDataChannel, can carry any bytes you want. We use it to carry your file.

  1. You and the recipient each load the same web page. The page asks a small “signalling” server for help finding each other — like asking the operator to connect a call. The signalling server never sees the file. It only relays connection instructions.
  2. Both browsers exchange network addresses and pick the fastest path between them — usually directly over your local Wi-Fi, sometimes through your home router, only rarely through a public relay.
  3. They run a cryptographic handshake (DTLS) and agree on a one-time symmetric key. From that moment, every byte is encrypted on the sender and decrypted on the receiver. Nothing in between can read it.
  4. The file streams across as a sequence of encrypted chunks, in order, until done. Then the connection closes and the keys are discarded.

Cloud upload vs. peer-to-peer

The difference is easier to feel than to describe. Toggle below to see both paths animated, and the four numbers that change the most:

SERVERASENDERBRECIPIENTFILE NEVER LEAVES YOUR NETWORK
PathDirect
Network hops1
Server copy0
PrivacyEnd-to-end

With a cloud upload, the file is copied three times: sender → server → server’s disk → recipient. Each hop is a place where the file can be slow, throttled, logged, scanned, or breached. With P2P, there is exactly one hop: sender → recipient.

“If the recipient is in the same room as you, sending them a file through California is not engineering — it’s habit."

"But is it actually private?”

Yes. The bytes on the wire are encrypted with DTLS-SRTP, the same scheme browsers use for video calls. The encryption keys live in your two browsers and are thrown away when the transfer ends. No server holds the file, and no server holds the keys to read it.

Sender
📄 contract_v2.docx
Wire (DTLS)
·
Recipient
📥 (waiting)
phase: plaintext · cipher: AES-128-GCM

What that means in practice: even an attacker who taps your Wi-Fi sees an opaque stream of bytes — not the file. Even a misconfigured signalling server can’t read what gets sent later. The cryptography is the same stuff banks use; the only unusual thing is that, for once, it’s running end-to-end with no third party in the middle.

When to use P2P (and when not to)

Use peer-to-peer when:

  • The file is large. Anything over a few hundred MB is faster device-to-device than via the cloud.
  • The file is sensitive. Contracts, passport scans, medical PDFs, anything you’d rather not see breached later.
  • The recipient is nearby — same Wi-Fi, same office, same household. You’ll typically hit your network’s full speed.
  • You don’t want to make accounts. No sign-up, no app install — both sides just open a tab.

Use cloud storage when:

  • The recipient is offline and will pick the file up later.
  • You want a long-lived link to send to many people.
  • You need versioning, comments, or other collaboration features.

The two are complements, not competitors. Most people just default to cloud for everything because they don’t know P2P is an option — and now you do.

Frequently asked

Does the sender and recipient need to be on the same network?
It's fastest on the same Wi-Fi, but no — WebRTC can connect peers across the internet too, as long as both sides can negotiate a path. About 90% of transfers go fully direct; the rest use a public relay (still encrypted).
Is there a file size limit?
No fixed limit. The transfer is streamed, not uploaded all at once, so a 20 GB file is fine. The practical limit is your network speed and how long both tabs stay open.
What happens if I close the tab mid-transfer?
The connection ends and the transfer stops. There is no resume from a server — the file isn't on one. Re-open the tab and the recipient can start again.
Can InterDrop see my files?
No. The signalling server only sees that two peers want to talk. The file stream is end-to-end encrypted with keys that never leave your browsers.
Does this work between iPhone and Windows? Mac and Android?
Yes. WebRTC runs in every modern browser, so any pair of devices with a browser can talk to each other — regardless of operating system.

Try peer-to-peer for yourself.

Open InterDrop on this device, open it on the device you want to send to, and drop a file. No sign-up. No install.

Open InterDrop