4 ms·
i just read in the docs that it is possible to run your own discovery server and to configure the client to use it and also to remove the built-in discovery ser
by mercora 7y ago
i just read in the docs that it is possible to run your own discovery server and to configure the client to use it and also to remove the built-in discovery server list.
- txcwpalpha 7y agoThere are options in Syncthing's settings to disable both the local and global discovery servers.
- em-bee 7y agoyou can remove the default discovery server and rely on your own. i'd like to not have a discovery server in the first place. it shouldn't be needed for syncing between machines in the same LAN, nor for syncing with a server on a public network. the only common situation where a discovery server is needed is to sync between a machine at home and a machine in the office. and in that case, most likely also a relay server is needed since both will be behind NAT.
- txcwpalpha 7y agoI've only recently started using Syncthing so I might be wrong, but I think you can not use a discovery server at all. The only requirement is that your Syncthing devices must have static IP addresses configured in their respective settings pages on Syncthing. Once that is done, you can disable both local and global discovery servers in the settings panel.
- em-bee 7y agostatic ip addresses are a blocker. i want my phone to sync to my laptop when i am traveling, connected to whatever wifi is available, without needing to rely on internet working. another comment suggests that it should work with avahi/bonjour. if that's the case, that would solve my problem.
- txcwpalpha 7y agoAgain, not an expert on Syncthing, but I'm pretty sure that Avahi/Bonjour do pretty much exactly what Syncthing's local discovery protocols do. edit: here's a discussion on GitHub about adding avahi support: https://github.com/syncthing/syncthing/issues/5460 https://github.com/syncthing/syncthing/issues/5460 It seems they've dismissed it as unnecessary: >Avahi as far as I understand is essentially the same as Bonjour/mDNS/dns-sd. Regardless, bonjour is just multicast unicast bla bla thingy, same like we do with local discovery, the only difference is that bonjour/mDNS/dns-sd etc has support in the routers to forward the service announcements to other subnets, which they won't do for syncthings local discovery. But that thread does have some other information if you want to continue trying to use avahi/bonjour edit again just to be clear: there's a difference between local and global discovery. Global Discovery is the "discovery server" you're referring to. Local Discovery is simply your device sending an announce packet on your local network with your device ID, so that other Syncthing device's on the same network can see it. Local Discovery does not run a "discovery server". I'm not sure exactly what your requirements are, but I would think that just using local discovery would be what you're looking for, or at least worth looking more into.
- em-bee 7y agoyes, local discovery without needing a server is exactly what i am looking for. thank you! i mentioned avahi/bonjour mainly as a point of comparison for something like it. i don't care about the implementation details as long as it works :-)