✍️ Technical Anshu🌍 Works behind normal home routers⏱️ Explainer, no configuration needed
🎥 主要 Syncthing 视频显示设备同步 — 本指南解释了当它们离开同一网络时会发生什么
在家里,Syncthing 很容易想象:笔记本电脑和集线器使用同一个 Wi-Fi,以全 LAN 速度直接通话。然后,您将笔记本电脑带到另一个城市的客户办公室,打开它,文件仍然会同步。 未转发任何端口。没有购买静态IP。没有连接 VPN。 感觉就像魔术一样,直到您了解下面的三种机制,并且每种机制都有值得理解的诚实权衡,因为其中一种涉及其他人的服务器传递您的流量。
How a travelling laptop reaches the home hub — three honest routes
ROUTE 1 Direct connection ......... best
Devices find each other, punch through NAT,
talk directly. Full speed. Nobody in between.
ROUTE 2 Local discovery (same LAN) . at home
Devices announce themselves on the network.
Fastest path, nothing leaves the building.
ROUTE 3 Relay ...................... fallback
A volunteer relay passes the traffic when a
direct path is impossible. Still TLS encrypted
end to end — the relay reads NOTHING, it only
forwards scrambled data. Slower, but it works.
说明性面板 — Syncthing 自动按顺序尝试这些
1
发现——设备如何学习在哪里喊叫
两个配对设备只有知道彼此的当前地址且家庭地址发生更改后才能同步。 Syncthing 通过全局发现服务器解决了这个问题:每个设备定期宣布“设备 ID PBIKQTO… 可以通过该地址访问”。当您的笔记本电脑需要集线器时,它会询问发现“PBIKQTO……现在在哪里?”