Storage Azure

Syncthing on Windows Server 2025 on Azure User Guide

| Product: Syncthing on Windows Server 2025

Overview

This guide covers the deployment and use of Syncthing on Windows Server 2025 on Microsoft Azure, using cloudimg's virtual machine image from the Azure Marketplace.

Syncthing is open source software (MPL-2.0) that keeps folders in step between two or more devices. Devices connect directly to each other over encrypted, authenticated connections; no central server holds your files. This image runs it as an always-on sync node on Windows Server: Syncthing starts at boot as a background task, with nobody signed in, and keeps your shared folders in step with the devices you pair.

The image is Microsoft Windows Server 2025 Datacenter with the Desktop Experience (the full graphical interface), Gen2, x64, built from Microsoft's own image on the Azure Marketplace (MicrosoftWindowsServer:WindowsServer:2025-datacenter-g2, version 26100.33828.261112). The Windows Server licence is included in the VM price and billed by Microsoft.

What's included:

  • Syncthing 2.1.7 for Windows (64-bit), the official release from the Syncthing project, its checksum verified against the project's signed checksum list when the image was built, in C:\Program Files\Syncthing\
  • Syncthing running as the scheduled task \Syncthing under the built-in LOCAL SERVICE account: started at boot, restarted within a minute if it ever stops, and never running as an administrator
  • This VM's own Syncthing identity, made at the first boot of your VM: its device ID and certificate, its REST API key, and a random 24-character password for the web GUI user admin, saved in C:\ProgramData\syncthing-credentials.txt, which only administrators can read. No password, key or certificate ships in the image, so no two VMs share one
  • The Syncthing web GUI on http://127.0.0.1:8384/, reachable only from the VM itself (over Remote Desktop), with a Syncthing Web GUI shortcut on the desktop
  • Windows Firewall rules Syncthing sync (TCP-In) and Syncthing sync (QUIC-In), allowing Syncthing's sync protocol in on TCP and UDP 22000 for syncthing.exe only
  • Syncthing's anonymous usage reporting declined and its automatic upgrades turned off (you upgrade on your own schedule, Step 9)
  • Windows Server 2025 Datacenter, Desktop Experience, version 24H2, build 26100.33828, with Microsoft's November 2026 cumulative update. Windows Update ran during the build and reported nothing pending when the image was captured on 1 December 2026
  • The Azure VM agent, so Azure features such as Reset password and Run command work
  • cloudimg's support team is on hand 24 hours a day by email (support@cloudimg.co.uk), with a guaranteed response within 24 hours

Platform: Microsoft Azure (Gen2 Hyper-V; Trusted Launch and NVMe sizes supported) Administrator account: the user name and password you choose when you deploy the VM. There is no default Windows password on this image. Syncthing home: C:\ProgramData\Syncthing (configuration, keys, database and log). New shared folders go under C:\Syncthing by default.

Prerequisites

  1. An Azure subscription
  2. A Remote Desktop client: Remote Desktop Connection (mstsc) on Windows, Windows App (formerly Microsoft Remote Desktop) on macOS, or Remmina on Linux
  3. The public IP address of the machine you will connect from, so you can allow Remote Desktop from that address only
  4. Syncthing on the other devices you want to keep in sync (from syncthing.net)

Recommended size: Standard_B2ms (2 vCPUs, 8 GiB memory). Use a larger size for many folders, very large folders or many devices.

Step 1: Deploy the Virtual Machine

Option A: Azure Portal

  1. In the Azure Marketplace, search for "Syncthing on Windows Server 2025 cloudimg"
  2. Select the offer and click Create
  3. Configure the basics:
  4. Subscription and Resource group: select or create
  5. Virtual machine name and Region: your choice
  6. Size: Standard_B2ms recommended
  7. Under Administrator account, enter a Username and a Password that you choose. Azure refuses reserved names such as "administrator", "admin" and "guest"
  8. Under Inbound port rules, allow RDP (3389). Azure then opens port 3389 to the whole internet, so restrict it straight after deployment (step 7)
  9. Click Review + create, then Create
  10. When the deployment finishes, open the VM's Networking (Network settings) page:
  11. edit the inbound rule for port 3389 and set Source to My IP address (or your office or VPN address range)
  12. add an inbound rule for port 22000, protocol Any (TCP and UDP), from the addresses of the devices that will sync with this server (or from anywhere, if your devices move around: Syncthing only accepts devices you have paired, see Security recommendations)

