Syncthing: systemd user service and the web GUI
Syncthing is peer-to-peer sync between your own devices: no central server, end-to-end encrypted, incremental transfer. Measured syncthing 2.1.3.
Install
Section titled “Install”sudo dnf install -y syncthingStart the user service (the recommended way)
Section titled “Start the user service (the recommended way)”Syncthing is designed as one instance per user, and the official template unit ships in the package:
sudo systemctl enable --now syncthing@labuser@labuser picks the user it runs as — on multi-user machines each person gets an isolated instance. Measured after start:
$ systemctl is-active syncthing@labuseractive$ ss -lnt | grep -E "8384|22000"LISTEN 0 128 127.0.0.1:8384 ...LISTEN 0 128 *:22000 ...Two ports, two jobs:
| Port | Bind | Purpose |
|---|---|---|
| 8384 | 127.0.0.1 (loopback only) | web management GUI |
| 22000 | all interfaces | device-to-device data transfer |
Loopback-only 8384 is a safety default — the GUI’s credentials are not strong enough to expose. Measured curl http://127.0.0.1:8384/ returns 200.
Where the config lives
Section titled “Where the config lives”Measured on Fedora 45 (syncthing 2.x):
~/.local/state/syncthing/config.xml # main configOlder tutorials say ~/.config/syncthing/ — that was 1.x. Version 2.x moved to the state directory; do not debug the wrong tree.
Basic flow
Section titled “Basic flow”- Browse to
http://127.0.0.1:8384 - Exchange device IDs (Actions → Show ID) between the two machines
- Share a folder with the peer and wait for the connection
- Changes now sync bidirectionally
Device IDs are certificate fingerprints — much harder to spoof than IP plus password.
Verifying boot-time sync
Section titled “Verifying boot-time sync”systemctl is-enabled syncthing@labuser # enabledloginctl show-user labuser -p Linger # this is the one that mattersLinger=yes is the precondition for user services starting at boot (running without anyone logged in):
sudo loginctl enable-linger labuserWithout linger the service waits for that user’s first login.
Syncthing or Nextcloud?
Section titled “Syncthing or Nextcloud?”| Syncthing | Nextcloud | |
|---|---|---|
| architecture | P2P direct | central server |
| phone access | Syncthing-Fork app | native app |
| sharing links | weak point | strong point |
| conflict handling | keeps .sync-conflict copies | server-side locking |
| fits | mirroring between own devices | team document library, external sharing |
They coexist fine: Syncthing mirrors working directories between devices, Nextcloud handles outward sharing.
Common traps
Section titled “Common traps”| Symptom | Cause |
|---|---|
| web GUI unreachable | 8384 is loopback-only; use an SSH tunnel |
| service absent after reboot | loginctl enable-linger not set |
| devices cannot connect | 22000 blocked, or both behind NAT with no relay |
| config.xml not found | 2.x moved to ~/.local/state/syncthing/ |
| slow sync | encrypted + relayed; prefer direct (same LAN is instant) |
| same file edited on two devices | .sync-conflict copies appear — normal protection, merge manually |
Related pages
Section titled “Related pages”- systemd services and timers — user units and linger
- NFS exports — the LAN alternative
- firewalld — allow 22000/tcp
- Upstream: Syncthing docs