I’m having issues connecting behind a university firewall. My laptop is behind the firewall trying to connect to a Raspberry pi on my home network. The connection has no problems when the laptop and Pi are both on the home network.
Some possible culprits from the log after enabling dialar and connections:
Jan 25 10:30:20 mars syncthing[10670]: [K32AQ] 2018/01/25 10:30:20.371074 structs.go:195: DEBUG: dialing <snip> kcp://<snip> prio 50
Jan 25 10:30:20 mars syncthing[10670]: [K32AQ] 2018/01/25 10:30:20.371161 kcp_dial.go:42: DEBUG: dial kcp://<snip> using existing conn on [::]:22020
Jan 25 10:30:20 mars syncthing[10670]: [K32AQ] 2018/01/25 10:30:20.371265 structs.go:195: DEBUG: dialing <snip> kcp://<snip>:22020 prio 50
Jan 25 10:30:20 mars syncthing[10670]: [K32AQ] 2018/01/25 10:30:20.371370 kcp_dial.go:42: DEBUG: dial kcp://<snip>:22020 using existing conn on [::]:22020
Jan 25 10:30:30 mars syncthing[10670]: [K32AQ] 2018/01/25 10:30:30.371603 structs.go:198: DEBUG: dialing <snip> kcp://<snip> error: i/o timeout
[...]
Jan 25 10:30:30 mars syncthing[10670]: [K32AQ] 2018/01/25 10:30:30.372050 structs.go:195: DEBUG: dialing <snip> relay://<snip>&pingInterval=1m0s&networkTimeout=2m0s&sessionLimitBps=0&globalLimitBps=0&statusAddr=:22070&providedBy=relay prio 200
Jan 25 10:30:30 mars syncthing[10670]: [K32AQ] 2018/01/25 10:30:30.586046 relay_dial.go:48: DEBUG: Dial (BEP/relay): setting traffic class: setsockopt: protocol not available
[...]
Jan 25 10:34:02 mars syncthing[10670]: [K32AQ] 2018/01/25 10:34:02.459261 service.go:351: DEBUG: Not dialing relay://<snip>&pingInterval=1m0s&networkTimeout=2m0s&sessionLimitBps=0&globalLimitBps=0&statusAddr=:22070&providedBy=relay as sleep is 24s, next dial is at 2018-01-25 10:40:20.370413924 -0600 CST m=+2000.929993709 and current time is 2018-01-25 10:34:02.458554572 -0600 CST m=+1623.018134370