You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Allow IPv4 multicast discovery for multiple instances on a single device #10955
Allow multiple syncthing instances with local discovery to (easily) coexist on a single system.
Problem or use case
I have a homeserver, used by me and my wife. We sync mostly photos from our phones. It is very cumbersome to get multiple instances of syncthing to work on a single device. I went through a container engine, which allows avoiding the resulting port collisions. Of course, local (IPv4) discovery can work at most for one of these instances.
It would be great if that limitation could be lifted and multiple fully functional instances of syncthing run in parallel.
Alternatives or workarounds
Running them in parallel through a container engine. It works, but it doesn't enable local discovery.
Complex network setups, creating one local IP per syncthing instance. Rejected as too complicated. I'm no network expert.
Sharing one instance across multiple users. Rejected because it breaks all authorization boundaries between those users, or requires all administration to go through one user with elevated permissions
I had Claude Opus 5.5 implement a solution. It seems elegant to me. It works by setting the same port reuse options on the IPv4 multicast listen address that Go already sets on the IPv6 one (automatically). I'm about to test it on Linux. Check this out for reference. Unfortunately, I can't open a PR here: MatthiasvB#1
changed the title [-]Allow IPv4 multicast discover for multiple instances on a single device[/-][+]Allow IPv4 multicast discovery for multiple instances on a single device[/+]on Nov 16, 2026
Should this be accepted I would also create a PR in the nixpkgs repository, enhancing the NixOS module to let Syncthing easily be configured for multiple users. I'm already running this solution (for 10 mins, so not tested for functionality) on my homeserver, by applying a patch on the nixpkgs package definition as an overlay. If somebody is interested, I can relate further details here
Activity
MatthiasvB commentedon Nov 16, 2026
I had Claude Opus 5.5 implement a solution. It seems elegant to me. It works by setting the same port reuse options on the IPv4 multicast listen address that Go already sets on the IPv6 one (automatically). I'm about to test it on Linux. Check this out for reference. Unfortunately, I can't open a PR here: MatthiasvB#1
[-]Allow IPv4 multicast discover for multiple instances on a single device[/-][+]Allow IPv4 multicast discovery for multiple instances on a single device[/+]MatthiasvB commentedon Nov 16, 2026
Should this be accepted I would also create a PR in the nixpkgs repository, enhancing the NixOS module to let Syncthing easily be configured for multiple users. I'm already running this solution (for 10 mins, so not tested for functionality) on my homeserver, by applying a patch on the nixpkgs package definition as an overlay. If somebody is interested, I can relate further details here