Android Connection

Hello Syncthing community,

i started using Syncthing a half a year ago and everything worked smoothly! I was able to sync between my three devices:

  • MacBook 13 El-Capitan (v0.13.0, Mac OS X (64 bit))
  • Dell Home Windows 7 (do not know the version right now…)
  • HTC m7 Cyanogenmod 12.1/ Android 5.1.1 (v0.13.0 and 0.7.18)
  • Dell at Work Windows 10 (v0.13.0, Windows (32Bit))

It worked also in the network of my university. At the weekend i installed OpenWrt on my Home-Router and i suppose this was the moment, when some security barriers of OpenWrt denied the syncthing connections to and from my android device.

Still now the syncing with syncthing between my computers (mac und dell) works great. It works in my home lan between mac and dell and also in the lan of my university. There i have a Dell Desktop PC (Win 10) and my MacBook in the lan. They all work perfectly.

The only problem is that i am not able to get a connection from and to my android device wether i am in mobile or wlan connection. I tried to add the android device from mac and dell but it does not appear in the device list. Also when i add the mac in syncthing on android, syncthing on android shows always a disconnected Mac.

I think of OpenWrt is in the vanilla version without upnp so this sync option will not work. But whats with “global search” and “local search”? Shouldnt my laptops find my device in my home lan?

Syncthing on Android: Indexservers: 5/8 Devicename: localhost Adress for syncro: tcp://0.0.0.0:22000 Global Search: activated Local Search: activated UPnP: activated

The adresses in the remote device list of the laptops shows eacht other with the ips in the local lan. So actually Syncthing works for me right now just in lan with both laptops at home in wlan and also with both pcs at work in the really wired lan. But Android does not connect to the devices if in wlan or in mobile data. I hava AFWall running on my android device but also deactivated the firewall…

I have seen a lot Thread with android and syncthing connection problems but could not find a solution for my problem. Would do you think could be my solution?

