Both devices have Syncthing v1.20.1
Synchronization works well only inside local network (i.e if I connect Linux to wi-fi hotspot of the Android device)
Firewalld is installed on Linux computer, so I add Syncthing to exceptions.
On both devices I see only 3/5 discover servers:
(If I turn on VPN, https://discovery-v4.syncthing.net/v2/ will be available)
Logs from Linux:
log.txt (26.9 KB)
On Android I have almost symmetric logs.
Why I cannot sync my devices?
Normally, you need global discovery to work if you want to make devices connect outside of your local network. According to the screenshot, global discovery isn’t working though, so I can only suggest to check the firewall again…
If I understand correctly, do you mean that global discovery works only when the VPN is on, and doesn’t work when it is off?
Thanks for attention.
Global discovery should work over global@https://discovery.syncthing.net/v2/, but I not see that.
In my situation global discovery not work properly, just 1/3 global and 2/2 local endpoints online:
And yes, if I enable VPN, then global@https://discovery.syncthing.net/v2/ become online
Also without VPN I can ping discovery-v4.syncthing.net:
$ ping discovery-v4.syncthing.net
PING discovery-v4.syncthing.net (198.211.120.59) 56(84) bytes of data.
64 bytes from discovery-1.syncthing.net (198.211.120.59): icmp_seq=1 ttl=56 time=61.4 ms
^C
--- discovery-v4.syncthing.net ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 61.367/61.367/61.367/0.000 ms
But curl show nothing:
$ curl --connect-timeout 7 -k https://discovery-v4.syncthing.net/v2/
curl: (28) Failed to connect to discovery-v4.syncthing.net port 443 after 5263 ms: Connection timed out
My networking knowledge is very weak, so I probably can’t help more with finding the culprit and/or solution to the problem here. Maybe someone else will chime in to provide more feedback.
Wow, this is mean that I have no global discovery at all, because I must have v4 or v6 at least?
If this is true, I now understand the reason of malfunction of discovering.
I read Blocked IP addresses in Russia - #33 by schnappi, and after that I tried manually add https://discovery-3.syncthing.net/v2/ as global discovery server. I’m getting error with message: global@https://discovery-3.syncthing.net/v2/: Post "https://discovery-3.syncthing.net/v2/": x509: certificate is not valid for any names, but wanted to match discovery-3.syncthing.net