Skip to content

Allow IPv4 multicast discovery for multiple instances on a single device #10955

Description

@MatthiasvB

Feature description

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

Activity

  1. added
    enhancement
    needs-triage
    on Nov 16, 2026
  2. MatthiasvB commented on Nov 16, 2026

    @MatthiasvB
    Author

    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

  3. 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
  4. MatthiasvB commented on Nov 16, 2026

    @MatthiasvB
    Author

    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementneeds-triage

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions