Catfriend1 / syncthing-android

Syncthing-Fork - A Syncthing Wrapper for Android.
Mozilla Public License 2.0
1.79k stars 53 forks source link

Local discovery between two phones with Hotspot of one not working, global discovery very slow #905

Closed martin-braun closed 2 years ago

martin-braun commented 2 years ago

Description of the issue

I have a setup of 3 devices that have Syncthing installed:

I'm using your fork on the mobile devices. The MacBook and the Galaxy S10 is connected to the Hotspot of the Pixel 3a. The Syncthing-Fork on Pixel 3a and Galaxy S10 is currently in force mode, so no run conditions play a role here. I setup a folder to be synced on all devices.

In the device tab, they will only connect with the MacBook. If I disable Syncthing on the MacBook, it will not solve the issue.

All devices have NAT Traversal, Global Discovery and Relaying off, as I want to transmit only via local network.

If I enable global discovery on the mobile devices, they will connect with each other after a very long discovery time of almost 5 minutes, eventually.

Reproduction Steps

Version Information

Pixel 3a

Galaxy S10

Android Log (Pixel 3a)

Syncthing-Fork running and force enabled on Galaxy S10 right before starting Syncthing-Fork and enabling force on Pixel 3a to sync two folders: https://gist.githubusercontent.com/martin-braun/419be2140f1773d42fd9f971ed98722f/raw/d33b7cb2b3a22ce56e1736280c218c1f9d41fb12/logcat.log

Catfriend1 commented 2 years ago

Hi,

this is duplicate of issue #801 . Local discovery is limited by Android. You need to configure static IP addresses.

martin-braun commented 2 years ago

@Catfriend1 Thanks for looking into this. Seems familiar indeed. Could you please open the referenced issue at least, even when you cannot work on this?

What I also don't understand is that our phones were connected, but now they never are again. So we can only sync when my MacBook is on as well. Not optimal.