Option B: Azure CLI

Accept the offer terms once per subscription, then create the VM with no inbound rules. Leave out --admin-password and the CLI asks for the password, which keeps it out of your shell history:

az vm image terms accept --urn cloudimg1647283583153:syncthing-windows-server:default:latest

az vm create \
  --resource-group myResourceGroup \
  --name my-syncthing \
  --image cloudimg1647283583153:syncthing-windows-server:default:latest \
  --size Standard_B2ms \
  --admin-username <your-admin-name> \
  --public-ip-sku Standard \
  --nsg-rule NONE

Then allow Remote Desktop from your own address only, allow Syncthing's sync port, and read the VM's public IP:

az network nsg rule create \
  --resource-group myResourceGroup \
  --nsg-name my-syncthingNSG \
  --name allow-rdp-from-my-ip \
  --priority 1000 \
  --direction Inbound --access Allow --protocol Tcp \
  --destination-port-ranges 3389 \
  --source-address-prefixes <your-public-ip>/32

az network nsg rule create \
  --resource-group myResourceGroup \
  --nsg-name my-syncthingNSG \
  --name allow-syncthing \
  --priority 1010 \
  --direction Inbound --access Allow --protocol '*' \
  --destination-port-ranges 22000 \
  --source-address-prefixes <device-addresses-or-*>

az vm show --resource-group myResourceGroup --name my-syncthing --show-details --query publicIps -o tsv

Step 2: Connect with Remote Desktop

  1. Open your Remote Desktop client and connect to the VM's public IP address
  2. Windows: run mstsc, enter the IP address and click Connect
  3. macOS: in Windows App, add a PC with the IP address
  4. Linux: in Remmina, create an RDP connection to the IP address
  5. When asked for credentials, sign in as <vm-name>\<your-admin-name> with the password you set at deployment. On Windows, choose More choices, then Use a different account
  6. Accept the certificate warning: the VM uses a self-signed Remote Desktop certificate

Windows may show its privacy settings screen at your first sign-in; choose your settings and click Accept.

Syncthing does not need you to stay signed in: it runs in the background from the moment the VM starts. Sign out (or just disconnect) when you are done, and it keeps syncing.

Step 3: Check that Syncthing is running

At the first start of your VM, a one-time task waits for Azure to finish setting the VM up, makes this VM's own Syncthing identity and password, starts Syncthing, and removes itself. It takes about a minute after the VM is first reachable. Open Windows PowerShell with Run as administrator and run:

Test-Path C:\ProgramData\syncthing-firstboot.done
Get-ScheduledTask -TaskName Syncthing | Select-Object TaskName, State
Get-Process syncthing -IncludeUserName | Select-Object Id, UserName, Path
Invoke-RestMethod http://127.0.0.1:8384/rest/noauth/health
True

TaskName  State
--------  -----
Syncthing Running

  Id UserName                   Path
  -- --------                   ----
3472 NT AUTHORITY\LOCAL SERVICE C:\Program Files\Syncthing\syncthing.exe
3832 NT AUTHORITY\LOCAL SERVICE C:\Program Files\Syncthing\syncthing.exe

status
------
OK

An elevated PowerShell window on a new VM running the Step 3 commands: the first-boot marker True, the Syncthing task Running, two syncthing.exe processes as NT AUTHORITY\LOCAL SERVICE and the health check OK

