I have a setup with 3 devices: one desktop and one server that are both on the same network, and a laptop that is usually in a different network.
I have a 3-way sync setup between the 3 devices. The server is supposed to be always on, which allows to keep the desktop and laptop in sync, even if they are not on at the same time.
I originally setup everything on the same network at home, and then brought the laptop to a different network. I dont have port forwarding. Everything was working well, until the power in my home went out and the server turned off.
After turning it back on, my desktop and server could see each other in syncthing. However, the laptop does not see the server. Both devices show up as “disconnected” even thought the server is on.
Seeing as how your home PC and your server communicate with each other as expected, we must suggest that Syncthing on the server runs correctly. Seeing as your laptop was (presumably) not affected by the blackout, I assume Syncthing is (still) running normally on the laptop, too. Now it’s just the question of communication between your server on your home network and your laptop on the other network.
Most homesteads nowadays come with a dynamic IP address, and it’s not uncommon for this IP address to change when router reconnects to the ISP after the blackout. It might take relay servers and your laptop some time to get to know the new IP address of your home network (where your server can be reached), but it shouldn’t take that much time (if, of course, you didn’t switch off relaying and didn’t manually set up the now-invalid IP addresses in the settings).
That is, assuming your home network is still connected to the Internet after the blackout.
Here is a screen shot from another device, with Syncthing turned off on laptop (as explained in previous message, now that it is on same network, it works)
I am essentially interested what addresses each side sees when they are not connected and not on the same network. So far I’ve only seen one side of that.
AudriusButkevicius, OK I understand now. Ill try to get you this picture. It is a bit difficult because it require me being home, but laptop being on at another location.
Weirdly enough, I am now back in the other network, and the laptop again cannot connect to server.
Sure, but the fact it works outside of that network implies the issue is local to that network, which will either be your machine configuration inside of that network or the network itself.
If you use a proxy in that network, then you’d have to tell syncthing to use that proxy as well.
Knowing whether you use or not use a proxy on your machine on that network is not really a syncthing question, nor do I really know how ubuntu does proxy auto-detection.
Also, I can’t really tell you if it has a firewall.
You can set STTRACE=connections environment variable which will tell you more what it’s doing and where it’s connecting, but that won’t explain whether you need to setup a proxy or disable some firewall.
To remind what I explained in my original messages: when all 3 devices are in the home network, they all see each other. Everything was working fine before the power blackout. This problem I am now having only appeared after the server unexpectedly shutdown.
That one screenshot was all that’s needed, the laptop would not even have had to be outside your network:
In the “This Device” section the “Discovery” status is 2/5. Given the global ip of the laptop isn’t listed, it’s most likely the global ones that aren’t running. Press on the 2/5 to get more info about that.