Syncthing Sync Without Cloud: How It Works
In this article
Yes, you can sync files between your devices with Syncthing without any cloud storage. Syncthing is a free, open-source, peer-to-peer file synchronization program that connects your devices directly over your local network or the internet, so your files never pass through a third-party server.
Background: Why Syncthing Exists
Cloud storage services like Dropbox, Google Drive, and OneDrive are convenient, but they come with trade-offs. Your files are stored on someone else's servers, which raises privacy concerns, and you often pay for more space or bandwidth. Syncthing was created in 2013 by Jakob Borg as a response to the proprietary nature of existing sync tools. It is fully open source, meaning anyone can inspect the code, and it runs on your own hardware, giving you complete control over where your data lives.
Unlike cloud-based sync, which uploads files to a central server and then downloads them to your other devices, Syncthing uses a peer-to-peer model. Each device runs the Syncthing software and connects directly to your other devices. If two devices are on the same Wi-Fi network, they can transfer files locally at full network speed, without any internet involvement. When devices are on different networks, Syncthing uses a technique called NAT traversal to establish a direct encrypted connection, or it falls back to a relay server that only passes encrypted data and never stores it.
How Syncthing Works Under the Hood
Syncthing uses a few key concepts to keep your files in sync:
- Device IDs: Each installation gets a unique cryptographic ID, which looks like a long string of letters and numbers. You share this ID with the devices you want to sync with, and they share theirs with you. This is how devices authenticate each other.
- Folders: You designate a folder on each device as a "shared folder." Syncthing then keeps that folder identical across all devices that have it shared.
- Block-level sync: When a file changes, Syncthing doesn't re-upload the whole file. It splits files into blocks (typically 128 KB) and only transfers the blocks that changed. This makes syncing large files with small edits very efficient.
- Versioning: Syncthing can keep old versions of files, so if you accidentally delete or overwrite something, you can recover it. You can choose from simple versioning, staggered versioning, or external versioning.
- Encryption: All traffic between devices is encrypted with TLS, the same protocol used for HTTPS websites. Even if someone intercepts your data, they can't read it.
Setting Up Syncthing: A Step-by-Step Guide
Getting started with Syncthing is straightforward, but the steps vary slightly depending on your operating system.
- Install Syncthing: Download the appropriate package for your OS from the official website or your package manager. For Windows, macOS, and Linux, you can also use the graphical SyncTrayzor (Windows) or SyncThingy (macOS) wrappers. On mobile, use the Syncthing-Fork app for Android; iOS is more limited due to system restrictions.
- Start Syncthing: Launch the program. It runs in the background and opens a web interface in your browser at
localhost:8384. This is where you configure everything. - Add a device: In the web UI, go to "Actions" > "Show ID" to see your device ID. On your other device, click "Add Remote Device" and paste the ID. Repeat this on both devices so they trust each other.
- Add a folder: Click "Add Folder" and give it a label. Choose a path on your device where the folder will be stored. Then, in the "Sharing" tab, select the remote device you just added. Do this on both devices.
- Accept the folder: When you add a shared folder on one device, the other device will prompt you to accept it. Click "Add" and confirm the path.
- Sync: Once both devices have the folder configured, Syncthing will start scanning and transferring files automatically. You can watch progress in the web UI.
Choosing What to Sync and How
Syncthing is flexible, but you have to decide what to sync and how you want it to behave. Here are some common patterns:
- Full mirror: Sync a folder across all devices, so every device has an identical copy. This is good for documents, photos, or project files.
- One-way sync: Use the "Send Only" folder type on the source device and "Receive Only" on the target. This is useful for backing up photos from your phone to a home server without letting changes on the server propagate back.
- Selective sync: On mobile, you can mark a folder as "Not Synced" and only pull specific files on demand. This saves storage space.
- Encrypted folders: You can set a folder to "Encrypted" on a target device, meaning that device stores files in an encrypted format. This is ideal for untrusted devices, like a cheap VPS or a friend's computer.
Common Problems and Their Fixes
Syncthing is generally reliable, but users often hit a few recurring issues:
- Devices can't connect over the internet: This is usually a NAT or firewall issue. Syncthing uses UPnP to automatically open ports, but if that fails, you may need to manually forward TCP port 22000 on your router. Alternatively, enable "Relay" in the settings, which lets devices connect through a relay server (encrypted, but slower).
- High CPU or battery usage: Syncthing continuously scans folders for changes. If you have a huge folder, increase the "Watcher" interval or disable the watcher and use manual rescan. On mobile, limit the folder to "Send Only" or use selective sync.
- Conflicts: If you edit the same file on two devices before they sync, Syncthing creates a conflict copy with a
sync-conflictsuffix. You'll need to manually merge or choose which version to keep. - Folder not syncing: Check the web UI for error messages. Common causes include permission issues, disk full, or the folder path being invalid on the remote device.
Syncthing vs. Cloud Storage and Other Alternatives
How does Syncthing compare to the alternatives? Here's a quick breakdown:
- Cloud storage (Dropbox, Google Drive): Easy to set up, works everywhere, but your data is on someone else's servers, and you pay for storage. Syncthing is free, private, and has no storage limits, but requires more technical setup and both devices must be online to sync.
- Resilio Sync (formerly BitTorrent Sync): A commercial product that also uses peer-to-peer sync. It's easier to use but not fully open source and has a paid tier. Syncthing is free and open source.
- Nextcloud: A self-hosted cloud platform that gives you file sync, calendar, contacts, and more. It requires a server you control, whereas Syncthing is truly peer-to-peer with no central server.
- rsync: A command-line tool for one-time file transfers. It's not automatic or real-time; you have to run it manually or via cron. Syncthing is automatic and continuous.
Safety, Security, and Privacy Considerations
Syncthing is designed with security in mind, but you need to use it correctly:
- Encryption: All data is encrypted in transit using TLS. Even if someone intercepts the packets, they can't read them.
- Authentication: Devices authenticate using their unique IDs. Only devices you explicitly add can connect.
- No cloud storage: Your files are never stored on a third-party server. The only time data leaves your devices is when it's being transferred directly to another device you own.
- Risks: If you lose a device, you lose the data on it unless you have another copy. Unlike cloud storage, there's no central backup. Also, if you share a folder with an untrusted device, that device can see all the files in that folder (unless it's encrypted).
- Best practices: Always keep at least one backup of important files. Use versioning to protect against accidental changes. Be careful when adding remote devices—only add devices you trust.
Frequently Asked Questions
Is Syncthing really free?
Yes, Syncthing is completely free and open source. There are no paid tiers, no premium features, and no limits on the number of devices or folders. You can download it from the official website or your package manager without paying anything.
Can I use Syncthing on my phone?
Yes, Syncthing works on Android via the official app or the Syncthing-Fork variant. iOS support is limited because Apple restricts background file access, but there are third-party apps that can sync with Syncthing, though they may require manual steps.
What happens if two devices are offline at the same time?
Syncthing simply waits until both devices are online. When they reconnect, they exchange the changes that happened while they were offline. There's no conflict resolution beyond creating conflict copies if the same file was edited on both devices.
Does Syncthing work over the internet without port forwarding?
Yes, in most cases. Syncthing uses NAT traversal to establish direct connections, and if that fails, it uses relay servers. The relay only passes encrypted data and doesn't store it, but it can slow down transfers. For best performance, you can set up port forwarding on your router.
Can I sync a folder with a friend or colleague?
Yes, you can share a folder with anyone by exchanging device IDs. However, be aware that they will have full access to that folder's contents. You can set the folder to "Send Only" on your side to prevent them from modifying your files, but they will still see everything.
How is Syncthing different from a NAS or external drive?
A NAS or external drive is a storage device, not a sync tool. With a NAS, you'd still need software to sync files between devices. Syncthing can sync directly between your devices, including your phone, without any central hardware. It's a software solution that works on any device you already own.