Syncthing on Windows: Two PCs, One Folder, Zero Cloud
Link two Windows PCs with Syncthing, share a folder, keep junk out and add an undo button for deletions.
Picture a Friday evening. You finish a document on the desktop PC, copy it to a USB stick, carry it to the laptop, and on Monday you edit the old version on the desktop because the stick is still in your bag. Sound familiar? Syncthing ends that shuffle. It keeps a folder identical on two or more computers and sends the files directly between them, encrypted, without any cloud account in the middle.
Syncthing is free and open source, and the current version is 2.1.7. This guide links two Windows PCs, shares one folder, keeps junk files out and adds a safety net for accidental deletions.
Step 1: Install Syncthing on both PCs
You have three ways to get Syncthing onto Windows, and all of them run the same sync engine underneath.
- The plain version. Download the Windows Intel/AMD (64-bit) package from the Syncthing website, unpack it and start syncthing.exe. It runs without a tray icon and you control it through your browser.
- Syncthing Windows Setup, a community installer that the Syncthing download page lists among its user-friendly integrations.
- SyncTrayzor, a community tray app that launches Syncthing for you and adds a tray icon.
If you're unsure, the installer is the comfortable choice. Repeat the installation on the second PC.
On first start, Syncthing creates its configuration and encryption keys and opens its web interface. If the browser doesn't pop up by itself, type 127.0.0.1:8384 into the address bar. Everything in this guide happens on that page. Note that Syncthing 2.x no longer creates a "Default Folder" on first start, so the Folders list starts out empty.
One quick bit of housekeeping first: open Actions > Settings, switch to the GUI tab and fill in GUI Authentication User and GUI Authentication Password. Then nobody else on the PC can poke around in your sync settings through the browser.
Step 2: Introduce the two PCs
Syncthing devices only talk to each other if both sides know the other's device ID. That ID is a long string of letters and digits, created on first start, and it works like a public key, so you don't need to keep it secret.
- On PC A, open Actions > Show ID. You'll see the ID as text and as a QR code.
- On PC B, click Add Remote Device at the bottom right.
- Paste PC A's ID into Device ID. If both machines are on the same network, Syncthing often lists the other one under the field, and a click fills it in.
- Enter a Device Name like "Desktop", then click Save.
The Add Device dialog (shown in an older Syncthing version). Spaces and dashes in the ID are optional.
Within a minute or so, PC A shows a notice that the new device wants to connect, with the question Add new device?. Click Add Device and Save. If nothing happens, the most common culprit is a firewall. Syncthing needs port 22000 (TCP and UDP) for its sync traffic, so allow it in whatever firewall your PCs use.
Step 3: Share a folder
Now pick the folder you want on both machines, for example your Documents subfolder for a project.
- On PC A, click Add Folder.
- On the General tab, enter a Folder Label (just a display name) and the Folder Path, such as C:\Users\You\Projects. Leave the generated Folder ID as it is.
- Switch to the Sharing tab and tick PC B under the list of devices.
- Click Save.
You can also work the other way round. When you add or edit a device, its Sharing tab has a list called Share Folders With Device, where you tick every folder that device should get.
Share Folders With Device on the device's Sharing tab (older Syncthing version; 2.x has no Default Folder).
PC B now gets a message that PC A wants to share the folder, and asks Add new folder?. Click Add, check the folder path that Syncthing suggests on PC B, adjust it if you like and save. The Folder ID is what ties the two copies together, and it's case sensitive. That's why accepting the offer is safer than creating a folder with the same name by hand.
The first sync can take a while with large folders, because Syncthing hashes every file. After that it watches for changes and syncs them within seconds. When both sides show Up to Date, you're done.
Step 4: Keep junk out with ignore patterns
Not everything in a folder deserves to travel: temp files, Windows thumbnail caches, huge build folders. Syncthing reads a list of patterns from a file called .stignore in the root of the shared folder. You don't have to create that file yourself.
- Click the folder, then Edit.
- Open the Ignore Patterns tab.
- Enter one pattern per line and click Save.
When you create a new folder, the tab only shows a checkbox called Add ignore patterns. Ticking it makes Syncthing ask for patterns right after you save, because patterns can only be added once the folder exists.
A few patterns to start with:
- Skip the Windows thumbnail cache with
(?d)Thumbs.db. The(?d)prefix lets Syncthing delete the file if it's the only thing stopping an empty folder from being removed. - Ignore temporary files anywhere in the folder with
*.tmp. - Leave out a folder named Temp, but only directly in the root of the share, with
/Temp. - Start a line with
//to write a note to yourself.
The .stignore file itself never syncs. Set it up on every PC that shares the folder, otherwise the other machine may still send those files over. On Windows, patterns are always case-insensitive.
Step 5: Turn on file versioning
Syncthing syncs everything, including mistakes. Delete a file on the laptop and it vanishes from the desktop too. File versioning is your undo button.
- Click the folder, then Edit.
- Open the File Versioning tab.
- Choose a method and click Save.
Trash Can File Versioning moves deleted or replaced files into a hidden .stversions folder inside the share, and Clean out after removes them after a number of days (zero keeps them forever). Simple File Versioning keeps a set number of time-stamped copies per file, set with Keep Versions. Staggered File Versioning thins out old copies over time and is a good fit for documents you edit all day.
One detail catches many people out. Versioning only applies to changes that arrive from other devices. If you delete a file on PC A, the old copy is kept on PC B (if versioning is on there), not on PC A. So switch it on for each PC that should hold a safety copy.
Our verdict
Syncthing is ideal for anyone with two or more PCs who wants their files in step without trusting a cloud provider. It asks for a bit more setup than a cloud drive, but once both sides say Up to Date, it just runs. Do one thing today: share a single test folder between two machines and switch on Trash Can versioning on both.

