-
Notifications
You must be signed in to change notification settings - Fork 428
The client is not contacting the global discovery server when using UMTS/3G/LTE #412
Comments
Android client uses the same syncthing binary, so it's more likely the environment rather than the client. Also, what does web ui show in terms of announcement server availability when connected via the cell tower? |
Here it is ===============8X============================= |
Right, the first one is probably extra spaces in front of the address, the second one is basically a Go bug (golang/go#10714) you have to use IPs until Go 1.5 is released. |
About the unsupported schema,, seems it was a " " space into the string. Now I fixed it using the web GUI on the mobile phone, where it was evident. But this IP address can work only when in WIFI. The other issue, cannot stat "/etc/resolv.conf" seems an issue. |
As I've said, golang/go#10714 is the issue you are after, nothing todo with syncthing-android or syncthing. |
I see. Actually you need resolv.conf to get a proper DNS ip address. Could it be a (non-mandatory) syncthing configuration item in the future? I cannot use the IP, i'm using a dynamic dns for that reason.... also to avoid problems with VPN and tunnels. |
Configuration item configuring what? It's a golang bug which you will have to wait until August to be fixed, once Go 1.5 comes out. |
The reason(s) I ask is
This is why I am not confident (like you seem) the 1.5 release will fix this issue for Android. Can you show an explicit statement from google this specific issue will be solved? So having a field where to put the DNS could be a quicker solution. Just my two cents, of course. |
So the patch in question forces android devices to use cgo for dns lookups. I don't exactly know how binaries get linked for GOOS=android, but I guess it links against this bionic thing. I doubt it very much that they rewrote half of the distribution to use something else than getaddrinfo, and most likely just patched that out to do what they want, as it's easier to maintain the way how one function behaves versus maintaining N tools that might make the call. Now a quick googling around (not exactly trusting the source though) shows me this file: The /etc/resolv.conf error is not coming from libc, it's coming from netgo, the dns resolver implemented in go which assumes that the file is there. But to be honest, if the standard library is broken for such basic things as DNS resolution for the company which maintains the platform that it's broken on... well, I guess we just have to be as ignorant as they are. I don't think we should include a separate full blown dns library just to get around people wanting to use ddns on android. |
Ok, now I see. Thanks for the kind answer, I'll wait. |
We can close this I think. |
Hello,
I see a problem with the Global Discovery server: seems the mobile client is not contacting it using the mobile network.
It is not a network issue: if I share the mobile connection using tethering, or using the USB connection , the client on the PC can connect to the global discovery server. So it is not the ISP or the network preventing it. This worked both for Windows and Linux client connected using the same phone, just using tethering.
I also installed a discovery server (the one I found on related github) on my own server, and I took some pcap. It works perfectly using the windows client and the linux client, both from the ethernet network and the UMTS/3G/LTE network. I can see packets incoming in the pcap. It also works with the mobile client using wifi.
The client fails only when the mobile network is used: and I see no udp packets incoming on port 22026.
Seems the android client is not sending any udp packet on the mobile ppp connection.As I said, the ISP is not a problem, neither the network: just using tethering any client can work using the same network.
Logs are keeping empty, it just says 0/2 on "Announce Server". And no UDP packets are received.
I forgot: the version is: v.0.11.9, android version is 0.6.4
The text was updated successfully, but these errors were encountered: