DEV Community

Droid2PC Team
Droid2PC Team

Posted on

How We Built a Cloud-Free Secure File Sync for Android, Mac, and Windows using P2P

As a developer, I regularly transfer assets, screenshots, and builds between my laptop and testing devices. The common solutions either rely on cumbersome cables or public clouds (like Google Drive).

That's the exact problem we set out to solve with Droid2PC.

Using the cloud introduces speed bottlenecks, privacy concerns, and storage limits. We designed Droid2PC to operate completely independently of cloud infrastructure.

When you open Droid2PC on your Mac or Windows machine and the Android companion app, they use local network discovery to find each other. We exchange cryptographic handshakes over a local WebSocket server hosted by the desktop client.

Once connected, we utilize local network WebRTC DataChannels and raw TCP sockets to establish a direct tunnel between your devices. The transfer speeds hit the maximum theoretical limit of your Wi-Fi router.

Even though the transfer is happening over your local LAN, we don't assume the network is safe. The P2P stream is fully end-to-end encrypted. When you push a file from your phone, only the paired PC has the key to decrypt it.

If you are a developer looking for a fast, privacy-respecting way to move files or control your Android devices, skip the cables and skip the cloud. Check out the full project directly on our website!

Top comments (0)