I checked all the comments in the forum I have found and none helped me.
I have 3 linux boxes (homeserver, workserver, laptop). My computer connects correctly to my workserver, but not to my homeserver.
Both boxes have UFW disabled, and my home router has port 22000 forwarded to my homeserver 22000 (TCP&UDP).
When I check my homeserver discovery returns 3/5 and the error is one error is:
global@https://discovery-v4.syncthing.net/v2/: Post "https://discovery-v4.syncthing.net/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
(There is a IPv6 error, but I ignore IPv6 errors because my internet provider don’t use it)
When I connect using a browser from homeserver to this url it returns Not found (404)
2020-08-13 15:23:59 negative cache entry for XXXXXXXX-XXXXXXXX-XXXXXXXX-XXXXXXXX-XXXXXXXX-XXXXXXXX-XXXXXXXX-XXXXXXXX-FSIQWAJ at global@https://discovery-v4.syncthing.net/v2/ valid until 2020-08-13 15:22:00.998152214 +0200 CEST m=+92.229322741 or 2020-08-13 16:21:00.998153279 +0200 CEST m=+3632.229323774
2020-08-13 15:23:59 negative cache entry for XXXXXXXX-XXXXXXXX-XXXXXXXX-XXXXXXXX-XXXXXXXX-XXXXXXXX-XXXXXXXX-XXXXXXXX-FSIQWAJ at global@https://discovery-v6.syncthing.net/v2/ valid until 2020-08-13 15:22:00.99815681 +0200 CEST m=+92.229327325 or 2020-08-13 16:21:00.998157282 +0200 CEST m=+3632.229327776
2020-08-13 15:23:59 lookup for XXXXXXXX-XXXXXXXX-XXXXXXXX-XXXXXXXX-XXXXXXXX-XXXXXXXX-XXXXXXXX-XXXXXXXX-FSIQWAJ at IPv4 local
2020-08-13 15:23:59 addresses: []
2020-08-13 15:23:59 lookup for XXXXXXXX-XXXXXXXX-XXXXXXXX-XXXXXXXX-XXXXXXXX-XXXXXXXX-XXXXXXXX-XXXXXXXX-FSIQWAJ at IPv6 local
2020-08-13 15:23:59 addresses: []
2020-08-13 15:23:59 lookup results for XXXXXXXX-XXXXXXXX-XXXXXXXX-XXXXXXXX-XXXXXXXX-XXXXXXXX-XXXXXXXX-XXXXXXXX-FSIQWAJ
2020-08-13 15:23:59 addresses: []
2020-08-13 15:23:59 Reconnect loop for XXXXXXXX-XXXXXXXX-XXXXXXXX-XXXXXXXX-XXXXXXXX-XXXXXXXX-XXXXXXXX-XXXXXXXX-FSIQWAJ []
global@https://discovery-v4.syncthing.net/v2/: Post "https://discovery-v4.syncthing.net/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
I use dynamic dns from Afraid, so I configured my laptop to connect the server as server:22000 (not dynamic) and now it connects. It is a work around, but I don’t know what limit it.