Skip to content
Search Fedora

    Browse this documentation

    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.

    Terminal window
    sudo dnf install -y syncthing
    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:

    Terminal window
    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@labuser
    active
    $ ss -lnt | grep -E "8384|22000"
    LISTEN 0 128 127.0.0.1:8384 ...
    LISTEN 0 128 *:22000 ...

    Two ports, two jobs:

    PortBindPurpose
    8384127.0.0.1 (loopback only)web management GUI
    22000all interfacesdevice-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.

    Measured on Fedora 45 (syncthing 2.x):

    ~/.local/state/syncthing/config.xml # main config

    Older tutorials say ~/.config/syncthing/ — that was 1.x. Version 2.x moved to the state directory; do not debug the wrong tree.

    1. Browse to http://127.0.0.1:8384
    2. Exchange device IDs (Actions → Show ID) between the two machines
    3. Share a folder with the peer and wait for the connection
    4. Changes now sync bidirectionally

    Device IDs are certificate fingerprints — much harder to spoof than IP plus password.

    Terminal window
    systemctl is-enabled syncthing@labuser # enabled
    loginctl show-user labuser -p Linger # this is the one that matters

    Linger=yes is the precondition for user services starting at boot (running without anyone logged in):

    Terminal window
    sudo loginctl enable-linger labuser

    Without linger the service waits for that user’s first login.

    SyncthingNextcloud
    architectureP2P directcentral server
    phone accessSyncthing-Fork appnative app
    sharing linksweak pointstrong point
    conflict handlingkeeps .sync-conflict copiesserver-side locking
    fitsmirroring between own devicesteam document library, external sharing

    They coexist fine: Syncthing mirrors working directories between devices, Nextcloud handles outward sharing.

    SymptomCause
    web GUI unreachable8384 is loopback-only; use an SSH tunnel
    service absent after rebootloginctl enable-linger not set
    devices cannot connect22000 blocked, or both behind NAT with no relay
    config.xml not found2.x moved to ~/.local/state/syncthing/
    slow syncencrypted + relayed; prefer direct (same LAN is instant)
    same file edited on two devices.sync-conflict copies appear — normal protection, merge manually