At least, this is what my android syncthings log contains: --------- beginning of main I/SyncthingNativeCode(22615): [NZ4MI] 12:47:04 INFO: Exiting I/SyncthingNativeCode(22615): [NZ4MI] 12:47:06 INFO: syncthing v0.13.0 "Copper Cockroach" (go1.6 linux-arm) unknown-user@android.syncthing.net 2016-05-17 12:02:44 UTC I/SyncthingNativeCode(22615): [NZ4MI] 12:47:06 INFO: My ID: N******-K******-B******-N******-K******-M******-Y******-R****** I/SyncthingNativeCode(22615): [NZ4MI] 12:47:06 INFO: Single thread hash performance is ~27 MB/s I/SyncthingNativeCode(22615): [NZ4MI] 12:47:06 INFO: Ready to synchronize one-Bilder (readonly) I/SyncthingNativeCode(22615): [NZ4MI] 12:47:06 INFO: Using discovery server https://discovery-v4-1.syncthing.net/v2/?id=SR7AARM-TCBUZ5O-VFAXY4D-CECGSDE-3Q6IZ4G-XG7AH75-OBIXJQV-QJ6NLQA I/SyncthingNativeCode(22615): [NZ4MI] 12:47:06 INFO: Using discovery server https://discovery-v4-2.syncthing.net/v2/?id=DVU36WY-H3LVZHW-E6LLFRE-YAFN5EL-HILWRYP-OC2M47J-Z4PE62Y-ADIBDQC I/SyncthingNativeCode(22615): [NZ4MI] 12:47:07 INFO: Using discovery server https://discovery-v4-3.syncthing.net/v2/?id=VK6HNJ3-VVMM66S-HRVWSCR-IXEHL2H-U4AQ4MW-UCPQBWX-J2L2UBK-NVZRDQZ I/SyncthingNativeCode(22615): [NZ4MI] 12:47:07 INFO: Using discovery server https://discovery-v6-1.syncthing.net/v2/?id=SR7AARM-TCBUZ5O-VFAXY4D-CECGSDE-3Q6IZ4G-XG7AH75-OBIXJQV-QJ6NLQA I/SyncthingNativeCode(22615): [NZ4MI] 12:47:07 INFO: Using discovery server https://discovery-v6-2.syncthing.net/v2/?id=DVU36WY-H3LVZHW-E6LLFRE-YAFN5EL-HILWRYP-OC2M47J-Z4PE62Y-ADIBDQC I/SyncthingNativeCode(22615): [NZ4MI] 12:47:07 INFO: Using discovery server https://discovery-v6-3.syncthing.net/v2/?id=VK6HNJ3-VVMM66S-HRVWSCR-IXEHL2H-U4AQ4MW-UCPQBWX-J2L2UBK-NVZRDQZ I/SyncthingNativeCode(22615): [NZ4MI] 12:47:07 INFO: TCP listener ([::]:22000) starting I/SyncthingNativeCode(22615): Using DNS servers: [134.176.2.5 134.176.2.7] I/SyncthingNativeCode(22615): [NZ4MI] 12:47:07 INFO: Device N******-K******-B******-N******-K******-M******-Y******-R****** is "localhost" at [dynamic] I/SyncthingNativeCode(22615): [NZ4MI] 12:47:07 INFO: No automatic upgrades; STNOUPGRADE environment variable defined. I/SyncthingNativeCode(22615): [NZ4MI] 12:47:07 INFO: GUI and API listening on 127.0.0.1:8384 I/SyncthingNativeCode(22615): [NZ4MI] 12:47:07 INFO: Access the GUI via the following URL: https://127.0.0.1:8384/ I/SyncthingNativeCode(22615): [NZ4MI] 12:47:16 INFO: Joined relay relay://31.31.75.186:22067 I/SyncthingNativeCode(22615): [NZ4MI] 12:47:18 INFO: Detected 0 NAT devices I/SyncthingNativeCode(22615): [NZ4MI] 12:47:24 INFO: Exiting I/SyncthingNativeCode(22615): [NZ4MI] 12:47:26 INFO: syncthing v0.13.0 "Copper Cockroach" (go1.6 linux-arm) unknown-user@android.syncthing.net 2016-05-17 12:02:44 UTC I/SyncthingNativeCode(22615): [NZ4MI] 12:47:26 INFO: My ID: N******-K******-B******-N******-K******-M******-Y******-R****** I/SyncthingNativeCode(22615): [NZ4MI] 12:47:26 INFO: Single thread hash performance is ~27 MB/s I/SyncthingNativeCode(22615): [NZ4MI] 12:47:26 INFO: Ready to synchronize one-Bilder (readonly) I/SyncthingNativeCode(22615): [NZ4MI] 12:47:26 INFO: Using discovery server https://discovery-v4-1.syncthing.net/v2/?id=SR7AARM-TCBUZ5O-VFAXY4D-CECGSDE-3Q6IZ4G-XG7AH75-OBIXJQV-QJ6NLQA I/SyncthingNativeCode(22615): [NZ4MI] 12:47:26 INFO: Using discovery server https://discovery-v4-2.syncthing.net/v2/?id=DVU36WY-H3LVZHW-E6LLFRE-YAFN5EL-HILWRYP-OC2M47J-Z4PE62Y-ADIBDQC I/SyncthingNativeCode(22615): [NZ4MI] 12:47:26 INFO: TCP listener ([::]:22000) starting I/SyncthingNativeCode(22615): [NZ4MI] 12:47:26 INFO: Using discovery server https://discovery-v4-3.syncthing.net/v2/?id=VK6HNJ3-VVMM66S-HRVWSCR-IXEHL2H-U4AQ4MW-UCPQBWX-J2L2UBK-NVZRDQZ I/SyncthingNativeCode(22615): [NZ4MI] 12:47:26 INFO: Using discovery server https://discovery-v6-1.syncthing.net/v2/?id=SR7AARM-TCBUZ5O-VFAXY4D-CECGSDE-3Q6IZ4G-XG7AH75-OBIXJQV-QJ6NLQA I/SyncthingNativeCode(22615): [NZ4MI] 12:47:26 INFO: Using discovery server https://discovery-v6-2.syncthing.net/v2/?id=DVU36WY-H3LVZHW-E6LLFRE-YAFN5EL-HILWRYP-OC2M47J-Z4PE62Y-ADIBDQC I/SyncthingNativeCode(22615): [NZ4MI] 12:47:26 INFO: Using discovery server https://discovery-v6-3.syncthing.net/v2/?id=VK6HNJ3-VVMM66S-HRVWSCR-IXEHL2H-U4AQ4MW-UCPQBWX-J2L2UBK-NVZRDQZ I/SyncthingNativeCode(22615): Using DNS servers: [134.176.2.5 134.176.2.7] I/SyncthingNativeCode(22615): [NZ4MI] 12:47:26 INFO: Device H******-T******-B******-V******-K******-W******-K******-U****** is "Mac" at [dynamic] I/SyncthingNativeCode(22615): [NZ4MI] 12:47:26 INFO: Device N******-K******-B******-N******-K******-M******-Y******-R****** is "localhost" at [dynamic] I/SyncthingNativeCode(22615): [NZ4MI] 12:47:26 INFO: No automatic upgrades; STNOUPGRADE environment variable defined. I/SyncthingNativeCode(22615): [NZ4MI] 12:47:26 INFO: GUI and API listening on 127.0.0.1:8384 I/SyncthingNativeCode(22615): [NZ4MI] 12:47:26 INFO: Access the GUI via the following URL: https://127.0.0.1:8384/ I/SyncthingNativeCode(22615): [NZ4MI] 12:47:35 INFO: Joined relay relay://134.184.43.156:22067 I/SyncthingNativeCode(22615): [NZ4MI] 12:47:37 INFO: Detected 0 NAT devices

Did i forgot any information you will need to analyis?

Thanks fpr help and best regards filewalker

Check firewall section of the documentation and enable upnp on the router.

Thanks for the fast answer. I will check that.

But actually i tried to activate the upnp sync option in syncthing on android and syncthing then restarts but the box is again unchecked. So i think there are so problems with upnp in the newest android version…

You need to enable upnp on your router, not on syncthing. You can still enable it via the web ui.

Though raise an issue on the android repo.

ok i will do that but where do i find the option to enable upnp in the web ui?

It’s now called nat traversal is it does more than just upnp.

Okay thanks for the fast help, i made it work like a charm again!

What i did:

  1. Uninstall syncthing on mac and htc
  2. Installed upnp on openwrt
  3. Installed syncthing on mac and htc
  4. they connected directly at least now in home lan

It tested the connection today in the network of my university and it does work too. I do not know why exactly but my smartphone is also connected from LTE to the PC in the local network of the university!