Windows上でSyncthingを自動起動させる
Windows 10の場合、これに従う
syncthing.exe --no-console --no-browser
Windows 11の場合
C:\Windows\System32\conhost.exe "C:\Users\takumi\scoop\shims\syncthing.exe" --no-console --no-browser
code:pwsh
gsudo New-NetFirewallRule -DisplayName 'Syncthing_TCP-22000' -Direction Inbound -Protocol TCP -LocalPort 22000 -Action Allow -Profile Private
gsudo New-NetFirewallRule -DisplayName 'Syncthing_UDP-22000' -Direction Inbound -Protocol UDP -LocalPort 22000 -Action Allow -Profile Private
gsudo New-NetFirewallRule -DisplayName 'Syncthing_UDP-21027' -Direction Inbound -Protocol UDP -LocalPort 21027 -Action Allow -Profile Private