文件传输(WebRTC)
使用一次性房间代码,通过 WebRTC 在两个浏览器之间直接发送文件。文件从不经过服务器,也不会存储在服务器上。
Before you start
- The file travels directly between the two browsers over an encrypted WebRTC connection. It never passes through or is stored on a server.
- As with any peer-to-peer connection, the other party can see your IP address.
- Anyone who has the room code can join while the host is connected. Share it only with the person you want to send to or receive from.
- Keep both browser tabs open until the transfer finishes. The room expires after 30 minutes.
- Files up to roughly 1 GB are a practical limit: the receiving browser assembles the file in memory.
Sending uses 64 KB chunks with backpressure, so large files do not flood the connection. Progress is counted in bytes actually handed to the connection.
使用方法
- The sender presses "Create a room" and gets a room code and a share link.
- Send the link (or the code) to the other person. Opening it connects them automatically.
- Once connected, either side can pick a file and send it.
- When the transfer finishes, the receiving side gets a download button. Keep both tabs open.
注意事项
File bytes flow directly between the two browsers over a WebRTC data channel. They never pass through or are stored on a server; the server only introduces the two devices (signaling). As with any peer-to-peer connection, the other party can see your IP address. Rooms expire after 30 minutes and end when the host disconnects. Some network combinations (for example strict corporate NATs) cannot connect directly, because this tool uses STUN only and no TURN relay.
常见问题
- How large a file can I send?
- There is no server-side limit, because the file never touches a server. The receiving browser assembles the file in memory, so roughly 1 GB is a practical guide.
- What happens if a tab is closed mid-transfer?
- The transfer stops and the partial data is discarded. There is no resume; create a new room and send the file again.
- Is the transfer encrypted?
- WebRTC data channels are encrypted with DTLS. There is no identity verification, though, so only give the room code to people you trust.