What is a peer-to-peer file transfer?
Definition
Peer-to-peer transfer is sending a file straight from one device to another over an encrypted connection, with no copy kept on a server. Both people must be online at the same time, but there is no upload to wait for.
Also called: P2P transfer, Device-to-device transfer, Direct file transfer, WebRTC file transfer
How does a peer-to-peer transfer work?
A peer-to-peer transfer connects two devices directly and sends the file over that connection. A small server is still needed to introduce them: it passes a short code and the connection details so the two browsers can find each other. In a browser this usually runs on WebRTC, the same technology that carries video calls.
Once the devices are connected, the file moves from one to the other and never lands on the server. That is the key difference from a file transfer service, which stores your upload until the receiver downloads it.
What are the pros and cons of peer-to-peer transfer?
The upside is no upload and no stored copy; the downside is that both people must be online at once:
- No upload wait: the file starts moving as soon as the other person connects.
- No server copy, so nothing is left behind to leak or expire later.
- No size cap from a plan, though the receiving device needs room for the file.
- Both devices must stay online, with the sender's page open, for the whole transfer.
- Some office firewalls and VPNs block direct connections.
- Nothing lasts: once the session ends, there is no link to open again.
Is peer-to-peer transfer secure?
It can be, but check how the encryption key is handled. WebRTC encrypts the connection itself, and some tools add their own encryption on top. If the key comes from a code the introducing server also sees, it is not end-to-end encryption in the strict sense; the protection comes from the file never being stored and the code working only for a short time. Either way, anyone who gets the link while the transfer is open can receive the file, so send it only to the person you mean.
When should you use peer-to-peer transfer instead of a link?
Use it when you are both at your devices right now and the file is too big or too private for a normal upload. Moving a video from your phone to your laptop, or handing a large archive to someone on a call, are good fits. Use a hosted shareable link instead when the other person will open it later, when you send to a group, or when you want a password, analytics or a QR code that keeps working.
| Peer-to-peer | Upload and link | |
|---|---|---|
| Both online at once | Yes | No |
| Copy on a server | No | Yes, until deleted or expired |
| Size limit | The receiving device's space | The service's per-file cap |
| Link works later | No | Yes |
| Views and analytics | No | Often |
Peer-to-peer transfer: common questions
Is peer-to-peer transfer faster than uploading?
Often, because there is no separate upload step. On the same Wi-Fi the file can move at local network speed; across the internet it is limited by the slower of the two connections.
Does peer-to-peer transfer have a size limit?
There is usually no limit from the service, because nothing is uploaded. The practical limit is the memory and disk space of the receiving device, and how long you both keep the page open.
Why does my peer-to-peer transfer not connect?
Strict office firewalls and some VPNs block direct connections. Try a different network, such as a phone hotspot, or turn off the VPN.
What happens if I close the tab during a transfer?
The transfer stops, because the file only exists on your device. You have to start a new transfer and send a new link.
Is peer-to-peer transfer the same as torrenting?
Both connect devices directly, but torrenting spreads pieces of a file across many people at once. A browser peer-to-peer transfer sends files from one person to one person.
Related terms
- File transferFile transfer is moving a file from one person to another, usually once. Transfer services are built for big files and short-lived downloads, and the link typically expires after a few days.
- End-to-end encryptionEnd-to-end encryption means a file is encrypted on the sender's device and can only be decrypted on the recipient's device. The service in the middle carries the data but never holds the key, so it cannot read the contents.
- Shareable linkA shareable link is a web address that opens a file for anyone who has it, without the file traveling as an email attachment. You send a few characters instead of the bytes, and you can usually change or turn off the link later.
- File hostingFile hosting is keeping a file online at a stable address so people can open it whenever they like, often in the browser. It suits files you share again and again: a resume, a menu, a price list.
- Encryption at restEncryption at rest means stored data is kept encrypted on the disks where it sits, so a stolen or discarded disk is unreadable. The service holds the keys and decrypts files when you open them, so it protects against outsiders, not the service.
Go deeper
Updated