True means the first-boot task has finished. Syncthing runs as NT AUTHORITY\LOCAL SERVICE (two processes: Syncthing's monitor and the Syncthing process it looks after), and the health check answers OK.

To see what listens where, and the firewall rules the image adds:

Get-NetTCPConnection -State Listen -LocalPort 8384, 22000 | Select-Object LocalAddress, LocalPort
Get-NetFirewallRule -Group Syncthing | Select-Object DisplayName, Enabled, Direction, Action
LocalAddress LocalPort
------------ ---------
::               22000
127.0.0.1         8384

DisplayName              Enabled Direction Action
-----------              ------- --------- ------
Syncthing sync (TCP-In)     True   Inbound  Allow
Syncthing sync (QUIC-In)    True   Inbound  Allow

The web GUI and REST API (8384) answer on 127.0.0.1 only, so they are never reachable from the network; the sync protocol (22000) listens on every address.

An elevated PowerShell window: port 22000 listening on every address, port 8384 on 127.0.0.1 only, and the two Syncthing firewall rules enabled

Step 4: Read this VM's Syncthing password

The web GUI's user name is admin. Its password, the REST API key and this server's device ID were made at the first boot of your VM and saved in a file only administrators can read. In the elevated PowerShell window:

Get-Content C:\ProgramData\syncthing-credentials.txt
# Syncthing on Windows Server 2025 by cloudimg: this VM's own Syncthing sign-in (made at first boot).
# Open the web GUI in a browser on this VM (Remote Desktop): http://127.0.0.1:8384/
# (the "Syncthing Web GUI" shortcut on the desktop). It listens on 127.0.0.1 only.
# Change the password in Actions > Settings > GUI. Guide: https://www.cloudimg.co.uk/guides/syncthing-on-windows-server-2025-azure/

syncthing.gui.url=http://127.0.0.1:8384/
syncthing.gui.user=admin
syncthing.gui.password=<24 characters, this VM's own>
syncthing.apikey=<32 characters, this VM's own>
syncthing.device.id=M6DFP4M-OTE5NWS-CZ2XLNA-NLEJYTD-NUK6KY3-ACQZZC4-LKRZJYL-SJHWRQT
syncthing.home=C:\ProgramData\Syncthing
syncthing.folders=C:\Syncthing

(The password and API key are shown here as placeholders; your file holds this VM's own values, and your device ID is different too.)

Keep this password safe. To change it, sign in to the GUI and use Actions > Settings > GUI (the file is not updated when you do).

Step 5: Sign in to the web GUI

Double-click the Syncthing Web GUI shortcut on the desktop (or browse to http://127.0.0.1:8384/ in Microsoft Edge on the VM). Sign in as admin with the password from Step 4.

The GUI listens on 127.0.0.1 only, so it can only be opened from the VM itself, over Remote Desktop. It is not reachable from the internet, even if you open port 8384 in Azure.

The dashboard shows your folders on the left and this device on the right: its name, transfer rates, listeners, discovery status, uptime, its short identification and the Syncthing version.

The Syncthing 2.1.7 web GUI in Microsoft Edge over Remote Desktop, signed in: no folders yet, and this device with its listeners, discovery status, identification and version (v2.1.7, Windows 64-bit)

Step 6: Pair another device

Every Syncthing device is known by its device ID, a fingerprint of the certificate it made for itself. Two devices sync only after each has added the other's ID.

  1. Show this server's device ID: in the GUI choose Actions > Show ID (or read syncthing.device.id in Step 4's file). Copy it, or scan the QR code with the Syncthing app on a phone

Actions > Show ID: this server's own device ID and its QR code, made at the first boot of the VM

  1. On your other device, add this server: Add Remote Device, paste the ID, and save
  2. Back on the server, Syncthing shows a notice that the other device wants to connect: click Add Device in the notice. Or add it yourself: Add Remote Device, paste the other device's ID (from Actions > Show ID on that device), give it a name and click Save

Add Remote Device: the other device's ID goes in the Device ID box, with an optional name and group

The devices find each other through Syncthing's global discovery servers and connect directly on port 22000 (relays are used only if neither side can reach the other). If your other device cannot reach this VM, check the Azure rule for port 22000 (Step 1).

Step 7: Share a folder

  1. Click Add Folder
  2. On the General tab give the folder a label. The Folder Path defaults to a new folder under C:\Syncthing; keep it or choose another path the LOCAL SERVICE account can write to (Troubleshooting)
  3. On the Sharing tab tick the devices to share it with, then click Save
  4. Accept the share on the other device. The folder then stays in step on both, in both directions by default

Add Folder: a folder label, its folder ID, and its path under C:\Syncthing

On the Advanced tab you can make this server Receive Only (a backup copy of another device's folder) or Send Only. File Versioning keeps old versions of files that other devices change or delete.

Step 8: Use the REST API

Syncthing's REST API is on the same address as the GUI and takes the API key from Step 4 in the X-API-Key header:

$key = (Select-String -Path C:\ProgramData\syncthing-credentials.txt -Pattern '^syncthing\.apikey=').Line.Split('=', 2)[1]
Invoke-RestMethod http://127.0.0.1:8384/rest/system/version -Headers @{ 'X-API-Key' = $key }
arch        : amd64
codename    : Hafnium Hornet
container   : False
date        : 2026-10-20T19:54:38Z
extra       :
isBeta      : False
isCandidate : False
isRelease   : True
longVersion : syncthing v2.1.7 "Hafnium Hornet" (go1.27.3 windows-amd64) builder@github.syncthing.net 2026-10-20
              19:54:38 UTC
os          : windows
stamp       : 1792526078
tags        : {}
user        : builder
version     : v2.1.7

An elevated PowerShell window running the Step 8 commands: the API key read into a variable from the credentials file, then the REST API answering with Syncthing v2.1.7 for windows amd64

See Syncthing's REST API documentation for the other endpoints.

Step 9: Keeping Windows and Syncthing up to date

Windows: Windows Update is on, as in Microsoft's image. Check for updates in Settings > Windows Update, and plan restarts: Syncthing starts again by itself after a restart.

Syncthing: automatic upgrades are off in this image, because Syncthing runs as LOCAL SERVICE, which cannot replace files in C:\Program Files. To upgrade, download the new syncthing-windows-amd64-v<version>.zip from the Syncthing releases page, then in an elevated PowerShell window:

Stop-ScheduledTask -TaskName Syncthing
Get-Process syncthing -ErrorAction SilentlyContinue | Stop-Process -Force
Expand-Archive .\syncthing-windows-amd64-v<version>.zip -DestinationPath $env:TEMP\syncthing-new
Copy-Item $env:TEMP\syncthing-new\syncthing-windows-amd64-v<version>\syncthing.exe 'C:\Program Files\Syncthing\syncthing.exe' -Force
Start-ScheduledTask -TaskName Syncthing

Server Components

Component Version or setting Where
Syncthing 2.1.7 (windows-amd64) C:\Program Files\Syncthing\syncthing.exe
Syncthing task \Syncthing, LOCAL SERVICE, at startup, restarted every minute if it stops Task Scheduler
Web GUI and REST API 127.0.0.1:8384, user admin, this VM's own password C:\ProgramData\syncthing-credentials.txt
Sync protocol TCP and UDP (QUIC) 22000 Windows Firewall rules "Syncthing sync (TCP-In)" and "Syncthing sync (QUIC-In)"
Windows Server 2025 Datacenter, Desktop Experience, 24H2, build 26100.33828
Microsoft Edge as shipped in Microsoft's image used for the web GUI

Filesystem Layout

Path What it holds
C:\Program Files\Syncthing\ syncthing.exe, LICENSE.txt (MPL-2.0), AUTHORS.txt, README.txt
C:\ProgramData\Syncthing\ Syncthing's home: config.xml, cert.pem and key.pem (this device's identity), https-cert.pem and https-key.pem (the GUI's own certificate), the index database index-v2 and syncthing.log. SYSTEM and Administrators full control, LOCAL SERVICE modify
C:\ProgramData\syncthing-credentials.txt This VM's GUI user and password, API key and device ID. SYSTEM and Administrators only
C:\Syncthing\ The default parent folder for shared folders (LOCAL SERVICE can write here)
C:\Users\Public\Desktop\Syncthing Web GUI.url The desktop shortcut to http://127.0.0.1:8384/

The OS disk is Microsoft's 127 GB Windows disk (C:, NTFS, about 109 GB free on a new VM). On sizes that have an Azure temporary disk (D:), never keep shared folders there: Azure can wipe it when the VM is stopped or moved. For large folders, add a managed data disk and share folders on it (give LOCAL SERVICE modify rights, see Troubleshooting).

Managing the Service

Syncthing runs as the scheduled task \Syncthing, not as a Windows service. From an elevated PowerShell window:

# stop Syncthing (both of its processes)
Stop-ScheduledTask -TaskName Syncthing
Get-Process syncthing -ErrorAction SilentlyContinue | Stop-Process -Force

# start it again
Start-ScheduledTask -TaskName Syncthing

To keep it stopped across restarts, also run Disable-ScheduledTask -TaskName Syncthing (and Enable-ScheduledTask to undo). You can also restart Syncthing from the GUI with Actions > Restart.

Scripts and Log Files

File What it is
C:\ProgramData\Syncthing\syncthing.log Syncthing's own log (rotated at 10 MB, 3 old files kept)
C:\ProgramData\syncthing-firstboot.log What the one-time first-boot task did
C:\ProgramData\syncthing-firstboot.done Written when the first-boot task finished

On Startup

At the first start of your VM, the scheduled task \cloudimg\Syncthing first boot (SYSTEM) runs once:

  1. It waits until Azure has finished setting up the VM
  2. It makes this VM's Syncthing identity: the device certificate and ID, the API key and a random GUI password (given to Syncthing on standard input, never on a command line)
  3. It sets the GUI to 127.0.0.1:8384, declines usage reporting, turns automatic upgrades off and sets the default folder path to C:\Syncthing
  4. It writes C:\ProgramData\syncthing-credentials.txt, readable by administrators only
  5. It registers and starts the \Syncthing task, waits for the GUI to answer, writes C:\ProgramData\syncthing-firstboot.done, then deletes itself and its script

It runs only once, so there is nothing to turn off. Every start after that, the \Syncthing task starts Syncthing.

Troubleshooting

The GUI does not open, or syncthing-firstboot.done is missing

The first-boot task may still be running: give it a minute and check again. Its log shows how far it got:

Get-Content C:\ProgramData\syncthing-firstboot.log

"Incorrect user name or password" in the GUI

The user name is admin (lower case). Copy the password from syncthing.gui.password= in C:\ProgramData\syncthing-credentials.txt. If you changed the password in the GUI, the file still holds the first one.

Another device cannot connect

  • Check that the Azure network security group allows port 22000 (TCP and UDP) from that device (Step 1)
  • Check that both devices have added each other's device ID
  • In the GUI, Listeners and Discovery should be green or blue; click them for details

"Permission denied" or "folder path missing" on a folder

Syncthing runs as LOCAL SERVICE. Keep shared folders under C:\Syncthing, or give LOCAL SERVICE modify rights on the folder you choose (here F:\Shared on a data disk you added):

icacls 'F:\Shared' /grant '*S-1-5-19:(OI)(CI)M'

Forgot the Windows password

Use Reset password on the VM's page in the Azure portal.

Security Recommendations

  • Keep Remote Desktop restricted to your own address (Step 1), or use Azure Bastion
  • Port 22000 is safe to open more widely: Syncthing connections are encrypted (TLS) and mutually authenticated by device certificates, and Syncthing talks only to devices you have added. Restrict the source addresses if your devices have fixed addresses
  • Keep the GUI on 127.0.0.1. If you ever change the GUI address to reach it from elsewhere, turn on Use HTTPS for GUI first and restrict port 8384 in Azure to your own address
  • Keep the credentials file private. It is readable by administrators only; do not copy it to shared places
  • Back up C:\ProgramData\Syncthing (this device's identity and configuration) and your folders, for example with Azure Backup or disk snapshots

Support

cloudimg's support team is on hand 24 hours a day by email (support@cloudimg.co.uk), with a guaranteed response within 24 hours, covering deployment, Remote Desktop access, pairing devices, sharing folders and upgrades.

Syncthing is a trademark of the Syncthing Foundation. All product and company names are trademarks or registered trademarks of their respective holders. Use of them does not imply any affiliation with or endorsement by them.