Can't connect directly - only via relay

Hello,

I have problem with setting up Syncthing (Linux Mint 18.2). It works only by via relay, I can’t seem to make it work directly. When I Disable Relaying Syncthing won’t connect to other nodes. I have enabled UPnP on router and it seems to work. I am attaching Port Forwarding log from router.

Destination     Proto. Port range  Redirect to     Local port
ALL             TCP    25859       x.x.x.x   22000      

I have also tried manually setting Port Forwarding, but result is always the same. I have Syncthing also allowed in local firewall. When starting Syncthing I get following output (containing line Joined relay relay://…)

[monitor] 09:37:48 INFO: Starting syncthing
[EUEWQ] 09:37:48 INFO: syncthing v0.14.38 "Dysprosium Dragonfly" (go1.9 linux-amd64) deb@build.syncthing.net 2017-09-07 09:40:46 UTC [noupgrade]
[EUEWQ] 09:37:48 INFO: My ID: EUEWQQY-STX4IL3-GG4E7U3-ZFFBXER-K5GPF4X-2WAXAPR-5XEZZFE-JUZLGAG
[EUEWQ] 09:37:49 INFO: Single thread SHA256 performance is 446 MB/s using minio/sha256-simd (370 MB/s using crypto/sha256).
[EUEWQ] 09:37:49 INFO: Hashing performance with weak hash is 367.51 MB/s
[EUEWQ] 09:37:50 INFO: Hashing performance without weak hash is 442.04 MB/s
[EUEWQ] 09:37:50 INFO: Weak hash enabled, as it has an acceptable performance impact.
[EUEWQ] 09:37:50 INFO: Ready to synchronize "Default Folder" (default) (readwrite)
[EUEWQ] 09:37:50 INFO: Send rate is unlimited, receive rate is unlimited
[EUEWQ] 09:37:50 INFO: Rate limits do not apply to LAN connections
[EUEWQ] 09:37:50 INFO: Using discovery server https://discovery-v4-2.syncthing.net/v2/?id=DVU36WY-H3LVZHW-E6LLFRE-YAFN5EL-HILWRYP-OC2M47J-Z4PE62Y-ADIBDQC
[EUEWQ] 09:37:50 INFO: Using discovery server https://discovery-v4-3.syncthing.net/v2/?id=VK6HNJ3-VVMM66S-HRVWSCR-IXEHL2H-U4AQ4MW-UCPQBWX-J2L2UBK-NVZRDQZ
[EUEWQ] 09:37:50 INFO: Using discovery server https://discovery-v4-4.syncthing.net/v2/?id=LYXKCHX-VI3NYZR-ALCJBHF-WMZYSPK-QG6QJA3-MPFYMSO-U56GTUK-NA2MIAW
[EUEWQ] 09:37:50 INFO: Using discovery server https://discovery-v6-2.syncthing.net/v2/?id=DVU36WY-H3LVZHW-E6LLFRE-YAFN5EL-HILWRYP-OC2M47J-Z4PE62Y-ADIBDQC
[EUEWQ] 09:37:50 INFO: Using discovery server https://discovery-v6-3.syncthing.net/v2/?id=VK6HNJ3-VVMM66S-HRVWSCR-IXEHL2H-U4AQ4MW-UCPQBWX-J2L2UBK-NVZRDQZ
[EUEWQ] 09:37:50 INFO: Using discovery server https://discovery-v6-4.syncthing.net/v2/?id=LYXKCHX-VI3NYZR-ALCJBHF-WMZYSPK-QG6QJA3-MPFYMSO-U56GTUK-NA2MIAW
[EUEWQ] 09:37:50 INFO: TCP listener ([::]:22000) starting
[EUEWQ] 09:37:50 INFO: Completed initial scan of readwrite folder "Default Folder" (default)
[EUEWQ] 09:37:50 INFO: GUI and API listening on 127.0.0.1:8384
[EUEWQ] 09:37:50 INFO: Access the GUI via the following URL: http://127.0.0.1:8384/
[EUEWQ] 09:37:50 INFO: Device EUEWQQY-STX4IL3-GG4E7U3-ZFFBXER-K5GPF4X-2WAXAPR-5XEZZFE-JUZLGAG is "TRANDZIK16" at [dynamic]
[EUEWQ] 09:37:50 INFO: Device MCPJDPN-KUDOY3Z-63U2EYZ-DDKKDI7-XABYBMU-SAUZ4DH-AYVTNXR-EE5ARA4 is "VFX-OLD" at [dynamic]
[EUEWQ] 09:37:50 INFO: Starting usage reporting
[EUEWQ] 09:38:00 INFO: New NAT port mapping: external TCP address x.x.x.x:25859 to local address 0.0.0.0:22000.
[EUEWQ] 09:38:00 INFO: Detected 1 NAT device
[EUEWQ] 09:38:01 INFO: Joined relay relay://163.172.179.61:8443

I am also attaching output for STTRACE=upnp syncthing

[monitor] 2017/10/04 09:49:13.644492 monitor.go:95: INFO: Starting syncthing
[EUEWQ] 2017/10/04 09:49:13.663840 main.go:638: INFO: syncthing v0.14.38 "Dysprosium Dragonfly" (go1.9 linux-amd64) deb@build.syncthing.net 2017-09-07 09:40:46 UTC [noupgrade]
[EUEWQ] 2017/10/04 09:49:13.663885 main.go:639: INFO: My ID: EUEWQQY-STX4IL3-GG4E7U3-ZFFBXER-K5GPF4X-2WAXAPR-5XEZZFE-JUZLGAG
[EUEWQ] 2017/10/04 09:49:14.567854 sha256.go:92: INFO: Single thread SHA256 performance is 453 MB/s using minio/sha256-simd (377 MB/s using crypto/sha256).
[EUEWQ] 2017/10/04 09:49:15.032330 main.go:698: INFO: Hashing performance with weak hash is 373.15 MB/s
[EUEWQ] 2017/10/04 09:49:15.498875 main.go:700: INFO: Hashing performance without weak hash is 444.59 MB/s
[EUEWQ] 2017/10/04 09:49:15.498891 main.go:706: INFO: Weak hash enabled, as it has an acceptable performance impact.
[EUEWQ] 2017/10/04 09:49:15.509462 model.go:184: INFO: Ready to synchronize "Default Folder" (default) (readwrite)
[EUEWQ] 2017/10/04 09:49:15.509499 limiter.go:84: INFO: Send rate is unlimited, receive rate is unlimited
[EUEWQ] 2017/10/04 09:49:15.509508 limiter.go:89: INFO: Rate limits do not apply to LAN connections
[EUEWQ] 2017/10/04 09:49:15.509761 main.go:815: INFO: Using discovery server https://discovery-v4-2.syncthing.net/v2/?id=DVU36WY-H3LVZHW-E6LLFRE-YAFN5EL-HILWRYP-OC2M47J-Z4PE62Y-ADIBDQC
[EUEWQ] 2017/10/04 09:49:15.509911 tcp_listen.go:69: INFO: TCP listener ([::]:22000) starting
[EUEWQ] 2017/10/04 09:49:15.509943 main.go:815: INFO: Using discovery server https://discovery-v4-3.syncthing.net/v2/?id=VK6HNJ3-VVMM66S-HRVWSCR-IXEHL2H-U4AQ4MW-UCPQBWX-J2L2UBK-NVZRDQZ
[EUEWQ] 2017/10/04 09:49:15.511044 folder.go:85: INFO: Completed initial scan of readwrite folder "Default Folder" (default)
[EUEWQ] 2017/10/04 09:49:16.189038 main.go:815: INFO: Using discovery server https://discovery-v4-4.syncthing.net/v2/?id=LYXKCHX-VI3NYZR-ALCJBHF-WMZYSPK-QG6QJA3-MPFYMSO-U56GTUK-NA2MIAW
[EUEWQ] 2017/10/04 09:49:16.189191 main.go:815: INFO: Using discovery server https://discovery-v6-2.syncthing.net/v2/?id=DVU36WY-H3LVZHW-E6LLFRE-YAFN5EL-HILWRYP-OC2M47J-Z4PE62Y-ADIBDQC
[EUEWQ] 2017/10/04 09:49:16.189292 main.go:815: INFO: Using discovery server https://discovery-v6-3.syncthing.net/v2/?id=VK6HNJ3-VVMM66S-HRVWSCR-IXEHL2H-U4AQ4MW-UCPQBWX-J2L2UBK-NVZRDQZ
[EUEWQ] 2017/10/04 09:49:16.189375 main.go:815: INFO: Using discovery server https://discovery-v6-4.syncthing.net/v2/?id=LYXKCHX-VI3NYZR-ALCJBHF-WMZYSPK-QG6QJA3-MPFYMSO-U56GTUK-NA2MIAW
[EUEWQ] 2017/10/04 09:49:16.205611 gui.go:355: INFO: GUI and API listening on 127.0.0.1:8384
[EUEWQ] 2017/10/04 09:49:16.205627 gui.go:356: INFO: Access the GUI via the following URL: http://127.0.0.1:8384/
[EUEWQ] 2017/10/04 09:49:16.205686 main.go:860: INFO: Device EUEWQQY-STX4IL3-GG4E7U3-ZFFBXER-K5GPF4X-2WAXAPR-5XEZZFE-JUZLGAG is "TRANDZIK16" at [dynamic]
[EUEWQ] 2017/10/04 09:49:16.205705 main.go:860: INFO: Device MCPJDPN-KUDOY3Z-63U2EYZ-DDKKDI7-XABYBMU-SAUZ4DH-AYVTNXR-EE5ARA4 is "VFX-OLD" at [dynamic]
[EUEWQ] 2017/10/04 09:49:16.205798 usage_report.go:268: INFO: Starting usage reporting
[EUEWQ] 2017/10/04 09:49:16.510195 upnp.go:151: DEBUG: Starting discovery of device type urn:schemas-upnp-org:device:InternetGatewayDevice:1 on enp0s31f6
[EUEWQ] 2017/10/04 09:49:16.510297 upnp.go:166: DEBUG: Sending search request for device type urn:schemas-upnp-org:device:InternetGatewayDevice:1 on enp0s31f6
[EUEWQ] 2017/10/04 09:49:16.510326 upnp.go:176: DEBUG: Listening for UPnP response for device type urn:schemas-upnp-org:device:InternetGatewayDevice:1 on enp0s31f6
[EUEWQ] 2017/10/04 09:49:16.510349 upnp.go:151: DEBUG: Starting discovery of device type urn:schemas-upnp-org:device:InternetGatewayDevice:2 on enp0s31f6
[EUEWQ] 2017/10/04 09:49:16.510395 upnp.go:166: DEBUG: Sending search request for device type urn:schemas-upnp-org:device:InternetGatewayDevice:2 on enp0s31f6
[EUEWQ] 2017/10/04 09:49:16.510409 upnp.go:176: DEBUG: Listening for UPnP response for device type urn:schemas-upnp-org:device:InternetGatewayDevice:2 on enp0s31f6
[EUEWQ] 2017/10/04 09:49:24.257355 static.go:93: INFO: Joined relay relay://144.76.67.162:10202
[EUEWQ] 2017/10/04 09:49:26.510417 upnp.go:195: DEBUG: Discovery for device type urn:schemas-upnp-org:device:InternetGatewayDevice:1 on enp0s31f6 finished.
[EUEWQ] 2017/10/04 09:49:26.510565 upnp.go:195: DEBUG: Discovery for device type urn:schemas-upnp-org:device:InternetGatewayDevice:2 on enp0s31f6 finished.
[EUEWQ] 2017/10/04 09:49:26.515212 structs.go:32: INFO: New NAT port mapping: external TCP address x.x.x.x:25859 to local address 0.0.0.0:22000.
[EUEWQ] 2017/10/04 09:49:26.515335 service.go:61: INFO: Detected 1 NAT device

Could you please help me with this? Thank you very much for reading though this, have a nice day.

Best regards

Solved. Problem seems to be with node I would like to connect to. Thanks

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.