Sync files across all computers using Syncthing

Last updated on 2021-06-09 Tagged under  # linux  # android

These are my notes from this Youtube tutorial. Well worth watching!

Syncthing is a continuous file synch program. It synchronizes files between multiple computers in real time. My home setup is a star layout; that is, I have multiple devices that exchange data with a central home server.

Example: Setup with 3 computers - a server, desktop, and laptop - with each computer having Syncthing installed.

After travelling and working with my laptop, I return home and - when my laptop connects to the LAN - any file changes are synced with the server, which in turn syncs with the desktop.


For installing the latest stable package for Debian/Ubuntu, see For Arch, simply pacman -S syncthing.


On each computer, setup a systemd unit to automate the startup.

Add the systemd service ...

$ wget
$ sudo chown root: syncthing@.service
$ sudo mv syncthing@.service /etc/systemd/system
$ sudo systemctl daemon-reload

Enable and start Syncthing for your username ...

$ sudo systemctl enable --now syncthing@<username>
$ systemctl status syncthing@<username>

A default folder for synchronization - ~/Sync - is created.

Localhost GUI

On the local device, access Syncthing's GUI via the following URL:

Remote host GUI

By default, we can't connect to the GUI running on a remote computer (program is only listening for connections from

Allow connections to the GUI from network devices by logging into the remote computer, then editing ~/.config/syncthing/config.xml. Change the line ...

<gui enabled="true" tls="false" debugging="false">

... to ...

<gui enabled="true" tls="false" debugging="false">

... and restart sudo systemctl restart syncthing@<username>.

Syncthing GUI on remote host is now accessible at port <ip_address>:8384. Go to Settings-GUI and add a username and password to the web interface.

Add devices

On the remote device, go to Actions->Show ID, copy the string, and on each local device click on Add remote device and paste string in Device ID. A notification appears on remote device to add new device. Click OK and configure.

Add folders

See this video tutorial for adding a folder for synchronization.

Syncthing on Android

Install on phone: Google Play

Add remote device:

Share phone folder (example: Camera folder at /storage/emulated/0/DCIM):

« Earlier: Remotely unlock a LUKS-encrypted Linux server using Dropbear