Difficult to connect syncthing server (pc) to android


(Muhammed Noufal K) #1

I’m trying to connect server to android syncthing with default listenAddress, So that time it may or may not connecting.

So i check this issues in this forums and i found a recent solution regarding my issues

ref :

Remote devices showing disconnected

Mr. Simon replayed this solution and i just follow this and i tried to update listenAddress through postConfig (POST /rest/system/config) restapi calls and after i called postRestart (POST /rest/system/restart) restapi and this updated in my android app.

**listenAddress :

“tcp://:22000, dynamic+https://relays.syncthing.net/endpoint”

**

But, in my GUi screen it

listeners : 0/0

Screenshot from 2018-02-10 21-42-14

Server side i added my device id and started to connect

but my app not getting any notification regarding ‘device want to connect’.

So, Please help me to solve this difficulty


(Muhammed Noufal K) #2

Log file from android


[W6D2B] INFO: Loading HTTPS certificate: open /data/user/0/com.nutomic.syncthingandroid.debug/files/https-cert.pem: no such file or directory [W6D2B] INFO: Creating new HTTPS certificate [W6D2B] INFO: No automatic upgrades; STNOUPGRADE environment variable defined. [W6D2B] INFO: Detected 0 NAT services [W6D2B] INFO: GUI and API listening on 127.0.0.1:8384 [W6D2B] INFO: Access the GUI via the following URL: http://127.0.0.1:8384/ [W6D2B] INFO: Parsing listener address tcp://:22000, dynamic+https://relays.syncthing.net/endpoint: parse tcp://:22000, dynamic+https://relays.syncthing.net/endpoint: invalid character " " in host name [W6D2B] INFO: Restarting [W6D2B] INFO: Exiting WARNING: linker: /data/app/com.nutomic.syncthingandroid.debug-1/lib/arm64/libsyncthing.so: unsupported flags DT_FLAGS_1=0x8000000 [W6D2B] INFO: syncthing v0.14.44-rc.2+35-gb97d5bc “Dysprosium Dragonfly” (go1.9.2 android-arm64) noufu-mon@Noufal-Aspire-4752 2018-02-09 10:40:57 UTC [noupgrade] [W6D2B] INFO: My ID: W6D2BUI-OFMSATF-4JHFBTJ-VCIAFXS-CBU2ODT-FUZHLQO-OJM2IYI-GAV5CAG [W6D2B] INFO: Disabling weak hash [W6D2B] INFO: Starting deadlock detector with 20m0s timeout [W6D2B] INFO: Ready to synchronize “Camera” (asus_x00gd-photos) (readonly) [W6D2B] INFO: Send rate is unlimited, receive rate is unlimited [W6D2B] INFO: Rate limits do not apply to LAN connections [W6D2B] INFO: Parsing listener address tcp://:22000, dynamic+https://relays.syncthing.net/endpoint: parse tcp://:22000, dynamic+https://relays.syncthing.net/endpoint: invalid character " " in host name [W6D2B] INFO: Using discovery server https://discovery-v4.syncthing.net/v2/?nolookup&id=LYXKCHX-VI3NYZR-ALCJBHF-WMZYSPK-QG6QJA3-MPFYMSO-U56GTUK-NA2MIAW [W6D2B] INFO: Using discovery server https://discovery-v6.syncthing.net/v2/?nolookup&id=LYXKCHX-VI3NYZR-ALCJBHF-WMZYSPK-QG6QJA3-MPFYMSO-U56GTUK-NA2MIAW [W6D2B] INFO: Using discovery server https://discovery.syncthing.net/v2/?noannounce&id=LYXKCHX-VI3NYZR-ALCJBHF-WMZYSPK-QG6QJA3-MPFYMSO-U56GTUK-NA2MIAW [W6D2B] INFO: Device W6D2BUI-OFMSATF-4JHFBTJ-VCIAFXS-CBU2ODT-FUZHLQO-OJM2IYI-GAV5CAG is “ASUS_X00GD” at [dynamic] [W6D2B] INFO: Anonymous usage reporting is always enabled for candidate releases. [W6D2B] INFO: Parsing listener address tcp://:22000, dynamic+https://relays.syncthing.net/endpoint: parse tcp://:22000, dynamic+https://relays.syncthing.net/endpoint: invalid character " " in host name [W6D2B] INFO: GUI and API listening on 127.0.0.1:8384 [W6D2B] INFO: Access the GUI via the following URL: http://127.0.0.1:8384/ [W6D2B] INFO: No automatic upgrades; STNOUPGRADE environment variable defined. [W6D2B] INFO: Completed initial scan of readonly folder “Camera” (asus_x00gd-photos)



(Jakob Borg) #3

The android GUI is doing something broken with the comma separated addresses. Just change it to default and you should be fine.