How to Sync Folders Between Two Computers With Syncthing

Keeping a folder identical on two computers is a common need: a laptop and a desktop, a work PC and a home PC, or a PC and a small home server. Many people reach for a cloud storage service, but there is another way. Syncthing is a free, open-source program that synchronizes folders directly between your own devices, without sending your files to a company's server. This guide follows the official getting-started documentation for two Windows PCs.
How Syncthing is different
Syncthing's website describes it as private and encrypted: your data is not stored anywhere other than on your own devices, and communication between devices is secured with TLS. The source code is open, and the project is licensed under the Mozilla Public License 2.0. There is no account to create. Instead, each device has a unique device ID, and two devices will connect only if each has been told about the other's ID.
The trade-off is that both computers need to be on at the same time to exchange changes. If one is switched off, it simply catches up the next time both are online.
Step 1: Install and start Syncthing on both PCs
Download the latest release for Windows from the Syncthing website (syncthing.net), on both computers. The documentation says the download contains a program called syncthing.exe. Start it however you prefer: double-clicking works. The community also maintains Windows-specific flavors that wrap the same core with a tray icon or installer; the documentation says all community flavors run the same Syncthing core, so you can switch later.
On first start, Syncthing generates a configuration file and encryption keys, creates a Default Folder named Sync inside your user profile folder, and opens its admin page in your browser. The page lives at http://localhost:8384/, which means it is reachable only from that computer.
Step 2: Find each device's ID
In the admin page, open the Actions menu at the top right and select Show ID. You will see a long string of letters and numbers, and usually a QR code. Copy the ID from the first computer so you can paste it on the second. The documentation points out that device IDs do not need to be kept secret, because they are essentially part of a public key.
Step 3: Add the other device on both sides
- On the first PC, click Add Remote Device at the bottom right.
- Paste the other computer's device ID. The device name is optional and only cosmetic.
- Tick the folder or folders you want to share with that device, and click Save.
- Repeat on the second PC with the first computer's ID.
The official guide stresses that the configuration must be mutual for a connection to happen, so do both sides. After you save, the new device appears in the list on the right, shows as disconnected at first, and should connect after a minute or so.
Step 4: Share and accept a folder
When one computer shares a folder, the other receives a prompt in its admin page to accept it. Accept it and choose where the folder should live on that PC. Adding files to the folder on either side then synchronizes them to the other. To share a different folder instead of the default, click Add Folder, pick the path, and choose which devices to share it with.
Starting with an empty folder on the second computer is the easiest path. If both sides already hold files, let the first scan finish before you edit anything, so the program can compare them calmly.
Step 5: Keep it running
Syncthing only works while it runs. Decide how you want it to start: manually when needed, or automatically with Windows. If you want it available at sign-in, a tray application flavor is the usual choice, and you can also create a shortcut in your Startup folder. Remember that the admin page is reachable at the address above as long as the program is running.
If the devices will not connect
The documentation suggests checking the firewall page first, then any error messages in the admin page or console. A few specific causes come up often:
- Windows network profile. The FAQ explains that when Windows connects to a new network it often labels it Public, which can stop programs from establishing direct connections, forcing Syncthing through a relay. Changing the network profile to Private lets devices connect directly.
- Relays. If you see a connection type starting with Relay, a direct connection could not be made. Relays are run by volunteers, and the FAQ says they cannot see the data passing through. They are slower than a direct link.
- Router and ports. For direct connections over the internet, the firewall guide describes forwarding port 22000 for both TCP and UDP, or letting UPnP handle it. On a single home network, local discovery normally works without changes, though it may be blocked between different subnets or between bridged Wi-Fi and wired networks.
- Patience. Changes do not appear instantly, especially after a restart.
Know what Syncthing is not
The FAQ is blunt: Syncthing is not a great backup application. Every change, including an accidental deletion, is propagated to all your devices. You can enable file versioning on a folder, but the project encourages using other tools to protect data from mistakes. Treat Syncthing as a way to keep working copies aligned, and keep a real backup elsewhere.
A few other practical notes:
- Special files such as
.stfolder(a folder health marker) and.stignore(a patterns file listing what not to sync) are part of how it works. Do not delete the marker folder. - Avoid nesting one shared folder inside another, which the documentation warns can cause unwanted effects.
When to pick something else
Syncthing suits people who want peer-to-peer sync under their own control. If you already run a Nextcloud server, its desktop client keeps chosen folders synchronized between the server and your PC, which also lets you reach files from the web. And if your goal is simply to copy files to a remote server over SFTP or SCP, a file-transfer client such as WinSCP is the more direct tool.
Quick recap
- Install Syncthing on both PCs and open the admin page at localhost:8384.
- Use Actions then Show ID on each, and add the other's ID with Add Remote Device on both.
- Share a folder and accept it on the other side.
- If it will not connect, check the Windows network profile, firewall and relays.
- Keep a separate backup, because sync copies mistakes too.
Software in this article
Comments
No comments yet.





