Hey.
I’m looking for a way to force or trigger a peer/device re-discovery. Or to set a periodic discovery on local network.
The only option I found so far to force a rediscover is to restart Syncthing.
I have 3 devices synced, and all 3 have global discovery and nat-hole-punching disabled. I’ve set all my devices to sync only on trusted Wifi or when they can reach each other via static addresses from a VPN of mine.
My issue now is the following: (One of my devices is a PC and the other a Android Phone.) When the Phone is on the road aka left a trusted Wifi, the PC (re-)discovers the Phone via static address from VPN. Everything just works. And somehow even fast.
BUT, when the Phone rejoins a trusted wifi, and the VPN connetion is still up, then the PC never tries to rediscover the Phone on the local network, or the other way around, because both agree on that they have a working connection.
I’m now looking for something like; either: a) force (manually) a rediscover, semi cool; b) have periodic rediscover on the all configured addresses. In my case its: dynamic, static v6, static v4
Like I said before, the transition from Wifi to LTE with VPN just works fine. In this case the switch from dynamic discovery to static IP.
If I’m really the first one who rises such a question I would be more then happy to provide a feature request aka user story.
Thanks for help and hints.
Syncthing versions I use:
- 1.19.0-1 from Arch Community Repository
- 1.18.3 via f-droid from github.com/syncthing/syncthing-android