Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Files Sync Across Devices Without Server: How It Works

· 6 min read · Home Tech

In this article
  1. What “No Server” Actually Means
  2. How Peer-to-Peer Sync Works
  3. Popular Tools and Protocols
  4. Benefits Over Cloud Sync
  5. Common Problems and Limitations
  6. How to Choose a Serverless Sync Solution
  7. Security and Privacy Considerations
  8. Frequently Asked Questions

Yes, files can sync across your devices without a central server, and it works through peer-to-peer (P2P) synchronization. Instead of uploading to a cloud, your devices connect directly to each other and exchange changes, which is why it can feel like magic—but the underlying technology is well-established and increasingly common.

What “No Server” Actually Means

When people say “no server,” they usually mean no cloud server owned by a company like Dropbox or Google. In a true serverless sync, your devices form a temporary network and talk to each other directly. However, most practical implementations still rely on a lightweight coordination point—often called a “relay” or “introduction server”—to help devices find each other, especially when they’re on different networks. This server doesn’t store your file contents; it only handles connection setup and sometimes metadata like file names and timestamps.

Fully decentralized sync (no server at all) is possible on a local network—for example, two laptops on the same Wi‑Fi can sync directly. But over the internet, direct connections are often blocked by NAT (Network Address Translation) and firewalls. To work around that, tools use techniques like UDP hole punching or a relay that forwards encrypted data without seeing it.

How Peer-to-Peer Sync Works

The core idea is that each device keeps a full copy of the synced folder. When you change a file, the sync tool:

  • Breaks the file into small chunks (often 1–4 MB) and hashes each chunk with a cryptographic hash like SHA‑256.
  • Compares its chunk hashes with those of the other device to identify which chunks differ.
  • Transfers only the missing or changed chunks, not the whole file.
  • Reassembles the file on the receiving device and updates its local index.

This chunk-based approach is efficient for large files—editing a 10 GB video might only transfer a few megabytes. It also means that if two devices have the same file, no transfer happens at all.

To discover each other, devices can use a local network broadcast (mDNS), a central directory of device IDs, or manual IP addresses. Once connected, they communicate over an encrypted channel (usually TLS).

Several open-source and commercial tools implement serverless sync. The most well-known is Syncthing, a free, open-source program that syncs folders between devices without any cloud. It uses its own protocol and can work over the internet with the help of public discovery servers (which only list device addresses, not file data).

Other examples include Resilio Sync (formerly BitTorrent Sync), which uses a similar P2P approach but is proprietary, and Restic or rclone for backup-style sync. On a local network, even rsync over SSH can be considered serverless, though it’s not automatic.

All these tools share the same fundamental architecture: no central file storage, direct device-to-device transfer, and strong encryption in transit.

Benefits Over Cloud Sync

The main advantages of serverless sync are:

  • Privacy: Your files never sit on a third-party server, so the provider can’t read them or hand them over to authorities (unless your device is seized).
  • Speed: On a local network, transfers can saturate your LAN speed (e.g., 1 Gbps), which is often faster than uploading to and downloading from a cloud.
  • No storage limits: You’re limited only by your devices’ disk space, not by a cloud quota.
  • Offline resilience: If the internet goes down but your devices are on the same LAN, sync still works.
  • Cost: No subscription fees—you’re using your own hardware.

For users who handle sensitive documents, large media files, or simply dislike relying on third parties, this model is attractive.

Common Problems and Limitations

Serverless sync isn’t magic—it has real trade-offs:

  • Battery and resource usage: Running a sync client on a phone can drain battery, especially if it’s constantly checking for changes.
  • Conflicts: If you edit the same file on two devices while they’re disconnected, you’ll get a conflict. Most tools keep both versions with a suffix like “conflicted copy.”
  • NAT traversal: Some networks (strict corporate firewalls, some mobile carriers) block P2P connections, forcing you to use a relay that may slow transfers.
  • No versioning by default: Unlike Dropbox, many P2P tools don’t keep file history unless you enable it, so accidental deletions may be permanent.
  • Device availability: For a device to receive changes, it must be online at the time of the sync. If your phone is off, it won’t get updates until it’s back on and connects to another device.

These are not deal-breakers, but they’re why many users still prefer cloud sync for simplicity.

How to Choose a Serverless Sync Solution

When evaluating tools, consider:

  • Platform support: Does it run on all your devices (Windows, macOS, Linux, Android, iOS)? Some tools have limited iOS support due to Apple’s sandboxing.
  • Encryption: Is data encrypted during transfer? Is it encrypted at rest on each device? (Most tools encrypt in transit, but not on disk unless you enable it.)
  • Ease of setup: Syncthing requires more configuration than Resilio, which is more user-friendly.
  • Versioning: Does it offer file versioning or trash? Syncthing has a “file versioning” feature; Resilio has it in paid versions.
  • Mobile battery impact: Check settings for background sync frequency.

Start with a small test folder to see if the tool behaves as expected before migrating all your data.

Security and Privacy Considerations

Serverless sync is generally more private than cloud sync because your files aren’t stored on a provider’s server. However, security depends on implementation:

  • Device authentication: Each device has a unique ID (like a fingerprint). You must verify that ID on first connection to prevent man-in-the-middle attacks.
  • Encryption keys: Some tools use a shared secret (like a 12-word phrase) to encrypt data. Keep that secret safe—anyone with it can decrypt your files.
  • Relay servers: If you use a public relay, it sees encrypted data but could potentially log metadata (IP addresses, timestamps). Choose tools that allow self-hosted relays if that matters to you.
  • At-rest encryption: By default, files on your disk are not encrypted. If your device is stolen, the thief can read them. Enable full-disk encryption (like BitLocker or FileVault) or the tool’s built-in encryption if available.

Remember that “no server” doesn’t mean “no trace.” Your devices still communicate over the internet, so your ISP can see that you’re connecting to a sync service, though not what you’re sending.

Frequently Asked Questions

Is serverless sync actually private?

It’s more private than cloud sync because your files aren’t stored on a third-party server. However, your IP address and metadata may be visible to relay servers or your ISP. To maximize privacy, use a tool that supports self-hosted relays and enable encryption at rest.

Can I sync between my phone and PC without internet?

Yes, if both devices are on the same local network (e.g., same Wi‑Fi), you can sync directly without internet. Tools like Syncthing automatically detect local devices. For internet-based sync, you need some form of connectivity, but it doesn’t have to be a cloud server.

What happens if I edit a file on two devices at the same time?

You’ll get a conflict. The sync tool will keep both versions, usually renaming one with a suffix like “conflicted copy.” You’ll need to manually merge the changes. To minimize conflicts, avoid editing the same file on multiple devices simultaneously.

Does serverless sync work on iOS?

Yes, but with limitations. iOS apps are sandboxed, so they can only access files in their own container unless you use the Files app. Tools like Syncthing have an iOS app that works with the Files app, but background sync is limited—the app must be open to receive changes.

Is serverless sync faster than cloud sync?

On a local network, yes—it can saturate your LAN speed. Over the internet, it depends on the connection between your devices. If both have fast upload speeds, it can be faster than a cloud that might throttle. But if one device has a slow upload, it will bottleneck.

Can I use serverless sync for backup?

It’s not a true backup because if you delete a file on one device, it will delete it on all devices. You need versioning or a separate backup solution. Some tools offer versioning, but it’s not a substitute for a dedicated backup.