Share files between devices on different networks

Most nearby sharing tools, AirDrop included, only see devices that are physically close or on the same Wi-Fi. When your phone is on mobile data and your laptop is on the office network, they cannot find each other. A short code solves that.

With a 6-digit code

  1. Open toss2.me on both devices.
  2. On one of them, press Create a code. A 6-digit code appears.
  3. Type the code on the other device and press Join. The two devices now see each other, whatever network each one is on.
  4. Tap the other device, pick files, and accept on the other side.

The code only introduces the two devices. After that they try to connect directly over WebRTC. If a firewall or carrier-grade NAT gets in the way, the transfer moves to a relay on Cloudflare within a few seconds, which forwards the data and keeps nothing.

With a permanent link to a computer

If one of the devices is a computer you send to often, keep an inbox on it instead. Run this once on the computer (it needs Node.js 22 or newer):

tosstome listen

It prints a link and a QR code, and saves incoming files to a tosstome-inbox folder (change it with --dir). Scan the code with your phone and add the page to your home screen. From then on you only open that page on the phone, pick files, and press Send. Nothing needs to be open on the computer except the running command, and it works from any network. More about the inbox.

Common situations

Questions

Why don't my devices see each other on the same Wi-Fi?

Nearby discovery groups devices by public IP address. A VPN, a mobile hotspot, or a network with several internet connections can give the devices different public addresses. A 6-digit code works in all of those cases.

How long is a code valid?

A code works while the device that created it keeps the page open. It is meant for one session, not as a permanent address.

Are my files uploaded or stored anywhere?

No. Files go straight from one device to the other over WebRTC when the networks allow it. When they do not, the file passes through a relay on Cloudflare that forwards the bytes as they arrive and keeps nothing. If the receiver is offline, nothing is sent.

Do I need to install an app?

No. Sending and receiving both work in a normal browser tab. The command line tool is optional and only needed if you want an always-on inbox on a computer.

Related

Last checked 2026-10-28.

Send a file now