Have you ever wished you could sync files seamlessly between your phone, laptop, and server without paying a monthly fee or handing your data over to big corporations? Meet Syncthing, a continuous file synchronization program that works completely peer-to-peer.
In this interactive and highly detailed guide, we will walk you through setting up Syncthing across your devices, explaining the concepts along the way, and showing you how to manage your decentralized cloud.
What is Syncthing?
Syncthing replaces proprietary sync and cloud services (like Dropbox or Google Drive) with something open, trustworthy, and decentralized.
Click here to see how Syncthing differs from traditional Cloud Storage!
Key Features:
- Private and Secure: All communication is secured using TLS encryption. Every node is identified by a strong cryptographic certificate.
- Decentralized: No central server means no central point of failure.
- Cross-Platform: Works beautifully on Linux, Windows, macOS, Android, and BSD.
- Easy to Use: A clean, responsive web GUI makes configuration a breeze.
Prerequisites
To follow along, you will need:
- At least two devices (e.g., your laptop and your Android smartphone, or a laptop and a Linux server).
- A basic understanding of your operating system’s file manager.
Step 1: Installing Syncthing
Because Syncthing is cross-platform, the installation process differs slightly depending on your device.
On Ubuntu / Debian Linux
The easiest way to install Syncthing on a Debian-based system is via the official APT repository to ensure you always get the latest version.
Open your terminal and run the following commands:
# Add the release PGP keys
sudo curl -o /usr/share/keyrings/syncthing-archive-keyring.gpg https://syncthing.net/release-key.txt
# Add the "stable" channel to your APT sources
echo "deb [signed-by=/usr/share/keyrings/syncthing-archive-keyring.gpg] https://apt.syncthing.net/ syncthing stable" | sudo tee /etc/apt/sources.list.d/syncthing.list
# Update your package list and install Syncthing
sudo apt-get update
sudo apt-get install syncthing
Pro Tip: To run Syncthing automatically in the background on Linux, you can enable it as a systemd service by running:
systemctl --user enable --now syncthing.service
On Windows & macOS
Simply head over to the official Syncthing Downloads page and grab the Base Syncthing executable, or use the popular wrapper applications:
- Windows: Use SyncTrayzor (provides a system tray icon and built-in browser).
- macOS: Use Syncthing macOS (provides a native menu bar app).
On Android
Download the official Syncthing app directly from the Google Play Store or F-Droid.
Step 2: Exploring the Web GUI
Once Syncthing is running on your computer, open your web browser and navigate to:
http://127.0.0.1:8384
This is your Syncthing control center.
Troubleshooting: Web GUI not loading?
When you first open the GUI, you should immediately go to Actions > Settings > GUI and set up a GUI Authentication User and Password. This prevents unauthorized access to your configuration!
Step 3: Connecting Your Devices
Syncthing works by establishing a trust relationship between devices.
- Find your Device ID: On Device A (your computer), click on Actions > Show ID. You will see a long string of letters and numbers, along with a QR code.
- Add the Device: On Device B (your smartphone), open the Syncthing app, go to the “Devices” tab, and tap the + icon.
- Scan the Code: Tap the barcode scanner icon and scan the QR code displayed on your computer screen. Give the device a recognizable name (e.g., “My Laptop”).
- Accept the Request: Within a minute, a prompt will appear on your computer’s Web GUI asking if you want to add the new device (your phone). Click Add Device.
Your devices are now securely linked and chatting with each other!
Step 4: Syncing Your First Folder
Now that your devices trust each other, let’s sync some files!
- On your computer’s Web GUI, click Add Folder under the Folders section.
- Give the folder a Label (e.g., “Important Documents”). The Folder ID will auto-generate.
- Choose the Folder Path on your hard drive.
- Go to the Sharing tab at the top of the modal window and check the box next to your newly added smartphone.
- Click Save.
On your smartphone, you will receive a notification that your computer wants to share the folder “Important Documents”. Tap the notification, choose where you want those files saved on your phone’s storage, and accept!
Watch the Web GUI—you will see the folder state change to Syncing, and within moments, your files will be perfectly mirrored on both devices.
Advanced Feature: Folder Types
Syncthing isn’t just for 2-way syncing. You can customize how folders behave:
- Send & Receive: (Default) Changes made on any device are mirrored to all other devices.
- Send Only: Changes made on this device are sent out, but if another device deletes or modifies the file, this device will ignore it. Perfect for a master backup server!
- Receive Only: This device will receive files, but any local changes made here will not be sent back to other devices.
Conclusion
By setting up Syncthing, you have taken a massive step toward data sovereignty. Your files now sync instantly across your local network at gigabit speeds, and securely over the internet when you are away from home, completely bypassing third-party servers.
Whether you are keeping your Obsidian markdown notes synced, backing up your Android camera roll to your PC, or pushing configurations to a remote Linux server, Syncthing is the ultimate open-source tool for the job.
Don’t forget to subscribe to our newsletter for more weekly privacy-respecting tech tutorials!