Skip to content

PasteFerry (隔空贴): clipboard and file sync across macOS, Windows and Linux. Direct-first, end-to-end encrypted. Optional official access: no server to host. Independent self-hosting remains available.

docs(site): add the same network guide and make the server optional

baiyuzebe23f025f543
diff --git a/docs/assets/screenshots/en/pairing-dark.png b/docs/assets/screenshots/en/pairing-dark.png
index 8ae36d1..db1c902 100644
Binary files a/docs/assets/screenshots/en/pairing-dark.png and b/docs/assets/screenshots/en/pairing-dark.png differ
diff --git a/docs/assets/screenshots/en/pairing-join-dark.png b/docs/assets/screenshots/en/pairing-join-dark.png
new file mode 100644
index 0000000..c99e133
Binary files /dev/null and b/docs/assets/screenshots/en/pairing-join-dark.png differ
diff --git a/docs/assets/screenshots/en/pairing-join-ts-dark.png b/docs/assets/screenshots/en/pairing-join-ts-dark.png
new file mode 100644
index 0000000..a8ef8e7
Binary files /dev/null and b/docs/assets/screenshots/en/pairing-join-ts-dark.png differ
diff --git a/docs/assets/screenshots/en/pairing.png b/docs/assets/screenshots/en/pairing.png
index 13543e4..ab07b8b 100644
Binary files a/docs/assets/screenshots/en/pairing.png and b/docs/assets/screenshots/en/pairing.png differ
diff --git a/docs/assets/screenshots/en/settings-cloud-dark.png b/docs/assets/screenshots/en/settings-cloud-dark.png
index 3af6859..a134efd 100644
Binary files a/docs/assets/screenshots/en/settings-cloud-dark.png and b/docs/assets/screenshots/en/settings-cloud-dark.png differ
diff --git a/docs/assets/screenshots/en/settings-lan-dark.png b/docs/assets/screenshots/en/settings-lan-dark.png
index f15b6d7..bd350ac 100644
Binary files a/docs/assets/screenshots/en/settings-lan-dark.png and b/docs/assets/screenshots/en/settings-lan-dark.png differ
diff --git a/docs/assets/screenshots/en/settings.png b/docs/assets/screenshots/en/settings.png
index 101f8dc..79ba4d5 100644
Binary files a/docs/assets/screenshots/en/settings.png and b/docs/assets/screenshots/en/settings.png differ
diff --git a/docs/assets/screenshots/ja/pairing-dark.png b/docs/assets/screenshots/ja/pairing-dark.png
index e78af18..0645202 100644
Binary files a/docs/assets/screenshots/ja/pairing-dark.png and b/docs/assets/screenshots/ja/pairing-dark.png differ
diff --git a/docs/assets/screenshots/ja/pairing-join-dark.png b/docs/assets/screenshots/ja/pairing-join-dark.png
new file mode 100644
index 0000000..d3ec8b0
Binary files /dev/null and b/docs/assets/screenshots/ja/pairing-join-dark.png differ
diff --git a/docs/assets/screenshots/ja/pairing-join-ts-dark.png b/docs/assets/screenshots/ja/pairing-join-ts-dark.png
new file mode 100644
index 0000000..789ea0e
Binary files /dev/null and b/docs/assets/screenshots/ja/pairing-join-ts-dark.png differ
diff --git a/docs/assets/screenshots/ja/pairing.png b/docs/assets/screenshots/ja/pairing.png
index a1cf027..4ad1898 100644
Binary files a/docs/assets/screenshots/ja/pairing.png and b/docs/assets/screenshots/ja/pairing.png differ
diff --git a/docs/assets/screenshots/ja/settings-cloud-dark.png b/docs/assets/screenshots/ja/settings-cloud-dark.png
index 9d584fc..3c22dbe 100644
Binary files a/docs/assets/screenshots/ja/settings-cloud-dark.png and b/docs/assets/screenshots/ja/settings-cloud-dark.png differ
diff --git a/docs/assets/screenshots/ja/settings-lan-dark.png b/docs/assets/screenshots/ja/settings-lan-dark.png
index 50b5c9e..14125f2 100644
Binary files a/docs/assets/screenshots/ja/settings-lan-dark.png and b/docs/assets/screenshots/ja/settings-lan-dark.png differ
diff --git a/docs/assets/screenshots/ja/settings.png b/docs/assets/screenshots/ja/settings.png
index 7e45ce9..b3ec532 100644
Binary files a/docs/assets/screenshots/ja/settings.png and b/docs/assets/screenshots/ja/settings.png differ
diff --git a/docs/assets/screenshots/pairing-dark.png b/docs/assets/screenshots/pairing-dark.png
index 802310d..829145f 100644
Binary files a/docs/assets/screenshots/pairing-dark.png and b/docs/assets/screenshots/pairing-dark.png differ
diff --git a/docs/assets/screenshots/pairing-join-dark.png b/docs/assets/screenshots/pairing-join-dark.png
new file mode 100644
index 0000000..ab47cb8
Binary files /dev/null and b/docs/assets/screenshots/pairing-join-dark.png differ
diff --git a/docs/assets/screenshots/pairing-join-ts-dark.png b/docs/assets/screenshots/pairing-join-ts-dark.png
new file mode 100644
index 0000000..d19eb73
Binary files /dev/null and b/docs/assets/screenshots/pairing-join-ts-dark.png differ
diff --git a/docs/assets/screenshots/pairing.png b/docs/assets/screenshots/pairing.png
index d53e763..2045956 100644
Binary files a/docs/assets/screenshots/pairing.png and b/docs/assets/screenshots/pairing.png differ
diff --git a/docs/assets/screenshots/settings-cloud-dark.png b/docs/assets/screenshots/settings-cloud-dark.png
index dc5490e..4cc9896 100644
Binary files a/docs/assets/screenshots/settings-cloud-dark.png and b/docs/assets/screenshots/settings-cloud-dark.png differ
diff --git a/docs/assets/screenshots/settings-lan-dark.png b/docs/assets/screenshots/settings-lan-dark.png
index 95b6512..0f9e0f4 100644
Binary files a/docs/assets/screenshots/settings-lan-dark.png and b/docs/assets/screenshots/settings-lan-dark.png differ
diff --git a/docs/assets/screenshots/settings.png b/docs/assets/screenshots/settings.png
index 20b1aff..d8a5b6c 100644
Binary files a/docs/assets/screenshots/settings.png and b/docs/assets/screenshots/settings.png differ
diff --git a/docs/assets/site.css b/docs/assets/site.css
index b66c396..93771b5 100644
--- a/docs/assets/site.css
+++ b/docs/assets/site.css
@@ -1478,6 +1478,19 @@ td {
font-size: clamp(2.3rem, 6.5vw, 4.6rem);
}
+/* 教程顶部的提示:这篇已经不是首选做法时,指向更合适的那篇 */
+.guide-hero .notice {
+ max-width: 40rem;
+ margin: 1.75rem auto 0;
+ padding: 0.9rem 1.2rem;
+ border-radius: 14px;
+ background: var(--surface);
+ box-shadow: inset 0 0 0 1px var(--rule);
+ color: var(--ink-2);
+ font-size: 0.95rem;
+ text-align: left;
+}
+
/* 页内目录:几个带序号的胶囊 */
.guide-toc {
display: flex;
diff --git a/docs/cloud/index.html b/docs/cloud/index.html
index eb7d094..9c2bcab 100644
--- a/docs/cloud/index.html
+++ b/docs/cloud/index.html
@@ -33,7 +33,7 @@
<a href="../start/">快速开始</a>
<a class="wide" href=".././#how">工作原理</a>
<a class="wide" href=".././#faq">常见问题</a>
- <a href="../start/#server" aria-current="true">部署服务器</a>
+ <a href="../start/#server" aria-current="true">连接方式</a>
<a class="wide" href="https://github.com/baiyuze/copysync">GitHub</a>
<a href="../en/cloud/" hreflang="en" lang="en" data-lang="en">English</a>
<a href="../ja/cloud/" hreflang="ja" lang="ja" data-lang="ja">日本語</a>
@@ -44,7 +44,7 @@
<main id="main">
<section class="hero guide-hero">
<div class="wrap">
- <p class="crumb"><a href=".././">CopySync</a> / <a href="../start/#server">部署服务器</a></p>
+ <p class="crumb"><a href=".././">CopySync</a> / <a href="../start/#server">连接方式</a></p>
<h1 class="display">部署到公网服务器</h1>
<p class="lede">一台有公网 IP 的 Linux 云主机,最低配置就够。每台电脑直接连它,在家、在公司、在外面都能同步,不用另装软件。</p>
<ol class="guide-toc">
@@ -259,7 +259,7 @@ sudo ./install.sh 203.0.113.10</code></pre>
</details>
<details>
<summary>家里宽带有公网 IP,能当公网服务器用吗?</summary>
- <div class="answer"><p>可以,但比云主机麻烦:要在路由器上把 TCP 8787、UDP 3478 和一大段中转用的 UDP 端口转发到那台电脑,家里的公网 IP 也可能会变。电脑都在家里时用<a href="../server/">局域网</a>更简单;要跨网络又不想折腾端口转发,可以用<a href="../tailscale/">局域网 + Tailscale</a>。</p></div>
+ <div class="answer"><p>可以,但比云主机麻烦:要在路由器上把 TCP 8787、UDP 3478 和一大段中转用的 UDP 端口转发到那台电脑,家里的公网 IP 也可能会变。电脑都在家里时,<a href="../lan/">同一个网络</a>里根本不需要服务器;要跨网络又不想折腾端口转发,可以用<a href="../tailscale/">Tailscale</a>。</p></div>
</details>
</div>
</div>
diff --git a/docs/design/lan-mode.html b/docs/design/lan-mode.html
new file mode 100644
index 0000000..021bdfa
--- /dev/null
+++ b/docs/design/lan-mode.html
@@ -0,0 +1,107 @@
+<!doctype html>
+<html lang="zh-CN">
+<head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <title>局域网直连:不用服务器也能配对和同步:CopySync 技术方案</title>
+ <meta name="description" content="状态:已实现,随 1.4.0 发布">
+ <link rel="canonical" href="https://baiyuze.github.io/copysync/design/lan-mode.html">
+ <meta name="theme-color" content="#141416">
+ <link rel="icon" href="../assets/favicon.svg" type="image/svg+xml">
+ <link rel="stylesheet" href="../assets/site.css">
+</head>
+<body>
+ <a class="skip" href="#main">跳到正文</a>
+ <header class="bar">
+ <div class="wrap">
+ <a class="brand" href="../" aria-label="CopySync 首页"><img src="../assets/icon.svg" alt="" width="26" height="26">CopySync</a>
+ <nav aria-label="页面导航">
+ <a href="../start/">快速开始</a>
+ <a href="../start/#server">连接方式</a>
+ <a class="wide" href="https://github.com/baiyuze/copysync/blob/main/design/lan-mode.md">在 GitHub 上查看</a>
+ <a class="wide" href="https://github.com/baiyuze/copysync">GitHub</a>
+ </nav>
+ </div>
+ </header>
+ <main id="main">
+ <article class="article">
+ <p class="crumb"><a href="../">CopySync</a> 的技术方案</p>
+ <h1>局域网直连:不用服务器也能配对和同步</h1>
+<blockquote><p>状态:已实现,随 1.4.0 发布</p><p>代码:<code>client-core/internal/transport/lan/</code>(发现、信令、配对、地址簿)、<code>transport/signed/</code>(签名与校验)、<code>peers/manager.go</code>(两条通道合并)</p><p>验证:<code>transport/lan/lan_test.go</code>、<code>peers/manager_test.go</code>、<code>tools/natlab/</code>(局域网场景)、Mac 与 Windows 虚拟机实机测试</p><p>相关:<a href="nat-traversal.html">多出口网络的 NAT 打洞</a></p></blockquote>
+<nav class="toc" aria-label="目录"><strong>目录</strong><ul><li><a href="#一-问题">一、问题</a></li><li><a href="#二-原型实测">二、原型实测</a></li><li><a href="#三-方案">三、方案</a></li><li><a href="#四-能覆盖哪些场景">四、能覆盖哪些场景</a></li><li><a href="#五-验证">五、验证</a></li><li><a href="#六-踩过的坑">六、踩过的坑</a></li><li><a href="#七-局限与后续">七、局限与后续</a></li></ul></nav>
+<h2 id="一-问题">一、问题</h2>
+<p>1.3 之前,两台电脑必须先连上同一台信令服务器,才能配对、知道对方在线、交换连接信息。即使两台就在同一个路由器下面,用户也得先找一台常开的电脑部署服务器。</p>
+<p>服务器在这里只做三件事:</p>
+<div class="table-scroll"><table><thead><tr><th scope="col">服务器的职责</th><th scope="col">局域网里用什么代替</th></tr></thead><tbody><tr><td>发现:谁在线、在哪个地址</td><td>mDNS(DNS-SD)广播</td></tr><tr><td>转发签名的信令</td><td>设备之间直接用 UDP 收发</td></tr><tr><td>配对码:码 → 公钥</td><td>在局域网里直接交换</td></tr><tr><td>STUN / TURN</td><td>同一局域网里用不上,host candidate 就能直连</td></tr></tbody></table></div>
+<p>信任模型本来就把服务器当成不可信的转发者:信令逐条签名,配对靠人工核对指纹,DTLS 指纹随签名一起传。把转发者从服务器换成局域网,安全性不变。</p>
+<h2 id="二-原型实测">二、原型实测</h2>
+<p>动手之前,先用一个临时程序(mDNS 注册与浏览,加固定 UDP 端口互发 hello)在 Mac 和 Windows 虚拟机之间测了几种情况。虚拟机在 Parallels 的共享网络里,与 Mac 同一网段,网络类型是「公用」。</p>
+<h3 id="windows-防火墙">Windows 防火墙</h3>
+<div class="table-scroll"><table><thead><tr><th scope="col">情况</th><th scope="col">结果</th></tr></thead><tbody><tr><td>程序没有任何防火墙规则</td><td>Windows 能发现 Mac(自己发出的查询,回答作为回包放行);Mac 发现不了 Windows(Windows 回答不了查询)。Windows 主动打招呼后,双方都能收发</td></tr><tr><td>有显式的入站阻止规则(相当于弹窗时点了取消)</td><td>同上。有状态防火墙对回包一律放行,阻止规则只挡主动连进来的包</td></tr><tr><td>只有 Mac 知道 Windows 的地址,Windows 不知道 Mac 的</td><td>不通:Mac 的包被挡,Windows 不会主动发</td></tr><tr><td>只有 Windows 知道 Mac 的地址</td><td>通</td></tr><tr><td>两边都知道对方地址</td><td>通</td></tr><tr><td>删掉程序的入站规则,再加一条 UDP 允许规则</td><td>只有 Mac 知道地址时也通了</td></tr></tbody></table></div>
+<p>结论:</p>
+<ul><li><strong>被挡的一方只要先发包就能通。</strong> 所以设计成「两边都往对方发」,谁也不依赖入站规则。</li><li><strong>Windows 内置的 mDNS 入站规则只放行系统的 Dnscache 服务</strong>,我们自己的进程收不到别人的查询。改用系统的 DNS-SD 服务(<code>DnsServiceRegister</code>)注册后,即使有阻止规则,Mac 也能立刻发现 Windows。浏览仍用 pion/mdns,不受影响。</li><li>弹窗点过取消、或者跨网段时被连的一方是 Windows,就需要放行。界面上提供一个按钮,用一次 UAC 运行 netsh 修好。</li></ul>
+<h3 id="macos-15-的本地网络权限">macOS 15 的本地网络权限</h3>
+<p>从终端运行的程序不受限制,但同一个程序打包成 App、由 launchd 启动(与后台服务一样)时,往局域网地址发包直接返回 <code>sendto: no route to host</code>。对方先发来的包仍然能收到,也能回复。</p>
+<p>这说明 1.3 的后台服务在 macOS 15 上其实也连不到局域网地址。它和 Windows 虚拟机之间显示「直连」,是因为 Parallels 的 NAT 让虚拟机的包看起来来自 Mac 自己的 IP,恰好绕开了限制。两台 Mac 之间如果都没拿到权限,谁也连不上谁。</p>
+<p>处理办法:</p>
+<ul><li>后台服务的 Info.plist 加上 <code>NSLocalNetworkUsageDescription</code>(中英日本地化)与 <code>NSBonjourServices</code>。</li><li>LaunchAgent 写上 <code>AssociatedBundleIdentifiers</code>,让系统知道后台服务属于 CopySync.app(TN3179 的建议)。</li><li>后台服务发现发往本机直连网段的包返回 <code>EHOSTUNREACH</code> 时,报告「被系统拦截」,界面提示用户去「系统设置 → 隐私与安全性 → 本地网络」打开。</li></ul>
+<h2 id="三-方案">三、方案</h2>
+<h3 id="1-两条通道并存">1. 两条通道并存</h3>
+<p><code>peers.Manager</code> 同时持有信令服务器客户端和局域网通道:</p>
+<ul><li><strong>在线</strong>:服务器说在线、局域网里可达、P2P 已连通,任一成立即可。服务器断开只清掉服务器那一半。</li><li><strong>发送信令</strong>:签一次名,局域网可达就走局域网,连着服务器就也经服务器转发。接收方的 <code>signed.Verifier</code> 两条路共用一份 nonce 记录,只处理先到的那份。</li><li><strong>配对结果通用</strong>:配对只是交换公钥,局域网里配好的设备,以后加上服务器照样能跨网络同步。</li></ul>
+<p>签名与校验从信令客户端里抽到 <code>transport/signed</code>,并补上一条检查:<code>to_device_id</code> 必须是本机。服务器按收件人转发,这条检查以前可有可无;局域网里谁都能把截到的消息转发给第三台设备,必须有。</p>
+<h3 id="2-发现">2. 发现</h3>
+<ul><li>服务类型 <code>_copysync._udp</code>,实例名每次启动随机(<code>copysync-</code> 加 12 位十六进制),不带设备名。</li><li>TXT:<code>v=1</code>,<code>t=当日令牌</code>,配对码开放期间加 <code>p=1</code>。</li><li>令牌是 <code>sha256("copysync-lan|" + device_id + "|" + UTC 日期)</code> 的前 8 字节。已配对的设备按昨天、今天、明天各算一遍就能认出对方;同一网络里的其他人看到的只是一串每天都变的字符,无法跨天关联。</li><li>Windows 上由系统的 DNS-SD 服务回答查询(见上一节),其他平台由 pion/mdns 回答。网络变化时(本机地址集合变了)重新加入组播、重新广播。</li></ul>
+<h3 id="3-局域网信令">3. 局域网信令</h3>
+<ul><li>固定 UDP 端口 8788,被占用时(同一台 Mac 上两个用户都登录着)退回随机端口,端口随 mDNS 和地址一起告诉对方。</li><li>每个包是 4 字节魔数 <code>CSL1</code> 加 <code>LanPacket</code>,上限 16 KB,按来源限速。</li><li>已配对设备之间收发的就是服务器转发的那种 <code>Signed</code>。上线通知是 <code>SignalMessage</code> 里新增的 <code>LanHello</code>:自报的地址、要不要回一条、自己多久发一次。</li><li>对每台还没连通的设备,每 10 秒往它可能在的地址发 hello(已连通时 30 秒保活)。候选地址按顺序取:最近一次收到它消息的来源、mDNS 发现的、它自报的、地址簿里的,最多 12 个。</li><li>收到有效消息就记下来源地址,并标记可达;超过对方声明间隔的三倍没收到,视为不可达。</li><li>信令发往对方最近的来源地址,150 毫秒后再补发一次,抵消 UDP 偶尔丢包;重复的那份被 nonce 去重。</li></ul>
+<h3 id="4-地址簿与跨网段">4. 地址簿与跨网段</h3>
+<ul><li>新表 <code>device_addrs(device_id, addr, last_seen)</code>,每台设备最多 8 个,随设备一起删除。</li><li>跨网段时 mDNS 过不去,配对时由用户输入对方配对码下面显示的地址。配对双方都记下对方的地址,之后任意一方换了地址,只要另一方没换,就能重新找到。</li><li>两边都换了地址时,在设备菜单里「输入它的地址」。不做网段扫描:在公司网络里会被当成端口扫描。</li><li>Tailscale 不转发 mDNS,但 100.x 地址就是普通的可达地址:配对时输入它,之后同样靠地址簿。</li></ul>
+<h3 id="5-配对">5. 配对</h3>
+<ul><li>显示码的一方:码在服务器和局域网两边同时开放(连着服务器时用服务器签发的码,否则本机生成,格式见 <code>proto/pairingcode</code>),一边用掉另一边就失效。错码 10 次作废。</li><li>输入码的一方:先在局域网里找,发往所有 <code>p=1</code> 的实例和用户输入的地址,每 500 毫秒重发,3 秒为限(输了地址时 5 秒);找不到且连着服务器再去服务器兑换。</li><li>请求和回复都是 <code>LanPairInfo</code>,用自带的公钥签名,并校验 ID 由公钥派生;回复回显请求的 nonce,绑定到这次请求。配对码在局域网里明文传输,与服务器模式下服务器能看到配对码等价:防中间人靠的是用户核对指纹。</li><li>配对请求与回复本身证明了对方在哪个地址,收到即标记可达,确认后第一次连接不必再等 hello。</li></ul>
+<h3 id="6-其他改动">6. 其他改动</h3>
+<ul><li>服务器地址默认为空。1.4.0 之前的默认值 <code>ws://127.0.0.1:8787/signal</code> 其实没有服务器在跑,升级时清空一次(配置文件记 <code>config_version</code>,只迁移一次)。</li><li>没有服务器时不探测公共 STUN:只在局域网里连,探测出口没有用,还会把公网 IP 暴露给公共服务器。</li><li>解除配对时断开 P2P 连接(以前不断开)。</li><li><code>copysync-cli</code>:<code>join CODE [ADDRESS]</code>、<code>address DEVICE ADDR</code>,<code>nat</code> 里加了局域网一节。</li></ul>
+<h3 id="代码位置">代码位置</h3>
+<div class="table-scroll"><table><thead><tr><th scope="col">位置</th><th scope="col">内容</th></tr></thead><tbody><tr><td><code>transport/lan/lan.go</code></td><td>socket、hello、可达状态、地址簿、诊断</td></tr><tr><td><code>transport/lan/pairing.go</code></td><td>局域网配对</td></tr><tr><td><code>transport/lan/discovery.go</code>、<code>mdns*.go</code></td><td>发现接口、pion/mdns 实现、Windows 的系统 DNS-SD 注册、测试用的内存网络</td></tr><tr><td><code>transport/lan/addrs.go</code></td><td>本机地址、地址解析、令牌</td></tr><tr><td><code>transport/lan/permission_*.go</code></td><td>macOS 打开本地网络设置、Windows 用 UAC 放行防火墙</td></tr><tr><td><code>transport/signed/</code></td><td>签名、校验、防重放、收件人检查</td></tr><tr><td><code>peers/manager.go</code></td><td>两条通道合并、配对流程</td></tr><tr><td><code>store/store.go</code></td><td><code>device_addrs</code> 表</td></tr><tr><td><code>config/config.go</code></td><td>默认不用服务器、<code>lan_disabled</code>、一次性迁移</td></tr></tbody></table></div>
+<h2 id="四-能覆盖哪些场景">四、能覆盖哪些场景</h2>
+<div class="table-scroll"><table><thead><tr><th scope="col">两台电脑</th><th scope="col">结果</th></tr></thead><tbody><tr><td>同一网段</td><td>mDNS 发现,直连</td></tr><tr><td>不同网段,网段之间互通</td><td>配对时输入地址,直连;之后靠地址簿</td></tr><tr><td>同一 tailnet</td><td>配对时输入 100.x 地址,直连</td></tr><tr><td>一台是没放行防火墙的 Windows</td><td>只要它知道对方的地址(或由系统 DNS-SD 被发现后对方打招呼),就能连上</td></tr><tr><td>两台都是没放行防火墙的 Windows,跨网段,只有一边知道地址</td><td>连不上,需要在被连的一方点「放行」</td></tr><tr><td>两个网段之间被隔离(访客网络等)</td><td>连不上,只能经两边都能访问的服务器中转</td></tr><tr><td>macOS 15 没允许本地网络</td><td>对方先发来时能连;两台都是这样的 Mac 时连不上,界面提示去允许</td></tr></tbody></table></div>
+<h2 id="五-验证">五、验证</h2>
+<h3 id="单元测试与集成测试">单元测试与集成测试</h3>
+<p><code>transport/signed/signed_test.go</code>:签名与校验;同一条信令从两条通道到达只处理一次;收件人不是本机时拒收;未配对、冒用 ID、时间戳过期都拒收。</p>
+<p><code>transport/lan/lan_test.go</code>:两个实例绑在 127.0.0.1 的不同端口上,用内存网络代替 mDNS。已配对设备互相找到并收发信令、补发的那份被去重、地址记进地址簿;只靠记得的地址互相找到;未配对设备的 hello 不算数;局域网配对、按地址配对、码只能用一次、错 10 次后作废;可达状态过期;地址解析与令牌换天。</p>
+<p><code>peers/manager_test.go</code>:两个完整的 <code>peers.Manager</code>。没有服务器时配对、P2P 直连、双向收消息,解除配对后断开;不同网段时不输地址找不到、输了地址能配对并直连;关掉局域网只用服务器时原来的配对路径照常工作,错码立即被拒;服务器和局域网同时开着时,同一个码只能用一次。</p>
+<p><code>config/config_test.go</code>:旧默认地址清空、自己的服务器保留、只迁移一次。<code>store/store_test.go</code>:地址簿的排序、上限、随设备删除。</p>
+<p>界面:<code>pairing_flow_test.dart</code> 覆盖显示本机地址、找不到时展开地址框并带地址重试、错码提示、侧栏的局域网状态与 macOS 拦截提示。</p>
+<h3 id="nat-打洞实验室">NAT 打洞实验室</h3>
+<p>新增 <code>natlab lanpeer</code>:不起任何服务器,用真实的局域网通道连接,两端身份由种子派生,相当于已经配对。新增两种拓扑:同一网段(网桥)与两个网段(路由器,不做 NAT)。</p>
+<div class="table-scroll"><table><thead><tr><th scope="col">场景</th><th scope="col">预期</th><th scope="col">结果</th></tr></thead><tbody><tr><td>同一网段,靠 mDNS 发现</td><td>直连</td><td>通过</td></tr><tr><td>两个网段,一边记得对方地址</td><td>直连</td><td>通过</td></tr><tr><td>两个网段,两台都挡入站新连接,都记得地址</td><td>直连</td><td>通过</td></tr><tr><td>两个网段,两台都挡入站新连接,只有一边记得</td><td>连不上</td><td>通过</td></tr><tr><td>两个网段之间被隔离</td><td>连不上</td><td>通过</td></tr></tbody></table></div>
+<p>「两台都挡入站」用每台主机上的 <code>iptables -A INPUT -p udp -m conntrack --ctstate NEW -j DROP</code> 模拟没有放行规则的 Windows 防火墙,证明两边同时发包确实能穿过有状态防火墙。</p>
+<h3 id="实机验收">实机验收</h3>
+<p>Mac 与 Windows 11 虚拟机,各跑一个用 <code>-tags fakeclip</code> 编译的后台服务(独立数据目录,不碰真实剪贴板),不配服务器。Windows 上的程序是新的路径,没有任何防火墙规则。</p>
+<ul><li>局域网配对成功,两边的安全指纹一致。</li><li>文本双向同步;5 MB 文件从 Mac 传到 Windows,SHA-256 一致。</li><li>两边都重启后约 1 秒重新直连。</li><li>新的一对在确认配对后立即直连;8788 被占用时退回随机端口,地址里自动带上端口。</li></ul>
+<h2 id="六-踩过的坑">六、踩过的坑</h2>
+<ul><li><strong>配对后的第一次连接要等 30 秒。</strong> 确认配对后立即发起连接,但双方还没互发过 hello,局域网通道认为对方不可达,offer 发不出去,连接停在「连接中」直到握手超时。改为配对的请求与回复到达时就标记可达;offer 发不出去时立即复位,不等超时。</li><li><strong>配对前就被发现的实例,配对后认不出来。</strong> 令牌是按已配对设备算的,配对后要把已经发现的实例重新对一遍。</li><li><strong>pion 的浏览每秒报一次同一个实例,还会报出无关的服务。</strong> 只在地址或令牌变化、或超过 30 秒时才行动;校验服务类型与 <code>v=1</code>。</li><li><strong>锁的顺序。</strong> 局域网通道持锁时回调上层(取已配对设备、查 P2P 状态),上层持锁时又查局域网的可达状态。可达状态单独放在一把叶子锁里,回调一律在锁外。</li><li><strong>Parallels 的 NAT 掩盖了 macOS 的拦截</strong>,见第二节。</li><li><strong>natlab 里新建 veth 时,第一个名字先在容器自己的命名空间里创建</strong>,起名 <code>eth0</code> 会与容器的网卡冲突;<code>[[ … ]] &amp;&amp; …</code> 放在函数末尾、条件不成立时会让函数返回 1,触发 <code>set -e</code>。</li></ul>
+<h2 id="七-局限与后续">七、局限与后续</h2>
+<ul><li>两台都没放行防火墙的 Windows、跨网段、只有一边知道地址时连不上,需要在被连的一方点「放行」。</li><li>macOS 15 的本地网络授权弹窗只在屏幕解锁时出现。ad-hoc 签名的版本每次更新后,系统可能把它当成新程序重新询问;有了 Developer ID 签名后会稳定。</li><li>不做网段扫描。两边地址都变了要手动输入一次,台式机建议在路由器里固定地址。</li><li>只支持 IPv4。</li></ul>
+ </article>
+ </main>
+
+ <footer class="footer">
+ <div class="wrap">
+ <p>CopySync 以 GNU AGPL-3.0 开源,另提供商业授权。</p>
+ <nav aria-label="页脚链接">
+ <a href="https://github.com/baiyuze/copysync/releases">所有版本</a>
+ <a href="https://github.com/baiyuze/copysync/blob/main/CHANGELOG.md">更新记录</a>
+ <a href="https://baiyuze.github.io/copysync/design/nat-traversal.html">技术方案</a>
+ <a href="https://github.com/baiyuze/copysync/blob/main/LICENSING.md">商业授权</a>
+ <a href="https://github.com/baiyuze/copysync/issues">反馈问题</a>
+ </nav>
+ <nav aria-label="语言">
+ <a href=".././" hreflang="zh-CN" lang="zh-CN" data-lang="zh" aria-current="page">简体中文</a>
+ <a href="../en/" hreflang="en" lang="en" data-lang="en">English</a>
+ <a href="../ja/" hreflang="ja" lang="ja" data-lang="ja">日本語</a>
+ </nav>
+ </div>
+ </footer>
+ <script type="module" src="https://static.cloudflareinsights.com/beacon.min.js" data-cf-beacon='{"token": "7ee226baf4a949a397c4bfd69a9e7461"}'></script>
+</body>
+</html>
diff --git a/docs/design/nat-traversal.html b/docs/design/nat-traversal.html
index 63656de..5c85d18 100644
--- a/docs/design/nat-traversal.html
+++ b/docs/design/nat-traversal.html
@@ -17,7 +17,7 @@
<a class="brand" href="../" aria-label="CopySync 首页"><img src="../assets/icon.svg" alt="" width="26" height="26">CopySync</a>
<nav aria-label="页面导航">
<a href="../start/">快速开始</a>
- <a href="../start/#server">部署服务器</a>
+ <a href="../start/#server">连接方式</a>
<a class="wide" href="https://github.com/baiyuze/copysync/blob/main/design/nat-traversal.md">在 GitHub 上查看</a>
<a class="wide" href="https://github.com/baiyuze/copysync">GitHub</a>
</nav>
diff --git a/docs/design/windows-client.html b/docs/design/windows-client.html
index 2b31feb..db89196 100644
--- a/docs/design/windows-client.html
+++ b/docs/design/windows-client.html
@@ -17,7 +17,7 @@
<a class="brand" href="../" aria-label="CopySync 首页"><img src="../assets/icon.svg" alt="" width="26" height="26">CopySync</a>
<nav aria-label="页面导航">
<a href="../start/">快速开始</a>
- <a href="../start/#server">部署服务器</a>
+ <a href="../start/#server">连接方式</a>
<a class="wide" href="https://github.com/baiyuze/copysync/blob/main/design/windows-client.md">在 GitHub 上查看</a>
<a class="wide" href="https://github.com/baiyuze/copysync">GitHub</a>
</nav>
diff --git a/docs/en/cloud/index.html b/docs/en/cloud/index.html
index 9a9fc20..f956da2 100644
--- a/docs/en/cloud/index.html
+++ b/docs/en/cloud/index.html
@@ -33,7 +33,7 @@
<a href="../../en/start/">Quick start</a>
<a class="wide" href="../../en/#how">How it works</a>
<a class="wide" href="../../en/#faq">FAQ</a>
- <a href="../../en/start/#server" aria-current="true">Self-host</a>
+ <a href="../../en/start/#server" aria-current="true">Ways to connect</a>
<a class="wide" href="https://github.com/baiyuze/copysync">GitHub</a>
<a href="../../cloud/" hreflang="zh-CN" lang="zh-CN" data-lang="zh">简体中文</a>
<a href="../../ja/cloud/" hreflang="ja" lang="ja" data-lang="ja">日本語</a>
@@ -44,7 +44,7 @@
<main id="main">
<section class="hero guide-hero">
<div class="wrap">
- <p class="crumb"><a href="../../en/">CopySync</a> / <a href="../../en/start/#server">Self-host</a></p>
+ <p class="crumb"><a href="../../en/">CopySync</a> / <a href="../../en/start/#server">Ways to connect</a></p>
<h1 class="display">Run it on a public server</h1>
<p class="lede">A Linux VM with a public IP; the smallest one is enough. Every computer connects to it directly and syncs at home, at the office or anywhere else, with nothing extra to install.</p>
<ol class="guide-toc">
@@ -259,7 +259,7 @@ Open in your firewall: TCP 8787 (signaling), UDP 3478 (STUN and TURN), UDP 32768
</details>
<details>
<summary>My home connection has a public IP. Can I use that?</summary>
- <div class="answer"><p>Yes, but it's more work than a VM: forward TCP 8787, UDP 3478 and a large range of UDP relay ports to that computer, and a home IP may change. If all your computers are at home, the <a href="../../en/server/">LAN</a> setup is simpler; to sync across networks without port forwarding, see <a href="../../en/tailscale/">LAN + Tailscale</a>.</p></div>
+ <div class="answer"><p>Yes, but it's more work than a VM: forward TCP 8787, UDP 3478 and a large range of UDP relay ports to that computer, and a home IP may change. If all your computers are at home, they need no server at all on the <a href="../../en/lan/">same network</a>; to sync across networks without port forwarding, see <a href="../../en/tailscale/">Tailscale</a>.</p></div>
</details>
</div>
</div>
diff --git a/docs/en/index.html b/docs/en/index.html
index d5807c2..810c264 100644
--- a/docs/en/index.html
+++ b/docs/en/index.html
@@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>CopySync: sync the clipboard and files between Mac and Windows, across accounts and networks</title>
- <meta name="description" content="CopySync lets you copy on one computer and paste on another, Mac or Windows: text, images, files and folders. No shared account or network required. Peer-to-peer, end-to-end encrypted, with a server you host that can&#x27;t see your content. Free and open source.">
+ <meta name="description" content="CopySync lets you copy on one computer and paste on another, Mac or Windows: text, images, files and folders. No shared account required. On the same network it works with no server at all; across networks, use a server you host or Tailscale. Peer-to-peer and end-to-end encrypted. Free and open source.">
<link rel="canonical" href="https://baiyuze.github.io/copysync/en/">
<link rel="alternate" hreflang="zh-CN" href="https://baiyuze.github.io/copysync/">
<link rel="alternate" hreflang="en" href="https://baiyuze.github.io/copysync/en/">
@@ -14,7 +14,7 @@
<meta property="og:type" content="website">
<meta property="og:site_name" content="CopySync">
<meta property="og:title" content="CopySync: copy on this computer, paste on that one">
- <meta property="og:description" content="Mac and Windows. Text, images, files and folders across accounts and networks; peer-to-peer, end-to-end encrypted, self-hosted server. Free and open source.">
+ <meta property="og:description" content="Mac and Windows. Text, images, files and folders across accounts and networks; peer-to-peer, end-to-end encrypted, no server needed on the same network. Free and open source.">
<meta property="og:url" content="https://baiyuze.github.io/copysync/en/">
<meta property="og:image" content="https://baiyuze.github.io/copysync/assets/og-en.png">
<meta property="og:image:width" content="1200">
@@ -35,7 +35,7 @@
"@type": "SoftwareApplication",
"@id": "https://baiyuze.github.io/copysync/#app",
"name": "CopySync",
- "description": "Open-source app that syncs the clipboard and files between Mac and Windows computers. Copy text, images, files or folders on one computer and paste on the other. Devices connect directly over WebRTC with end-to-end DTLS encryption, falling back to a TURN relay on a server the user hosts.",
+ "description": "Open-source app that syncs the clipboard and files between Mac and Windows computers. Copy text, images, files or folders on one computer and paste on the other. No server is needed on the same network. Devices connect directly over WebRTC with end-to-end DTLS encryption; across networks, a server the user hosts introduces them and relays over TURN when needed.",
"applicationCategory": "UtilitiesApplication",
"operatingSystem": "macOS 13 or later (Intel and Apple silicon); Windows 10, Windows 11 (x64)",
"softwareVersion": "1.3.4",
@@ -55,6 +55,7 @@
"featureList": [
"Syncs plain text, rich text, images, files and folders",
"Works between Mac and Windows, across accounts and networks",
+ "No server needed on the same network, with automatic mDNS discovery",
"Direct WebRTC connection with automatic TURN relay fallback",
"End-to-end DTLS encryption with human-verified fingerprints at pairing",
"Items under 50 MB pushed on copy, larger files pulled on demand",
@@ -83,7 +84,7 @@
"name": "How is this different from Universal Clipboard?",
"acceptedAnswer": {
"@type": "Answer",
- "text": "Universal Clipboard needs both devices on the same Apple ID, with Bluetooth and Wi‑Fi on, close to each other, and works only between Apple devices. CopySync only needs both computers to reach your server, so different Apple IDs work, one Mac and one Windows PC work, and so does one at home and one at the office. It also keeps a history and lets you pull large files on demand. If your Macs share an Apple ID, sit side by side, and you mostly copy text, the built-in feature is already enough."
+ "text": "Universal Clipboard needs both devices on the same Apple ID, with Bluetooth and Wi‑Fi on, close to each other, and works only between Apple devices. CopySync works on the same network as soon as it's installed; across networks, both computers reach your server or run Tailscale. So different Apple IDs work, one Mac and one Windows PC work, and so does one at home and one at the office. It also keeps a history and lets you pull large files on demand. If your Macs share an Apple ID, sit side by side, and you mostly copy text, the built-in feature is already enough."
}
},
{
@@ -107,7 +108,7 @@
"name": "Do I need my own server?",
"acceptedAnswer": {
"@type": "Answer",
- "text": "Yes. There is no public server, so nobody's data passes through anyone else's machine. There are three ways to run it: a public server, where the smallest VM is enough and sync works from anywhere; your LAN, on an always-on computer when all your computers share a network; or LAN + Tailscale, across networks without a public server."
+ "text": "Not necessarily. When your computers are on the same network, install the app and pair; there's no server. Across networks there are two ways: a public server, where the smallest VM is enough and sync works from anywhere; or Tailscale on each computer, entering the other computer's Tailscale address when pairing, with no server at all. There's no public CopySync server, so nobody's data passes through anyone else's machine."
}
},
{
@@ -115,7 +116,15 @@
"name": "No public IP at home. Can I sync between home and the office?",
"acceptedAnswer": {
"@type": "Answer",
- "text": "Yes, in two ways. With a public server, run CopySync's server there and connect both computers to it; see the public server guide. Without one, run the server on an always-on computer at home, install Tailscale on every computer under the same account, and use the server's Tailscale address; see LAN + Tailscale."
+ "text": "Yes, in two ways. With a public server, run CopySync's server there and connect both computers to it; see the public server guide. Without one, install Tailscale on every computer under the same account and enter the other computer's Tailscale address when pairing; see the Tailscale guide."
+ }
+ },
+ {
+ "@type": "Question",
+ "name": "Both computers are on the same network. Why can't they find each other?",
+ "acceptedAnswer": {
+ "@type": "Answer",
+ "text": "Check that they're really on the same subnet: wired and Wi‑Fi in many offices, guest networks, and Wi‑Fi with client isolation don't let devices see each other. In that case, on the computer entering the code, click On a different subnet? and enter the address shown under the other computer's code. On Windows, allow CopySync when the firewall asks on first run; if you clicked Cancel, click Allow under Settings → Local network. On a Mac, turn on CopySync Daemon in System Settings → Privacy & Security → Local Network. More in the same network guide."
}
},
{
@@ -166,7 +175,7 @@
<a href="start/">Quick start</a>
<a class="wide" href="#how">How it works</a>
<a class="wide" href="#faq">FAQ</a>
- <a href="start/#server">Self-host</a>
+ <a href="start/#server">Ways to connect</a>
<a class="wide" href="https://github.com/baiyuze/copysync">GitHub</a>
<a href=".././" hreflang="zh-CN" lang="zh-CN" data-lang="zh">简体中文</a>
<a href="../ja/" hreflang="ja" lang="ja" data-lang="ja">日本語</a>
@@ -178,7 +187,7 @@
<section class="hero">
<div class="wrap">
<h1 class="display">Copy on this computer.<br>Paste on that one.</h1>
- <p class="lede">Mac and Windows. Text, images, files, whole folders. No shared account required, no shared network required. Data moves directly between your devices, and stays encrypted even when it passes through your own server.</p>
+ <p class="lede">Mac and Windows. Text, images, files, whole folders. No shared account required. On the same network it works with no server at all, and it works across networks too. Data moves directly between your devices, end-to-end encrypted.</p>
<div class="cta">
<a class="button" href="https://github.com/baiyuze/copysync/releases/latest/download/CopySync.dmg"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Download for Mac</a>
<a class="button quiet" href="https://github.com/baiyuze/copysync/releases/latest/download/CopySync-Setup.exe"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Download for Windows</a>
@@ -214,9 +223,16 @@
<section class="section" id="deploy" aria-labelledby="deploy-title">
<div class="wrap">
- <h2 id="deploy-title">Where to run the server</h2>
- <p class="intro">Your computers find each other through a server; nothing you copy is stored on it. There's no public server, so pick one of three ways to run your own.</p>
+ <h2 id="deploy-title">How your computers connect</h2>
+ <p class="intro">On the same network, install the app and pair; no server needed. Across networks, your computers find each other through a server or Tailscale, and nothing you copy is stored there. Pick the way that fits.</p>
<div class="paths">
+ <a class="path" href="lan/">
+ <svg viewBox="0 0 240 112" aria-hidden="true"><rect class="p-net" x="6" y="6" width="228" height="100" rx="14"/><path class="p-data" d="M82 52h76"/><rect class="p-dev" x="39" y="40" width="38" height="24" rx="3"/><path class="p-dev" d="M34 69h48"/><rect class="p-dev" x="163" y="40" width="38" height="24" rx="3"/><path class="p-dev" d="M158 69h48"/></svg>
+ <span class="path-when">Nothing to set up</span>
+ <h3>Same network</h3>
+ <p>At home or in the office, behind the same router. Install the app on both computers and enter a pairing code. No server, and no computer that has to stay on.</p>
+ <span class="path-go">Same network guide →</span>
+ </a>
<a class="path" href="cloud/">
<svg viewBox="0 0 240 112" aria-hidden="true"><rect class="p-dev" x="98" y="8" width="44" height="12" rx="3"/><rect class="p-dev" x="98" y="23" width="44" height="12" rx="3"/><rect class="p-net" x="6" y="50" width="100" height="56" rx="10"/><rect class="p-net" x="134" y="50" width="100" height="56" rx="10"/><path class="p-sig" d="M56 64V22h42M184 64V22h-42"/><path class="p-data" d="M80 80h80"/><rect class="p-dev" x="37" y="64" width="38" height="24" rx="3"/><path class="p-dev" d="M32 93h48"/><rect class="p-dev" x="165" y="64" width="38" height="24" rx="3"/><path class="p-dev" d="M160 93h48"/></svg>
<span class="path-when">Syncs from anywhere</span>
@@ -224,18 +240,11 @@
<p>A Linux VM with a public IP; the smallest one is enough. Every computer connects to it directly, at home, at the office or anywhere else, with nothing extra to install.</p>
<span class="path-go">Public server guide →</span>
</a>
- <a class="path" href="server/">
- <svg viewBox="0 0 240 112" aria-hidden="true"><rect class="p-net" x="6" y="6" width="228" height="100" rx="14"/><rect class="p-dev" x="98" y="16" width="44" height="12" rx="3"/><rect class="p-dev" x="98" y="31" width="44" height="12" rx="3"/><path class="p-sig" d="M58 66V30h40M182 66V30h-40"/><path class="p-data" d="M82 82h76"/><rect class="p-dev" x="39" y="66" width="38" height="24" rx="3"/><path class="p-dev" d="M34 95h48"/><rect class="p-dev" x="163" y="66" width="38" height="24" rx="3"/><path class="p-dev" d="M158 95h48"/></svg>
- <span class="path-when">All computers on one network</span>
- <h3>LAN</h3>
- <p>At home or in the office, on the same Wi‑Fi or wired network. Run the server on one of your always-on Windows, Mac or Linux computers with one script. Free.</p>
- <span class="path-go">LAN guide →</span>
- </a>
<a class="path" href="tailscale/">
- <svg viewBox="0 0 240 112" aria-hidden="true"><rect class="p-ts" x="2" y="2" width="236" height="108" rx="16"/><rect class="p-net" x="12" y="12" width="98" height="88" rx="10"/><rect class="p-net" x="130" y="12" width="98" height="88" rx="10"/><rect class="p-dev" x="39" y="20" width="44" height="12" rx="3"/><rect class="p-dev" x="39" y="35" width="44" height="12" rx="3"/><path class="p-sig" d="M180 64V54H61v-7M61 64V54"/><path class="p-data" d="M85 80h71"/><rect class="p-dev" x="42" y="64" width="38" height="24" rx="3"/><path class="p-dev" d="M37 93h48"/><rect class="p-dev" x="161" y="64" width="38" height="24" rx="3"/><path class="p-dev" d="M156 93h48"/></svg>
- <span class="path-when">Across networks, no public server</span>
- <h3>LAN + Tailscale</h3>
- <p>Run the server on an always-on computer at home, then install Tailscale on each computer under the same account. They act as if they shared a LAN.</p>
+ <svg viewBox="0 0 240 112" aria-hidden="true"><rect class="p-ts" x="2" y="2" width="236" height="108" rx="16"/><rect class="p-net" x="12" y="12" width="98" height="88" rx="10"/><rect class="p-net" x="130" y="12" width="98" height="88" rx="10"/><path class="p-data" d="M85 52h71"/><rect class="p-dev" x="42" y="40" width="38" height="24" rx="3"/><path class="p-dev" d="M37 69h48"/><rect class="p-dev" x="161" y="40" width="38" height="24" rx="3"/><path class="p-dev" d="M156 69h48"/></svg>
+ <span class="path-when">Across networks, no server</span>
+ <h3>Tailscale</h3>
+ <p>Install Tailscale on each computer under one account and enter the other computer's Tailscale address when pairing. Syncs at home and at the office, with no server and no computer that has to stay on.</p>
<span class="path-go">Tailscale guide →</span>
</a>
</div>
@@ -290,7 +299,7 @@
<section class="section" id="how" aria-labelledby="how-title">
<div class="wrap">
<h2 id="how-title">How it works</h2>
- <p class="intro">Your two computers open an encrypted connection to each other. Your server only helps them find one another, and relays traffic when a direct path can't be made.</p>
+ <p class="intro">Your two computers open an encrypted connection to each other. On the same network they find each other on their own; across networks your server introduces them, and relays traffic when a direct path can't be made. The diagram shows the cross-network case.</p>
<figure class="diagram">
<svg viewBox="0 0 960 400" role="img" aria-labelledby="diagram-title diagram-desc">
<title id="diagram-title">How CopySync connects</title>
@@ -362,6 +371,11 @@
<tr><td>Blocked at first, network recovers later</td><td>Relay, then direct</td></tr>
<tr><td>Office router locks a port for unsolicited packets</td><td>Direct</td></tr>
<tr><td>Home router locks a port for unsolicited packets</td><td>Relay, then direct after one retry</td></tr>
+ <tr><td>No server, same subnet, found over mDNS</td><td>Direct</td></tr>
+ <tr><td>No server, two subnets, one side remembers the address</td><td>Direct</td></tr>
+ <tr><td>No server, both block inbound, both remember</td><td>Direct</td></tr>
+ <tr><td>No server, both block inbound, only one remembers</td><td>No connection (known limit)</td></tr>
+ <tr><td>No server, subnets isolated from each other</td><td>No connection</td></tr>
</tbody>
</table>
</div>
@@ -381,6 +395,7 @@
<li><strong>You compare fingerprints when pairing.</strong> Both screens show the same two lines: the fingerprint of each device's key. The server could swap keys in transit, but then the two screens would no longer match. That check is what stops a man in the middle.</li>
<li><strong>Every message after that is signed,</strong> so the server can't impersonate your device. The direct channel's certificate is checked again after the handshake; a mismatch drops the connection.</li>
<li><strong>The relay only forwards ciphertext.</strong> TURN carries encrypted packets, and relay credentials are issued per device and expire after 12 hours.</li>
+ <li><strong>Same on the local network.</strong> What a device broadcasts on the LAN is an anonymous token that changes daily, not its name. Pairing still means comparing fingerprints, and every message is still signed.</li>
</ul>
<figure class="figure-card">
<img src="../assets/screenshots/en/card-verify-dark.png" width="1120" height="800" loading="lazy" alt="The fingerprint check during pairing shows R8NF-2WTC-QL5J and asks you to confirm it matches the other computer exactly">
@@ -394,11 +409,13 @@
<h2 id="fallback-title">When things go wrong</h2>
<p class="intro">Every network is different. Each of these cases was considered, and each has a test.</p>
<dl class="fallbacks">
+ <div><dt>Can't find the other computer on the network</dt><dd>Different subnets, guest networks and Wi‑Fi with client isolation block local discovery. Enter the address shown under the other computer's code when pairing; it's remembered afterwards, and if both computers change addresses you enter it once more in the device list.</dd></div>
+ <div><dt>The system blocks the local network</dt><dd>From macOS 15, the background service needs your permission to reach devices on the local network; Windows asks about the firewall on first run. If either isn't allowed, the app says so and links straight to the fix.</dd></div>
<div><dt>No direct path between the computers</dt><dd>Common behind symmetric NAT and corporate firewalls. Traffic switches to the TURN relay on your server, still encrypted, and the device list shows "Relay".</dd></div>
<div><dt>Public STUN servers unreachable</dt><dd>Public STUN is unreliable in some regions, including mainland China. Your server runs its own STUN, and clients prefer it.</dd></div>
<div><dt>Connected through the relay first</dt><dd>The relay handshake is fast and sometimes beats the direct path. Once connected, the side that started the connection punches again while idle and switches to direct when that works, never in the middle of a transfer.</dd></div>
<div><dt>The other computer sleeps, drops off or restarts</dt><dd>A connection that dies silently is noticed, closed and reconnected. Anything you copy meanwhile is kept and added to the other computer's history once it's back, without overwriting what's on its clipboard now.</dd></div>
- <div><dt>Server connection drops</dt><dd>Reconnects automatically: the delay starts at 1 second and doubles up to 30, with jitter so devices don't all reconnect at once. The app shows the status live.</dd></div>
+ <div><dt>Server connection drops</dt><dd>Reconnects automatically: the delay starts at 1 second and doubles up to 30, with jitter so devices don't all reconnect at once. Devices on the same network keep syncing.</dd></div>
<div><dt>File too large</dt><dd>Above the limit only a record is synced, pulled when you need it. If the source file is gone by then, you get a clear message instead of a vague failure.</dd></div>
<div><dt>Pasting into plain-text fields</dt><dd>Rich text copied from the web is written as both HTML and plain text, so no markup leaks into what you paste.</dd></div>
<div><dt>A file name Windows doesn't allow</dt><dd>Colons, question marks and a few other characters that are fine on a Mac arrive as the matching full-width characters, so the name still reads the same. Two names that differ only in case never overwrite each other.</dd></div>
@@ -413,15 +430,15 @@
<section class="section" id="install" aria-labelledby="install-title">
<div class="wrap">
<h2 id="install-title">Install</h2>
- <p class="intro">Install the app on each computer, and set up a server both of them can reach. First time? Follow the <a href="start/">quick start</a>.</p>
+ <p class="intro">Install the app on each computer. On the same network you can pair right away; across networks, pick a way for them to find each other. First time? Follow the <a href="start/">quick start</a>.</p>
<div class="install">
<div>
<h3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="4" y="5" width="16" height="11" rx="1.5"/><path d="M2 19h20"/></svg>Mac</h3>
<ol>
<li>Download CopySync.dmg, open it and drag CopySync into Applications.</li>
<li>Open it from Applications.<span class="aside">The first time, macOS says it can't verify the developer: CopySync isn't notarized by Apple yet. Go to System Settings → Privacy &amp; Security and click Open Anyway near the bottom. You only do this once.</span></li>
- <li>Click Turn on background sync. In Settings, enter your server as <code>ws://server-address:8787/signal</code> and press Return.</li>
- <li>When macOS asks whether CopySync may read the clipboard, allow it.</li>
+ <li>Click Turn on background sync. When macOS asks whether CopySync may read the clipboard or find devices on your local network, allow both.</li>
+ <li>To sync across networks, enter your server in Settings as <code>ws://server-address:8787/signal</code> and press Return. On the same network, leave it empty.</li>
</ol>
<a class="button" href="https://github.com/baiyuze/copysync/releases/latest/download/CopySync.dmg"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Download for Mac</a>
</div>
@@ -429,23 +446,23 @@
<h3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="4" width="18" height="12" rx="1.5"/><path d="M9 20h6M12 16v4"/></svg>Windows</h3>
<ol>
<li>Run CopySync-Setup.exe. It installs for the current user, no administrator rights needed.<span class="aside">CopySync isn't code-signed yet, so Windows says "Windows protected your PC": click More info, then Run anyway. To skip the installer, get the <a href="https://github.com/baiyuze/copysync/releases/latest/download/CopySync-windows-x64.zip">portable zip</a>.</span></li>
- <li>Open CopySync and click Turn on background sync. After you close the window it keeps running in the notification area.</li>
- <li>In Settings, enter your server address and press Enter. Allow it if Windows Firewall asks.</li>
+ <li>Open CopySync and click Turn on background sync. Allow it if Windows Firewall asks. After you close the window it keeps running in the notification area.</li>
+ <li>To sync across networks, enter your server address in Settings and press Enter. On the same network, leave it empty.</li>
</ol>
<a class="button" href="https://github.com/baiyuze/copysync/releases/latest/download/CopySync-Setup.exe"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Download for Windows</a>
</div>
<div>
- <h3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="4" y="4" width="16" height="7" rx="1.5"/><rect x="4" y="13" width="16" height="7" rx="1.5"/><path d="M8 7.5h.01M8 16.5h.01"/></svg>Server</h3>
- <p class="small">Three ways to run it; pick the one that fits. Each has a step-by-step guide:</p>
+ <h3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="4" y="4" width="16" height="7" rx="1.5"/><rect x="4" y="13" width="16" height="7" rx="1.5"/><path d="M8 7.5h.01M8 16.5h.01"/></svg>Ways to connect</h3>
+ <p class="small">No server on the same network. Pick the way that fits; each has a step-by-step guide:</p>
<ul class="opts">
+ <li><a href="lan/">Same network</a><span>Nothing to set up</span></li>
<li><a href="cloud/">Public server</a><span>Syncs from anywhere</span></li>
- <li><a href="server/">LAN</a><span>All computers on one network</span></li>
- <li><a href="tailscale/">LAN + Tailscale</a><span>Across networks, no public server</span></li>
+ <li><a href="tailscale/">Tailscale</a><span>Across networks, no server</span></li>
</ul>
<a class="button quiet" href="start/#server">Compare the three</a>
</div>
</div>
- <p class="pairing"><strong>Pairing:</strong> on one computer, choose Devices → Add device to show a 6-character code; enter it on the other, and confirm once both screens show the same two fingerprints. Mac with Windows, or two Windows PCs, works the same way.</p>
+ <p class="pairing"><strong>Pairing:</strong> on one computer, choose Devices → Add device to show a 6-character code; enter it on the other, and confirm once both screens show the same two fingerprints. On a different subnet, also enter the address shown under the code. Mac with Windows, or two Windows PCs, works the same way.</p>
</div>
</section>
@@ -458,10 +475,10 @@
<tr><th scope="row">Version</th><td>1.3.4, released <time datetime="2026-10-11">October 11, 2026</time></td></tr>
<tr><th scope="row">Mac app</th><td>macOS 13 Ventura or later; universal binary for Intel and Apple silicon, no Rosetta; about 47 MB download</td></tr>
<tr><th scope="row">Windows app</th><td>Windows 10 (21H2 or later) and Windows 11, x64; installs per user, no administrator rights; about 23 MB download</td></tr>
- <tr><th scope="row">Server</th><td>Linux on x86_64 or ARM64 (systemd or Docker), macOS (Intel and Apple silicon), Windows 10 and 11 x64 (as a service); about 15 MB of RAM</td></tr>
+ <tr><th scope="row">Server</th><td>Optional, only for syncing across networks. Linux on x86_64 or ARM64 (systemd or Docker), macOS (Intel and Apple silicon), Windows 10 and 11 x64 (as a service); about 15 MB of RAM</td></tr>
<tr><th scope="row">Languages</th><td>English, Simplified Chinese and Japanese; follows the system by default, switchable in Settings</td></tr>
<tr><th scope="row">Content</th><td>Plain text, rich text, images and screenshots, files, folders; each type can be turned off</td></tr>
- <tr><th scope="row">Transport</th><td>WebRTC data channels, direct first with TURN relay fallback; every uplink probed on multi-uplink networks; files streamed as tar + zstd</td></tr>
+ <tr><th scope="row">Transport</th><td>WebRTC data channels, direct first with TURN relay fallback; on the same network, mDNS discovery and connection details over UDP 8788; every uplink probed on multi-uplink networks; files streamed as tar + zstd</td></tr>
<tr><th scope="row">Encryption and identity</th><td>End-to-end DTLS; Ed25519 device keys; every signaling message signed</td></tr>
<tr><th scope="row">Pairing</th><td>6-character code valid for 5 minutes, using an alphabet without look-alikes such as 0/O and 1/I; fingerprints compared by you</td></tr>
<tr><th scope="row">Auto-sync limit</th><td>50 MB by default, adjustable from 1 MB to 1 GB</td></tr>
@@ -485,7 +502,7 @@
</details>
<details>
<summary>How is this different from Universal Clipboard?</summary>
- <div class="answer"><p>Universal Clipboard needs both devices on the same Apple ID, with Bluetooth and Wi‑Fi on, close to each other, and works only between Apple devices. CopySync only needs both computers to reach your server, so different Apple IDs work, one Mac and one Windows PC work, and so does one at home and one at the office. It also keeps a history and lets you pull large files on demand.</p><p>If your Macs share an Apple ID, sit side by side, and you mostly copy text, the built-in feature is already enough.</p></div>
+ <div class="answer"><p>Universal Clipboard needs both devices on the same Apple ID, with Bluetooth and Wi‑Fi on, close to each other, and works only between Apple devices. CopySync works on the same network as soon as it's installed; across networks, both computers reach your server or run Tailscale. So different Apple IDs work, one Mac and one Windows PC work, and so does one at home and one at the office. It also keeps a history and lets you pull large files on demand.</p><p>If your Macs share an Apple ID, sit side by side, and you mostly copy text, the built-in feature is already enough.</p></div>
</details>
<details>
<summary>Can the server see what I copy?</summary>
@@ -497,11 +514,15 @@
</details>
<details>
<summary>Do I need my own server?</summary>
- <div class="answer"><p>Yes. There is no public server, so nobody's data passes through anyone else's machine. There are three ways to run it: a <a href="cloud/">public server</a>, where the smallest VM is enough and sync works from anywhere; your <a href="server/">LAN</a>, on an always-on computer when all your computers share a network; or <a href="tailscale/">LAN + Tailscale</a>, across networks without a public server.</p></div>
+ <div class="answer"><p>Not necessarily. When your computers are on the <a href="lan/">same network</a>, install the app and pair; there's no server.</p><p>Across networks there are two ways: a <a href="cloud/">public server</a>, where the smallest VM is enough and sync works from anywhere; or <a href="tailscale/">Tailscale</a> on each computer, entering the other computer's Tailscale address when pairing, with no server at all. There's no public CopySync server, so nobody's data passes through anyone else's machine.</p></div>
</details>
<details>
<summary>No public IP at home. Can I sync between home and the office?</summary>
- <div class="answer"><p>Yes, in two ways. With a public server, run CopySync's server there and connect both computers to it; see the <a href="cloud/">public server guide</a>. Without one, run the server on an always-on computer at home, install Tailscale on every computer under the same account, and use the server's Tailscale address; see <a href="tailscale/">LAN + Tailscale</a>.</p></div>
+ <div class="answer"><p>Yes, in two ways. With a public server, run CopySync's server there and connect both computers to it; see the <a href="cloud/">public server guide</a>. Without one, install Tailscale on every computer under the same account and enter the other computer's Tailscale address when pairing; see the <a href="tailscale/">Tailscale guide</a>.</p></div>
+ </details>
+ <details>
+ <summary>Both computers are on the same network. Why can't they find each other?</summary>
+ <div class="answer"><p>Check that they're really on the same subnet: wired and Wi‑Fi in many offices, guest networks, and Wi‑Fi with client isolation don't let devices see each other. In that case, on the computer entering the code, click On a different subnet? and enter the address shown under the other computer's code.</p><p>On Windows, allow CopySync when the firewall asks on first run; if you clicked Cancel, click Allow under Settings → Local network. On a Mac, turn on CopySync Daemon in System Settings → Privacy &amp; Security → Local Network. More in the <a href="lan/#faq">same network guide</a>.</p></div>
</details>
<details>
<summary>Windows? iPhone?</summary>
diff --git a/docs/en/lan/index.html b/docs/en/lan/index.html
new file mode 100644
index 0000000..a234e69
--- /dev/null
+++ b/docs/en/lan/index.html
@@ -0,0 +1,210 @@
+<!doctype html>
+<html lang="en">
+<head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <title>Use CopySync on one network: no server, just pair</title>
+ <meta name="description" content="When your computers share a Wi‑Fi or wired network, CopySync needs no server: install the app, enter a 6-character pairing code, and sync the clipboard and files between Mac and Windows. On a different subnet, you enter one address when pairing.">
+ <link rel="canonical" href="https://baiyuze.github.io/copysync/en/lan/">
+ <link rel="alternate" hreflang="zh-CN" href="https://baiyuze.github.io/copysync/lan/">
+ <link rel="alternate" hreflang="en" href="https://baiyuze.github.io/copysync/en/lan/">
+ <link rel="alternate" hreflang="ja" href="https://baiyuze.github.io/copysync/ja/lan/">
+ <meta name="theme-color" content="#141416">
+ <meta property="og:type" content="article">
+ <meta property="og:site_name" content="CopySync">
+ <meta property="og:title" content="Use CopySync on one network: no server, just pair">
+ <meta property="og:description" content="When your computers share a Wi‑Fi or wired network, CopySync needs no server: install the app, enter a 6-character pairing code, and sync the clipboard and files between Mac and Windows. On a different subnet, you enter one address when pairing.">
+ <meta property="og:url" content="https://baiyuze.github.io/copysync/en/lan/">
+ <meta property="og:image" content="https://baiyuze.github.io/copysync/assets/og-en.png">
+ <meta property="og:locale" content="en_US">
+ <meta name="twitter:card" content="summary_large_image">
+ <link rel="icon" href="../../assets/favicon.svg" type="image/svg+xml">
+ <link rel="icon" href="../../assets/favicon-32.png" sizes="32x32" type="image/png">
+ <link rel="apple-touch-icon" href="../../assets/apple-touch-icon.png">
+ <link rel="stylesheet" href="../../assets/site.css">
+</head>
+<body>
+ <a class="skip" href="#main">Skip to content</a>
+
+ <header class="bar">
+ <div class="wrap">
+ <a class="brand" href="../../en/" aria-label="CopySync home"><img src="../../assets/icon.svg" alt="" width="26" height="26">CopySync</a>
+ <nav aria-label="Page">
+ <a href="../../en/start/">Quick start</a>
+ <a class="wide" href="../../en/#how">How it works</a>
+ <a class="wide" href="../../en/#faq">FAQ</a>
+ <a href="../../en/start/#server" aria-current="true">Ways to connect</a>
+ <a class="wide" href="https://github.com/baiyuze/copysync">GitHub</a>
+ <a href="../../lan/" hreflang="zh-CN" lang="zh-CN" data-lang="zh">简体中文</a>
+ <a href="../../ja/lan/" hreflang="ja" lang="ja" data-lang="ja">日本語</a>
+ </nav>
+ </div>
+ </header>
+
+ <main id="main">
+ <section class="hero guide-hero">
+ <div class="wrap">
+ <p class="crumb"><a href="../../en/">CopySync</a> / <a href="../../en/start/#server">Ways to connect</a></p>
+ <h1 class="display">On the same network</h1>
+ <p class="lede">Computers behind the same router don't need a server. Install the app, enter a pairing code, and copying syncs from then on.</p>
+ <ol class="guide-toc">
+ <li><a href="#prepare">Before you start</a></li>
+ <li><a href="#pair">Pair</a></li>
+ <li><a href="#subnet">Different subnets</a></li>
+ <li><a href="#faq">Questions</a></li>
+ </ol>
+ </div>
+ </section>
+
+ <section class="section" id="overview" aria-labelledby="overview-title">
+ <div class="wrap">
+ <h2 id="overview-title">No server</h2>
+ <p class="intro">Two computers on the same network find each other over mDNS, exchange connection details directly, and open an encrypted direct connection. No server, and no computer that has to stay on.</p>
+ <figure class="diagram">
+ <svg viewBox="0 0 960 330" role="img" aria-labelledby="lan-title lan-desc">
+ <title id="lan-title">CopySync on one network</title>
+ <desc id="lan-desc">On one LAN, a Mac (192.168.1.20) and a Windows PC (192.168.1.35) find each other over mDNS and exchange connection details over UDP 8788. Copied content goes directly between them; there is no server.</desc>
+ <rect class="d-lan" x="8" y="8" width="944" height="314" rx="22"/>
+ <text class="d-lan-label" x="32" y="42">LAN: the same Wi‑Fi or wired network</text>
+ <rect class="d-box" x="40" y="120" width="240" height="140" rx="14"/>
+ <text class="d-title" x="160" y="170" text-anchor="middle">Mac</text>
+ <text class="d-sub" x="160" y="198" text-anchor="middle">Running CopySync</text>
+ <text class="d-ip" x="160" y="234" text-anchor="middle">192.168.1.20</text>
+ <rect class="d-box" x="680" y="120" width="240" height="140" rx="14"/>
+ <text class="d-title" x="800" y="170" text-anchor="middle">Windows</text>
+ <text class="d-sub" x="800" y="198" text-anchor="middle">Running CopySync</text>
+ <text class="d-ip" x="800" y="234" text-anchor="middle">192.168.1.35</text>
+ <path class="d-sig" d="M280 150H680"/>
+ <text class="d-note" x="480" y="138" text-anchor="middle">Found over mDNS, connection details over UDP 8788</text>
+ <path class="d-direct" d="M280 214H680"/>
+ <text class="d-label" x="480" y="200" text-anchor="middle">Direct, end-to-end encrypted</text>
+ <text class="d-note" x="480" y="242" text-anchor="middle">Content stays between the two computers</text>
+ </svg>
+ </figure>
+ <ul class="points ports">
+ <li><strong>Found automatically.</strong> Each computer announces itself on the LAN over mDNS, with only an anonymous token that changes daily, so nobody can tell whose computer it is.</li>
+ <li><strong>Direct.</strong> Content goes straight between the two computers, at the speed of your network.</li>
+ <li><strong>Same security.</strong> You compare two fingerprint lines when pairing, and every message after that is signed, so others on the network can't pose as your device.</li>
+ </ul>
+ </div>
+ </section>
+
+ <section class="section" id="prepare" aria-labelledby="prepare-title">
+ <div class="wrap">
+ <h2 id="prepare-title">Before you start</h2>
+ <dl class="fallbacks">
+ <div><dt>The same network</dt><dd>Both computers behind the same router; Wi‑Fi and wired can mix. Guest networks and Wi‑Fi with client isolation keep devices apart, and in many offices wired and Wi‑Fi are separate subnets: see <a href="#subnet">different subnets</a> below.</dd></div>
+ <div><dt>Windows Firewall</dt><dd>On first run, Windows asks whether CopySync may get through the firewall; allow it. If you clicked Cancel, click Allow under Settings → Local network in CopySync, which asks for administrator approval once.</dd></div>
+ <div><dt>Local Network on macOS</dt><dd>From macOS 15, the first time it reaches a device on your network, macOS asks whether CopySync Daemon may find devices on your local network; allow it. If you declined, turn it on in System Settings → Privacy &amp; Security → Local Network.</dd></div>
+ <div><dt>No server address</dt><dd>Leave the server field in Settings empty. To sync across networks later, add a server or use Tailscale; paired devices stay paired.</dd></div>
+ </dl>
+ </div>
+ </section>
+
+ <section class="section" id="pair" aria-labelledby="pair-title">
+ <div class="wrap">
+ <p class="eyebrow">Step 1</p>
+ <h2 id="pair-title">Pair your computers</h2>
+ <p class="intro">Pair each two computers once. If the app isn't installed yet, see the <a href="../../en/start/#app">quick start</a>.</p>
+ <div class="os-grid qs-grid">
+ <div>
+ <ol class="steps">
+ <li>On one computer, open Devices and click Add device. It shows a 6-character code, valid for 5 minutes.</li>
+ <li>On the other, click Add device too, switch to Enter a code, type it in and click Continue.</li>
+ <li>Both screens show the same two fingerprint lines. Check them character by character, then confirm. Copying syncs from now on.</li>
+ </ol>
+ <figure class="figure-card qs-verify">
+ <img src="../../assets/screenshots/en/card-verify-dark.png" width="1120" height="800" loading="lazy" alt="The fingerprint check during pairing shows R8NF-2WTC-QL5J and asks you to confirm it matches the other computer exactly">
+ </figure>
+ </div>
+ <figure class="shot">
+ <img src="../../assets/screenshots/en/pairing-dark.png" width="2112" height="1472" loading="lazy" alt="Add device: the pairing code K7MP2X, with this computer&#x27;s address 192.168.1.20 below it">
+ </figure>
+ </div>
+ </div>
+ </section>
+
+ <section class="section" id="subnet" aria-labelledby="subnet-title">
+ <div class="wrap">
+ <p class="eyebrow">Step 2</p>
+ <h2 id="subnet-title">Different subnets</h2>
+ <p class="intro">Local discovery only reaches one subnet. When your computers are on different subnets that can still reach each other, as in many offices, you enter one address when pairing.</p>
+ <div class="os-grid qs-grid">
+ <div>
+ <ol class="steps">
+ <li>The computer showing the code lists its address below it, such as <code>192.168.1.20</code>.</li>
+ <li>On the computer entering the code, click On a different subnet?, enter that address, and click Continue.</li>
+ <li>After pairing, each computer remembers the other's address. If one changes address, the other finds it again on its own; if both change, open the device's … menu under Devices and choose Enter its address.</li>
+ </ol>
+ </div>
+ <figure class="shot">
+ <img src="../../assets/screenshots/en/pairing-join-dark.png" width="2112" height="1472" loading="lazy" alt="Enter a code: the code K7MP2X, with the address field opened below it holding 192.168.1.20">
+ </figure>
+ </div>
+ <p class="note">If the subnets can't reach each other at all, such as a guest network kept apart from the office network, traffic has to go through a computer both can reach: see <a href="../../en/server/">run a server on your LAN</a>.</p>
+ </div>
+ </section>
+
+ <section class="section" id="faq" aria-labelledby="faq-title">
+ <div class="wrap">
+ <h2 id="faq-title">Questions</h2>
+ <div class="faq">
+ <details>
+ <summary>The other computer can't be found</summary>
+ <div class="answer"><p>Make sure both are on the network with background sync on. Then try entering the other computer's address on the one entering the code: if that works, they're on different subnets, or the network blocks mDNS.</p><p>Still nothing? Check the other computer's firewall. On Windows, click Allow under Settings → Local network; on a Mac, make sure CopySync Daemon is on under System Settings → Privacy &amp; Security → Local Network and the macOS firewall isn't blocking it.</p></div>
+ </details>
+ <details>
+ <summary>Does it sync away from this network?</summary>
+ <div class="answer"><p>No. It resumes when you're back, and anything copied in between is added to the other computer's history. To sync across networks, add a <a href="../../en/cloud/">public server</a> or use <a href="../../en/tailscale/">Tailscale</a>; paired devices stay paired.</p></div>
+ </details>
+ <details>
+ <summary>What if an address changes?</summary>
+ <div class="answer"><p>Usually nothing to do. On one subnet, mDNS finds the computer again at any time; across subnets, it reconnects as long as one of the two keeps its address. If both change, enter the address once more under Devices.</p><p>For a desktop that never moves, you can reserve its address in your router's DHCP settings.</p></div>
+ </details>
+ <details>
+ <summary>Can others on the network see my computer?</summary>
+ <div class="answer"><p>They can see that a CopySync device is there, but not whose: the broadcast carries an anonymous token that changes daily, with no device name or ID. Messages from devices you haven't paired with are dropped, and pairing requires comparing fingerprints on both screens.</p></div>
+ </details>
+ <details>
+ <summary>Which ports does it use?</summary>
+ <div class="answer"><p>UDP 8788 for connection details (a random port if that's taken), UDP 5353 for mDNS, and another random UDP port for the data once connected. Nothing to configure on your router.</p></div>
+ </details>
+ </div>
+ </div>
+ </section>
+
+ <section class="closing" aria-labelledby="closing-title">
+ <div class="wrap">
+ <h2 class="display" id="closing-title">One network,<br>nothing to set up.</h2>
+ <div class="cta">
+ <a class="button" href="https://github.com/baiyuze/copysync/releases/latest/download/CopySync.dmg"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Download for Mac</a>
+ <a class="button quiet" href="https://github.com/baiyuze/copysync/releases/latest/download/CopySync-Setup.exe"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Download for Windows</a>
+ </div>
+ <p class="note">Version 1.3.4, free and open source. macOS 13 or later, Intel and Apple silicon; Windows 10 and 11.</p>
+ <a class="source" href="../../design/lan-mode.html">Design notes on local network mode (in Chinese)</a>
+ </div>
+ </section>
+ </main>
+
+ <footer class="footer">
+ <div class="wrap">
+ <p>CopySync is open source under the GNU AGPL-3.0, with commercial licenses available.</p>
+ <nav aria-label="Footer">
+ <a href="https://github.com/baiyuze/copysync/releases">All releases</a>
+ <a href="https://github.com/baiyuze/copysync/blob/main/CHANGELOG.md">Changelog</a>
+ <a href="https://baiyuze.github.io/copysync/design/nat-traversal.html">Design notes (Chinese)</a>
+ <a href="https://github.com/baiyuze/copysync/blob/main/LICENSING.md">Commercial license</a>
+ <a href="https://github.com/baiyuze/copysync/issues">Report an issue</a>
+ </nav>
+ <nav aria-label="Language">
+ <a href="../../lan/" hreflang="zh-CN" lang="zh-CN" data-lang="zh">简体中文</a>
+ <a href="../../en/lan/" hreflang="en" lang="en" data-lang="en" aria-current="page">English</a>
+ <a href="../../ja/lan/" hreflang="ja" lang="ja" data-lang="ja">日本語</a>
+ </nav>
+ </div>
+ </footer>
+
+ <script src="../../assets/site.js" defer></script>
+ <script type="module" src="https://static.cloudflareinsights.com/beacon.min.js" data-cf-beacon='{"token": "7ee226baf4a949a397c4bfd69a9e7461"}'></script>
+</body>
+</html>
diff --git a/docs/en/server/index.html b/docs/en/server/index.html
index d73a3fe..efe0606 100644
--- a/docs/en/server/index.html
+++ b/docs/en/server/index.html
@@ -33,7 +33,7 @@
<a href="../../en/start/">Quick start</a>
<a class="wide" href="../../en/#how">How it works</a>
<a class="wide" href="../../en/#faq">FAQ</a>
- <a href="../../en/start/#server" aria-current="true">Self-host</a>
+ <a href="../../en/start/#server" aria-current="true">Ways to connect</a>
<a class="wide" href="https://github.com/baiyuze/copysync">GitHub</a>
<a href="../../server/" hreflang="zh-CN" lang="zh-CN" data-lang="zh">简体中文</a>
<a href="../../ja/server/" hreflang="ja" lang="ja" data-lang="ja">日本語</a>
@@ -44,9 +44,10 @@
<main id="main">
<section class="hero guide-hero">
<div class="wrap">
- <p class="crumb"><a href="../../en/">CopySync</a> / <a href="../../en/start/#server">Self-host</a></p>
+ <p class="crumb"><a href="../../en/">CopySync</a> / <a href="../../en/start/#server">Ways to connect</a></p>
<h1 class="display">Run the server on your LAN</h1>
<p class="lede">If your computers are on the same home or office network, you don't need a cloud server. Pick a computer that stays on, download and run one script, then enter the address it prints into CopySync on each computer.</p>
+ <p class="notice"><strong>On the same network you no longer need a server:</strong> install the app and pair; see the <a href="../../en/lan/">same network guide</a>. This guide still helps when two subnets can't reach each other and traffic has to go through a computer both can reach.</p>
<ol class="guide-toc">
<li><a href="#prepare">Before you start</a></li>
<li><a href="#install">Install</a></li>
@@ -350,7 +351,7 @@ Open in your firewall: TCP 8787 (signaling), UDP 3478 (STUN and TURN), UDP 32768
</details>
<details>
<summary>Does it sync away from the LAN?</summary>
- <div class="answer"><p>No, the server is only reachable on your LAN. To sync from other networks, switch to one of the other two ways: a <a href="../../en/cloud/">public server</a>, or <a href="../../en/tailscale/">LAN + Tailscale</a>.</p></div>
+ <div class="answer"><p>No, the server is only reachable on your LAN. To sync from other networks, use a <a href="../../en/cloud/">public server</a> or <a href="../../en/tailscale/">Tailscale</a>.</p></div>
</details>
<details>
<summary>The server computer also runs CopySync. Which address?</summary>
diff --git a/docs/en/start/index.html b/docs/en/start/index.html
index e9a19a4..d230b4f 100644
--- a/docs/en/start/index.html
+++ b/docs/en/start/index.html
@@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Quick start: set up CopySync in three steps</title>
- <meta name="description" content="New to CopySync? Install the app on each computer, pick a way to run the server (on your LAN, with Tailscale, or in the cloud), enter its address and pair, then copy and paste between Mac and Windows. No public IP needed.">
+ <meta name="description" content="New to CopySync? Install the app on each computer. On the same network, just pair, with no server; across networks, use a public server or Tailscale. Then copy and paste between Mac and Windows.">
<link rel="canonical" href="https://baiyuze.github.io/copysync/en/start/">
<link rel="alternate" hreflang="zh-CN" href="https://baiyuze.github.io/copysync/start/">
<link rel="alternate" hreflang="en" href="https://baiyuze.github.io/copysync/en/start/">
@@ -13,7 +13,7 @@
<meta property="og:type" content="article">
<meta property="og:site_name" content="CopySync">
<meta property="og:title" content="Quick start: set up CopySync in three steps">
- <meta property="og:description" content="New to CopySync? Install the app on each computer, pick a way to run the server (on your LAN, with Tailscale, or in the cloud), enter its address and pair, then copy and paste between Mac and Windows. No public IP needed.">
+ <meta property="og:description" content="New to CopySync? Install the app on each computer. On the same network, just pair, with no server; across networks, use a public server or Tailscale. Then copy and paste between Mac and Windows.">
<meta property="og:url" content="https://baiyuze.github.io/copysync/en/start/">
<meta property="og:image" content="https://baiyuze.github.io/copysync/assets/og-en.png">
<meta property="og:locale" content="en_US">
@@ -33,7 +33,7 @@
<a href="./" aria-current="page">Quick start</a>
<a class="wide" href="../../en/#how">How it works</a>
<a class="wide" href="../../en/#faq">FAQ</a>
- <a href="#server">Self-host</a>
+ <a href="#server">Ways to connect</a>
<a class="wide" href="https://github.com/baiyuze/copysync">GitHub</a>
<a href="../../start/" hreflang="zh-CN" lang="zh-CN" data-lang="zh">简体中文</a>
<a href="../../ja/start/" hreflang="ja" lang="ja" data-lang="ja">日本語</a>
@@ -46,11 +46,10 @@
<div class="wrap">
<p class="crumb"><a href="../../en/">CopySync</a> / Quick start</p>
<h1 class="display">Quick start</h1>
- <p class="lede">Install the app, set up a server, and pair your computers. The first time takes about ten minutes; after that, copying just syncs.</p>
+ <p class="lede">Install the app, pick a way to connect, and pair your computers. On the same network it takes a few minutes; after that, copying just syncs.</p>
<ol class="guide-toc">
<li><a href="#app">Install the app</a></li>
- <li><a href="#server">Set up a server</a></li>
- <li><a href="#connect">Enter the address</a></li>
+ <li><a href="#server">Pick a way to connect</a></li>
<li><a href="#pair">Pair</a></li>
</ol>
</div>
@@ -68,7 +67,7 @@
<ol class="steps">
<li>Download CopySync.dmg, open it and drag CopySync into Applications.</li>
<li>Open it from Applications.<span class="aside">The first time, macOS says it can't verify the developer: go to System Settings → Privacy &amp; Security and click Open Anyway near the bottom.</span></li>
- <li>Click Turn on background sync, and allow clipboard access when macOS asks.</li>
+ <li>Click Turn on background sync. When macOS asks about clipboard access and finding devices on your local network, allow both.</li>
</ol>
<a class="button" href="https://github.com/baiyuze/copysync/releases/latest/download/CopySync.dmg"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Download for Mac</a>
</div>
@@ -76,7 +75,7 @@
<h3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="4" width="18" height="12" rx="1.5"/><path d="M9 20h6M12 16v4"/></svg>Windows</h3>
<ol class="steps">
<li>Run CopySync-Setup.exe; no administrator rights needed.<span class="aside">If you see "Windows protected your PC", click More info, then Run anyway.</span></li>
- <li>Open CopySync and click Turn on background sync. After you close the window it keeps running in the notification area.</li>
+ <li>Open CopySync and click Turn on background sync. Allow it if Windows Firewall asks. After you close the window it keeps running in the notification area.</li>
</ol>
<a class="button" href="https://github.com/baiyuze/copysync/releases/latest/download/CopySync-Setup.exe"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Download for Windows</a>
</div>
@@ -91,79 +90,79 @@
<section class="section" id="server" aria-labelledby="server-title">
<div class="wrap">
<p class="eyebrow">Step 2</p>
- <h2 id="server-title">Set up a server</h2>
- <p class="intro">Your computers find each other through it; nothing you copy is stored there. There's no public server, and there are three ways to run your own. Pick the one that fits.</p>
+ <h2 id="server-title">Pick a way to connect</h2>
+ <p class="intro">On the same network there's nothing to set up. Across networks, your computers find each other through a public server or Tailscale, and nothing you copy is stored there.</p>
<div class="os-tabs" data-tabs="plan">
- <div class="tablist" role="tablist" aria-label="Ways to run the server" hidden>
+ <div class="tablist" role="tablist" aria-label="Ways to connect" hidden>
+ <button type="button" role="tab" id="tab-plan-lan" aria-controls="plan-lan">Same network</button>
<button type="button" role="tab" id="tab-plan-cloud" aria-controls="plan-cloud">Public server</button>
- <button type="button" role="tab" id="tab-plan-lan" aria-controls="plan-lan">LAN</button>
- <button type="button" role="tab" id="tab-plan-ts" aria-controls="plan-ts">LAN + Tailscale</button>
+ <button type="button" role="tab" id="tab-plan-ts" aria-controls="plan-ts">Tailscale</button>
</div>
- <section class="os" id="plan-cloud" role="tabpanel" aria-labelledby="tab-plan-cloud">
- <h3 class="os-title">Public server</h3>
+ <section class="os" id="plan-lan" role="tabpanel" aria-labelledby="tab-plan-lan">
+ <h3 class="os-title">Same network</h3>
<div class="plan-grid">
<div>
<ol class="steps">
- <li>In your cloud provider's security group, open TCP 8787, UDP 3478 and UDP 32768–60999.</li>
- <li>Log in with ssh, download the install script and run it with the public IP: <code>sudo ./install.sh PUBLIC_IP</code>.</li>
- <li>Open <code>http://PUBLIC_IP:8787/healthz</code> in a browser; ok means it's running.</li>
+ <li>Install the app on each computer and click Turn on background sync.</li>
+ <li>Allow CopySync if Windows Firewall asks, and allow it to find devices on your local network if macOS asks.</li>
+ <li>Show a code on one, enter it on the other and compare fingerprints. On a different subnet, also enter the address shown under the code; see the <a href="../../en/lan/#subnet">same network guide</a>.</li>
</ol>
- <p class="plan-address">Address for every computer: <code>ws://PUBLIC_IP:8787/signal</code></p>
- <a class="button quiet" href="../../en/cloud/">Public server guide →</a>
+ <p class="plan-address">No server address to enter.</p>
+ <a class="button quiet" href="../../en/lan/">Same network guide →</a>
</div>
<div class="plan-card">
- <svg viewBox="0 0 240 112" aria-hidden="true"><rect class="p-dev" x="98" y="8" width="44" height="12" rx="3"/><rect class="p-dev" x="98" y="23" width="44" height="12" rx="3"/><rect class="p-net" x="6" y="50" width="100" height="56" rx="10"/><rect class="p-net" x="134" y="50" width="100" height="56" rx="10"/><path class="p-sig" d="M56 64V22h42M184 64V22h-42"/><path class="p-data" d="M80 80h80"/><rect class="p-dev" x="37" y="64" width="38" height="24" rx="3"/><path class="p-dev" d="M32 93h48"/><rect class="p-dev" x="165" y="64" width="38" height="24" rx="3"/><path class="p-dev" d="M160 93h48"/></svg>
+ <svg viewBox="0 0 240 112" aria-hidden="true"><rect class="p-net" x="6" y="6" width="228" height="100" rx="14"/><path class="p-data" d="M82 52h76"/><rect class="p-dev" x="39" y="40" width="38" height="24" rx="3"/><path class="p-dev" d="M34 69h48"/><rect class="p-dev" x="163" y="40" width="38" height="24" rx="3"/><path class="p-dev" d="M158 69h48"/></svg>
<dl>
- <div><dt>Best for</dt><dd>Computers spread across networks that should sync from anywhere. The simplest way across networks.</dd></div>
- <div><dt>You need</dt><dd>A Linux VM with a public IP, as root; the smallest one is enough.</dd></div>
- <div><dt>Keep in mind</dt><dd>The VM costs money. When a direct connection fails, the relay is limited by the server's bandwidth. In mainland China, use the IP unless the domain has an ICP filing.</dd></div>
+ <div><dt>Best for</dt><dd>Computers on the same Wi‑Fi or wired network, such as at home or in the office.</dd></div>
+ <div><dt>You need</dt><dd>Nothing. Just the app on each computer.</dd></div>
+ <div><dt>Keep in mind</dt><dd>No sync away from that network; it resumes when you're back. If wired and Wi‑Fi are on different subnets, as in many offices, you also enter an address when pairing.</dd></div>
</dl>
</div>
</div>
</section>
- <section class="os" id="plan-lan" role="tabpanel" aria-labelledby="tab-plan-lan">
- <h3 class="os-title">LAN</h3>
+ <section class="os" id="plan-cloud" role="tabpanel" aria-labelledby="tab-plan-cloud">
+ <h3 class="os-title">Public server</h3>
<div class="plan-grid">
<div>
<ol class="steps">
- <li>Reserve an address for the server computer in your router.</li>
- <li>Download the server for its system and run the install script: double-click <code>install.cmd</code> on <a href="../../en/server/#windows">Windows</a>, run <code>./install.sh</code> on <a href="../../en/server/#macos">macOS</a> or <a href="../../en/server/#linux">Linux</a>.</li>
- <li>The script finds the computer's LAN address and prints the address for the apps.</li>
+ <li>In your cloud provider's security group, open TCP 8787, UDP 3478 and UDP 32768–60999.</li>
+ <li>Log in with ssh, download the install script and run it with the public IP: <code>sudo ./install.sh PUBLIC_IP</code>.</li>
+ <li>In Settings on each computer, enter <code>ws://PUBLIC_IP:8787/signal</code>, press Return, then pair.</li>
</ol>
- <p class="plan-address">Address for every computer: <code>ws://LAN_ADDRESS:8787/signal</code>, for example <code>ws://192.168.1.20:8787/signal</code></p>
- <a class="button quiet" href="../../en/server/">LAN guide →</a>
+ <p class="plan-address">Open <code>http://PUBLIC_IP:8787/healthz</code> in a browser; ok means it's running.</p>
+ <a class="button quiet" href="../../en/cloud/">Public server guide →</a>
</div>
<div class="plan-card">
- <svg viewBox="0 0 240 112" aria-hidden="true"><rect class="p-net" x="6" y="6" width="228" height="100" rx="14"/><rect class="p-dev" x="98" y="16" width="44" height="12" rx="3"/><rect class="p-dev" x="98" y="31" width="44" height="12" rx="3"/><path class="p-sig" d="M58 66V30h40M182 66V30h-40"/><path class="p-data" d="M82 82h76"/><rect class="p-dev" x="39" y="66" width="38" height="24" rx="3"/><path class="p-dev" d="M34 95h48"/><rect class="p-dev" x="163" y="66" width="38" height="24" rx="3"/><path class="p-dev" d="M158 95h48"/></svg>
+ <svg viewBox="0 0 240 112" aria-hidden="true"><rect class="p-dev" x="98" y="8" width="44" height="12" rx="3"/><rect class="p-dev" x="98" y="23" width="44" height="12" rx="3"/><rect class="p-net" x="6" y="50" width="100" height="56" rx="10"/><rect class="p-net" x="134" y="50" width="100" height="56" rx="10"/><path class="p-sig" d="M56 64V22h42M184 64V22h-42"/><path class="p-data" d="M80 80h80"/><rect class="p-dev" x="37" y="64" width="38" height="24" rx="3"/><path class="p-dev" d="M32 93h48"/><rect class="p-dev" x="165" y="64" width="38" height="24" rx="3"/><path class="p-dev" d="M160 93h48"/></svg>
<dl>
- <div><dt>Best for</dt><dd>Computers on the same Wi‑Fi or wired network, such as at home or in the office.</dd></div>
- <div><dt>You need</dt><dd>An always-on Windows, Mac or Linux computer; one of the computers you sync is fine.</dd></div>
- <div><dt>Keep in mind</dt><dd>No sync away from that network; it resumes when you're back. Sync also pauses while the server computer is off or asleep.</dd></div>
+ <div><dt>Best for</dt><dd>Computers spread across networks that should sync from anywhere. The simplest way across networks.</dd></div>
+ <div><dt>You need</dt><dd>A Linux VM with a public IP, as root; the smallest one is enough.</dd></div>
+ <div><dt>Keep in mind</dt><dd>The VM costs money. When a direct connection fails, the relay is limited by the server's bandwidth. In mainland China, use the IP unless the domain has an ICP filing.</dd></div>
</dl>
</div>
</div>
</section>
<section class="os" id="plan-ts" role="tabpanel" aria-labelledby="tab-plan-ts">
- <h3 class="os-title">LAN + Tailscale</h3>
+ <h3 class="os-title">Tailscale</h3>
<div class="plan-grid">
<div>
<ol class="steps">
<li>Install Tailscale on each computer and sign in to the same account.</li>
- <li>On the server computer, run <code>tailscale ip -4</code> and note the address starting with 100.</li>
- <li>Install the server with that address, as in <code>install.cmd 100.101.102.103</code> or <code>./install.sh 100.101.102.103</code>.</li>
+ <li>On the computer you'll pair with, run <code>tailscale ip -4</code> and note the address starting with 100.</li>
+ <li>When pairing, on the computer entering the code, click On a different subnet? and enter that address.</li>
</ol>
- <p class="plan-address">Address for every computer: <code>ws://TAILSCALE_ADDRESS:8787/signal</code></p>
+ <p class="plan-address">No server. A Tailscale address doesn't change, so you enter it once, when pairing.</p>
<a class="button quiet" href="../../en/tailscale/">Tailscale guide →</a>
</div>
<div class="plan-card">
- <svg viewBox="0 0 240 112" aria-hidden="true"><rect class="p-ts" x="2" y="2" width="236" height="108" rx="16"/><rect class="p-net" x="12" y="12" width="98" height="88" rx="10"/><rect class="p-net" x="130" y="12" width="98" height="88" rx="10"/><rect class="p-dev" x="39" y="20" width="44" height="12" rx="3"/><rect class="p-dev" x="39" y="35" width="44" height="12" rx="3"/><path class="p-sig" d="M180 64V54H61v-7M61 64V54"/><path class="p-data" d="M85 80h71"/><rect class="p-dev" x="42" y="64" width="38" height="24" rx="3"/><path class="p-dev" d="M37 93h48"/><rect class="p-dev" x="161" y="64" width="38" height="24" rx="3"/><path class="p-dev" d="M156 93h48"/></svg>
+ <svg viewBox="0 0 240 112" aria-hidden="true"><rect class="p-ts" x="2" y="2" width="236" height="108" rx="16"/><rect class="p-net" x="12" y="12" width="98" height="88" rx="10"/><rect class="p-net" x="130" y="12" width="98" height="88" rx="10"/><path class="p-data" d="M85 52h71"/><rect class="p-dev" x="42" y="40" width="38" height="24" rx="3"/><path class="p-dev" d="M37 69h48"/><rect class="p-dev" x="161" y="40" width="38" height="24" rx="3"/><path class="p-dev" d="M156 69h48"/></svg>
<dl>
<div><dt>Best for</dt><dd>Computers on different networks, without a public server.</dd></div>
- <div><dt>You need</dt><dd>An always-on computer for the server, and Tailscale on every computer under one account.</dd></div>
- <div><dt>Keep in mind</dt><dd>Every computer that runs CopySync needs Tailscale, and the one at home stays on. When Tailscale can't connect peer to peer it relays through DERP servers, which can be slow.</dd></div>
+ <div><dt>You need</dt><dd>Tailscale on every computer, signed in to one account.</dd></div>
+ <div><dt>Keep in mind</dt><dd>Every computer that runs CopySync needs Tailscale, connected. When Tailscale can't connect peer to peer it relays through DERP servers, which can be slow.</dd></div>
</dl>
</div>
</div>
@@ -172,32 +171,16 @@
</div>
</section>
- <section class="section" id="connect" aria-labelledby="connect-title">
- <div class="wrap">
- <p class="eyebrow">Step 3</p>
- <h2 id="connect-title">Enter the server address on each computer</h2>
- <ol class="flow">
- <li><h3>Open Settings</h3><p>Open CopySync on each computer, including the one running the server, and go to Settings.</p></li>
- <li><h3>Enter the address</h3><p>Under Signaling server, enter the address from the previous step and press Return or Enter.</p></li>
- <li><h3>Check the status</h3><p>When Connection shows a green Connected, that computer is ready.</p></li>
- </ol>
- <figure class="shot">
- <img src="../../assets/screenshots/en/settings-lan-dark.png" width="2112" height="1472" loading="lazy" alt="CopySync Settings: the signaling server is ws://192.168.1.20:8787/signal and the connection status shows Connected">
- </figure>
- <p class="note">Stuck at Not connected? See the <a href="../../en/server/#faq">questions</a>.</p>
- </div>
- </section>
-
<section class="section" id="pair" aria-labelledby="pair-title">
<div class="wrap">
- <p class="eyebrow">Step 4</p>
+ <p class="eyebrow">Step 3</p>
<h2 id="pair-title">Pair your computers</h2>
<p class="intro">Pair each two computers once, and you're done.</p>
<div class="os-grid qs-grid">
<div>
<ol class="steps">
- <li>On one computer, open Devices and click Add device. It shows a 6-character code, valid for 5 minutes.</li>
- <li>On the other, click Add device too, switch to Enter a code and type it in.</li>
+ <li>On one computer, open Devices and click Add device. It shows a 6-character code, valid for 5 minutes, and this computer's address below it.</li>
+ <li>On the other, click Add device too, switch to Enter a code and type it in.<span class="aside">On a different subnet, or with Tailscale, click On a different subnet? and enter the other computer's address as well.</span></li>
<li>Both screens show the same two fingerprint lines. Check them character by character, then confirm.<span class="aside">This stops anyone in the middle from posing as your device. Don't skip it.</span></li>
</ol>
<figure class="figure-card qs-verify">
@@ -205,7 +188,7 @@
</figure>
</div>
<figure class="shot">
- <img src="../../assets/screenshots/en/pairing-dark.png" width="2112" height="1472" loading="lazy" alt="Add device: the pairing code K7MP2X, to be entered on the other device">
+ <img src="../../assets/screenshots/en/pairing-dark.png" width="2112" height="1472" loading="lazy" alt="Add device: the pairing code K7MP2X, with this computer&#x27;s address 192.168.1.20 below it">
</figure>
</div>
</div>
@@ -215,7 +198,7 @@
<div class="wrap">
<h2 class="display" id="closing-title">Now copy something.</h2>
<p class="lede">Copy text, an image or a file on one computer and press ⌘V or Ctrl+V on the other. Everything copied on either side is in the history.</p>
- <p class="note">Need help? <a href="../../en/server/#faq">LAN questions</a> · <a href="../../en/tailscale/#faq">Tailscale questions</a> · <a href="https://github.com/baiyuze/copysync/issues">Report an issue</a></p>
+ <p class="note">Need help? <a href="../../en/lan/#faq">Same network questions</a> · <a href="../../en/tailscale/#faq">Tailscale questions</a> · <a href="../../en/cloud/#faq">Public server questions</a> · <a href="https://github.com/baiyuze/copysync/issues">Report an issue</a></p>
</div>
</section>
</main>
diff --git a/docs/en/tailscale/index.html b/docs/en/tailscale/index.html
index 8d2a95c..3855bd2 100644
--- a/docs/en/tailscale/index.html
+++ b/docs/en/tailscale/index.html
@@ -3,8 +3,8 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
- <title>Use CopySync across networks with Tailscale: sync home and office without a public IP</title>
- <meta name="description" content="Run the server on an always-on computer at home and install Tailscale on each computer: they act as if they shared a LAN, so the clipboard syncs from the office or anywhere else. No public IP, no router settings. Step-by-step for Windows, Mac and Linux.">
+ <title>Use CopySync across networks with Tailscale: no server, home and office in sync</title>
+ <meta name="description" content="Install Tailscale on each computer under one account and enter the other computer&#x27;s Tailscale address when pairing: no public IP, no server and no computer that has to stay on. The clipboard syncs from the office or anywhere else.">
<link rel="canonical" href="https://baiyuze.github.io/copysync/en/tailscale/">
<link rel="alternate" hreflang="zh-CN" href="https://baiyuze.github.io/copysync/tailscale/">
<link rel="alternate" hreflang="en" href="https://baiyuze.github.io/copysync/en/tailscale/">
@@ -12,8 +12,8 @@
<meta name="theme-color" content="#141416">
<meta property="og:type" content="article">
<meta property="og:site_name" content="CopySync">
- <meta property="og:title" content="Use CopySync across networks with Tailscale: sync home and office without a public IP">
- <meta property="og:description" content="Run the server on an always-on computer at home and install Tailscale on each computer: they act as if they shared a LAN, so the clipboard syncs from the office or anywhere else. No public IP, no router settings. Step-by-step for Windows, Mac and Linux.">
+ <meta property="og:title" content="Use CopySync across networks with Tailscale: no server, home and office in sync">
+ <meta property="og:description" content="Install Tailscale on each computer under one account and enter the other computer&#x27;s Tailscale address when pairing: no public IP, no server and no computer that has to stay on. The clipboard syncs from the office or anywhere else.">
<meta property="og:url" content="https://baiyuze.github.io/copysync/en/tailscale/">
<meta property="og:image" content="https://baiyuze.github.io/copysync/assets/og-en.png">
<meta property="og:locale" content="en_US">
@@ -33,7 +33,7 @@
<a href="../../en/start/">Quick start</a>
<a class="wide" href="../../en/#how">How it works</a>
<a class="wide" href="../../en/#faq">FAQ</a>
- <a href="../../en/start/#server" aria-current="true">Self-host</a>
+ <a href="../../en/start/#server" aria-current="true">Ways to connect</a>
<a class="wide" href="https://github.com/baiyuze/copysync">GitHub</a>
<a href="../../tailscale/" hreflang="zh-CN" lang="zh-CN" data-lang="zh">简体中文</a>
<a href="../../ja/tailscale/" hreflang="ja" lang="ja" data-lang="ja">日本語</a>
@@ -44,15 +44,13 @@
<main id="main">
<section class="hero guide-hero">
<div class="wrap">
- <p class="crumb"><a href="../../en/">CopySync</a> / <a href="../../en/start/#server">Self-host</a></p>
+ <p class="crumb"><a href="../../en/">CopySync</a> / <a href="../../en/start/#server">Ways to connect</a></p>
<h1 class="display">Across networks with Tailscale</h1>
- <p class="lede">Sync between home and the office without a public IP. The server stays at home; with Tailscale on each computer, they act as if they shared a LAN. No router settings, no cloud server.</p>
+ <p class="lede">No public IP, and no wish to run a server? Install Tailscale on each computer and enter the other computer's Tailscale address when pairing. Syncs at home and at the office.</p>
<ol class="guide-toc">
<li><a href="#join">Install Tailscale</a></li>
<li><a href="#address">Find the address</a></li>
- <li><a href="#install">Install the server</a></li>
- <li><a href="#check">Check</a></li>
- <li><a href="#clients">Set up the apps</a></li>
+ <li><a href="#pair">Pair</a></li>
<li><a href="#faq">Questions</a></li>
</ol>
</div>
@@ -61,45 +59,30 @@
<section class="section" id="overview" aria-labelledby="overview-title">
<div class="wrap">
<h2 id="overview-title">As if on one LAN</h2>
- <p class="intro">Tailscale connects your devices into a private network: every device signed in to the same account gets a fixed address starting with 100, reachable from the others wherever they are. Install the CopySync server on that address and enter it in the apps; everything else works as on a LAN.</p>
+ <p class="intro">Tailscale connects your devices into a private network: every device signed in to the same account gets a fixed address starting with 100, reachable from the others wherever they are. CopySync remembers the other computer's address when you pair, and connects as if both were on one network.</p>
<figure class="diagram">
- <svg viewBox="0 0 960 460" role="img" aria-labelledby="ts-title ts-desc">
+ <svg viewBox="0 0 960 330" role="img" aria-labelledby="ts-title ts-desc">
<title id="ts-title">CopySync over Tailscale</title>
- <desc id="ts-desc">The server and a Windows PC are at home, a Mac is at the office. All three run Tailscale and each has an address starting with 100 on the same private network. Both computers connect to the server at 100.101.102.103 for signaling; copied content goes directly between them, and through the server's relay only if that fails.</desc>
- <rect class="d-ts" x="8" y="8" width="944" height="404" rx="22"/>
+ <desc id="ts-desc">A Mac at the office and a Windows PC at home both run Tailscale and each has an address starting with 100 on the same private network. Copied content goes directly between them; there is no server.</desc>
+ <rect class="d-ts" x="8" y="8" width="944" height="314" rx="22"/>
<text class="d-ts-label" x="32" y="42">Tailscale network: every device has a 100.x address</text>
- <rect class="d-box" x="340" y="64" width="280" height="122" rx="14"/>
- <text class="d-title" x="480" y="102" text-anchor="middle">Server</text>
- <text class="d-sub" x="480" y="130" text-anchor="middle">At home, always on</text>
- <text class="d-ip" x="480" y="164" text-anchor="middle">100.101.102.103</text>
- <path class="d-sig" d="M150 266V96H340"/>
- <path class="d-sig" d="M810 266V96H620"/>
- <path class="d-relay" d="M206 266V154H340"/>
- <path class="d-relay" d="M754 266V154H620"/>
- <text class="d-note" x="164" y="86">Signaling, TCP 8787</text>
- <text class="d-note" x="220" y="214">Relay, UDP 3478, if direct fails</text>
- <rect class="d-box" x="40" y="266" width="240" height="126" rx="14"/>
- <text class="d-title" x="160" y="306" text-anchor="middle">Mac</text>
- <text class="d-sub" x="160" y="334" text-anchor="middle">At the office</text>
- <text class="d-ip" x="160" y="368" text-anchor="middle">100.88.20.5</text>
- <rect class="d-box" x="680" y="266" width="240" height="126" rx="14"/>
- <text class="d-title" x="800" y="306" text-anchor="middle">Windows</text>
- <text class="d-sub" x="800" y="334" text-anchor="middle">At home</text>
- <text class="d-ip" x="800" y="368" text-anchor="middle">100.92.41.17</text>
- <path class="d-direct" d="M280 330H680"/>
- <text class="d-label" x="480" y="316" text-anchor="middle">Direct, encrypted twice</text>
- <text class="d-note" x="480" y="358" text-anchor="middle">Content stays between the two computers</text>
- <g class="d-legend" transform="translate(40 444)">
- <path class="d-direct" d="M0 0H28"/><text x="38" y="5">Data (direct)</text>
- <path class="d-relay" d="M250 0H278"/><text x="288" y="5">Data (relay, fallback)</text>
- <path class="d-sig" d="M560 0H588"/><text x="598" y="5">Signaling</text>
- </g>
+ <rect class="d-box" x="40" y="100" width="240" height="160" rx="14"/>
+ <text class="d-title" x="160" y="146" text-anchor="middle">Mac</text>
+ <text class="d-sub" x="160" y="174" text-anchor="middle">At the office</text>
+ <text class="d-ip" x="160" y="226" text-anchor="middle">100.88.20.5</text>
+ <rect class="d-box" x="680" y="100" width="240" height="160" rx="14"/>
+ <text class="d-title" x="800" y="146" text-anchor="middle">Windows</text>
+ <text class="d-sub" x="800" y="174" text-anchor="middle">At home</text>
+ <text class="d-ip" x="800" y="226" text-anchor="middle">100.92.41.17</text>
+ <path class="d-direct" d="M280 190H680"/>
+ <text class="d-label" x="480" y="176" text-anchor="middle">Direct, encrypted twice</text>
+ <text class="d-note" x="480" y="218" text-anchor="middle">Content stays between the two computers</text>
</svg>
</figure>
<ul class="points ports">
- <li><strong>The server stays at home</strong> on any always-on Windows, Mac or Linux computer, just like on a LAN.</li>
- <li><strong>Every computer runs Tailscale,</strong> signed in to the same account, including the server computer.</li>
- <li><strong>Encrypted twice.</strong> Inside Tailscale's WireGuard tunnel runs CopySync's own end-to-end encrypted connection. Neither Tailscale nor your server can see the content.</li>
+ <li><strong>No server,</strong> and no computer that has to stay on: two computers that are on and connected to Tailscale sync.</li>
+ <li><strong>Enter the address once.</strong> A Tailscale address doesn't change; you enter it when pairing and the two computers find each other from then on.</li>
+ <li><strong>Encrypted twice.</strong> Inside Tailscale's WireGuard tunnel runs CopySync's own end-to-end encrypted connection. Tailscale can't see the content.</li>
</ul>
</div>
</section>
@@ -108,10 +91,10 @@
<div class="wrap">
<h2 id="prepare-title">Before you start</h2>
<dl class="fallbacks">
- <div><dt>A computer that stays on</dt><dd>It runs the server, with the same requirements as <a href="../../en/server/#prepare">on a LAN</a>; sync pauses while it's off or asleep. Its Tailscale address doesn't change, so there's nothing to reserve in the router.</dd></div>
<div><dt>A Tailscale account</dt><dd>Free for personal use; sign in with Google, Microsoft, GitHub or Apple. Use the same account on every device.</dd></div>
- <div><dt>Tailscale on every computer</dt><dd>There are clients for Windows, macOS and Linux. Every computer that runs CopySync needs it, including one that never leaves home.</dd></div>
- <div><dt>ZeroTier works too</dt><dd>So does any tool that gives each device a fixed virtual address: install the server on that address and enter it in the apps. This guide uses Tailscale.</dd></div>
+ <div><dt>Tailscale on every computer</dt><dd>There are clients for Windows, macOS and Linux. Every computer that runs CopySync needs it, connected.</dd></div>
+ <div><dt>CopySync installed</dt><dd>The app on each computer with background sync on; see the <a href="../../en/start/#app">quick start</a>. Leave the server address empty.</dd></div>
+ <div><dt>ZeroTier works too</dt><dd>So does any tool that gives each device a fixed virtual address: enter that address when pairing. This guide uses Tailscale.</dd></div>
</dl>
</div>
</section>
@@ -120,7 +103,7 @@
<div class="wrap">
<p class="eyebrow">Step 1</p>
<h2 id="join-title">Install Tailscale on each computer</h2>
- <p class="intro">On the server computer and every computer you sync, install it and sign in to the same account.</p>
+ <p class="intro">On every computer you sync, install it and sign in to the same account.</p>
<div class="os-grid qs-grid">
<div class="os-steps">
<ol class="steps">
@@ -131,12 +114,11 @@
<a class="button" href="https://tailscale.com/download"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Download Tailscale</a>
</div>
<div class="os-figures">
- <figure class="browser listing" role="img" aria-label="The machine list in the Tailscale admin console (illustration): mac-mini is the server at 100.101.102.103, macbook-pro is 100.88.20.5 and home-pc is 100.92.41.17">
+ <figure class="browser listing" role="img" aria-label="The Tailscale admin console&#x27;s machine list (illustration): macbook-pro is 100.88.20.5 and home-pc is 100.92.41.17">
<div class="b-bar"><span class="t-lights" aria-hidden="true"><i></i><i></i><i></i></span><span class="b-url">login.tailscale.com/admin/machines</span></div>
<table>
<thead><tr><th scope="col">Machine</th><th scope="col">Tailscale address</th><th scope="col">OS</th></tr></thead>
<tbody>
- <tr class="hl"><td>mac-mini <em>Server</em></td><td>100.101.102.103</td><td>macOS</td></tr>
<tr><td>macbook-pro</td><td>100.88.20.5</td><td>macOS</td></tr>
<tr><td>home-pc</td><td>100.92.41.17</td><td>Windows</td></tr>
</tbody>
@@ -145,11 +127,11 @@
</div>
</div>
<div class="server-notes">
- <h3>One more thing on the server computer</h3>
+ <h3>Keep Tailscale connected</h3>
<ul class="points">
- <li><strong>Windows:</strong> right-click the Tailscale icon in the notification area and turn on Run unattended under Preferences. Otherwise Tailscale disconnects when you sign out, and computers elsewhere lose the server.</li>
- <li><strong>Mac:</strong> stay logged in, keep it awake, and make sure Tailscale opens at login. The CopySync server also only runs while you're logged in.</li>
- <li><strong>Turn off key expiry:</strong> by default Tailscale asks devices to sign in again every 180 days. On the Machines page of the admin console, open the menu at the end of the server's row and choose Disable key expiry.</li>
+ <li><strong>Windows:</strong> right-click the Tailscale icon in the notification area and check Run unattended under Preferences, so it stays connected after you sign out.</li>
+ <li><strong>Mac:</strong> make sure Tailscale opens at login.</li>
+ <li><strong>Disable key expiry:</strong> by default Tailscale asks devices to sign in again every 180 days. For a computer that rarely changes, open the menu at the end of its row on the Machines page and choose Disable key expiry.</li>
</ul>
</div>
</div>
@@ -158,197 +140,37 @@
<section class="section" id="address" aria-labelledby="address-title">
<div class="wrap">
<p class="eyebrow">Step 2</p>
- <h2 id="address-title">Find the server's Tailscale address</h2>
- <p class="intro">On the server computer, click the Tailscale icon in the menu bar (the notification area on Windows); the menu shows this device's address. Or run <code>tailscale ip -4</code> in a terminal.</p>
+ <h2 id="address-title">Find the other computer's Tailscale address</h2>
+ <p class="intro">On the computer you'll pair with, click the Tailscale icon (in the menu bar on a Mac, in the notification area on Windows) to see its address, or run <code>tailscale ip -4</code> in a terminal.</p>
<div class="address-term">
- <figure class="term" role="img" aria-label="tailscale ip -4 in a terminal prints this device&#x27;s Tailscale address, 100.101.102.103">
- <div class="t-bar mac"><span class="t-lights" aria-hidden="true"><i></i><i></i><i></i></span><span class="t-title">mac-mini — zsh</span></div>
-<pre class="t-body"><span class="t-prompt">%</span> tailscale ip -4
-<span class="t-url">100.101.102.103</span></pre>
+ <figure class="term" role="img" aria-label="Running tailscale ip -4 in PowerShell prints the computer&#x27;s Tailscale address, 100.92.41.17">
+ <div class="t-bar mac"><span class="t-lights" aria-hidden="true"><i></i><i></i><i></i></span><span class="t-title">home-pc — PowerShell</span></div>
+<pre class="t-body"><span class="t-prompt">&gt;</span> tailscale ip -4
+<span class="t-url">100.92.41.17</span></pre>
</figure>
</div>
- <p class="note">The steps below use <code>100.101.102.103</code>; use your own address.</p>
+ <p class="note">The steps below use <code>100.92.41.17</code>, the Windows PC at home. Use your own address.</p>
</div>
</section>
- <section class="section" id="install" aria-labelledby="install-title">
+ <section class="section" id="pair" aria-labelledby="pair-title">
<div class="wrap">
<p class="eyebrow">Step 3</p>
- <h2 id="install-title">Install the server on that address</h2>
- <p class="intro">The install scripts use the LAN address by default. Pass the Tailscale address instead so computers elsewhere can use the server's relay. Already installed it with the <a href="../../en/server/">LAN guide</a>? Run the script again with the address; your settings are kept.</p>
- <div class="os-tabs" data-tabs="os">
- <div class="tablist" role="tablist" aria-label="System of the server computer" hidden>
- <button type="button" role="tab" id="tab-windows" aria-controls="windows">Windows</button>
- <button type="button" role="tab" id="tab-macos" aria-controls="macos">macOS</button>
- <button type="button" role="tab" id="tab-linux" aria-controls="linux">Linux</button>
+ <h2 id="pair-title">Enter the address when pairing</h2>
+ <p class="intro">Just like pairing on one network, with one extra address.</p>
+ <div class="os-grid qs-grid">
+ <div>
+ <ol class="steps">
+ <li>On the Windows PC at home, open Devices, click Add device and note the 6-character code.</li>
+ <li>On the Mac at the office, click Add device, switch to Enter a code and type it in; then click On a different subnet?, enter <code>100.92.41.17</code> and click Continue.</li>
+ <li>Both screens show the same two fingerprint lines. Check them, then confirm. The two computers now sync wherever they are.</li>
+ </ol>
</div>
-
- <section class="os" id="windows" role="tabpanel" aria-labelledby="tab-windows">
- <h3 class="os-title"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="4" width="18" height="12" rx="1.5"/><path d="M9 20h6M12 16v4"/></svg>Windows</h3>
- <div class="os-grid">
- <div class="os-steps">
- <ol class="steps">
- <li>Download copysync-server-windows-amd64.zip and choose Extract All. If it's already installed, use the folder you extracted before.</li>
- <li>Open the extracted folder, type <code>cmd</code> in the address bar at the top and press Enter to open a Command Prompt.</li>
- <li>Run <code>install.cmd 100.101.102.103</code> with your address, and click Yes when User Account Control asks.</li>
- <li>Installation continues in a new window. The address at the end should be <code>ws://100.101.102.103:8787/signal</code>.</li>
- </ol>
- <a class="button" href="https://github.com/baiyuze/copysync/releases/latest/download/copysync-server-windows-amd64.zip"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Download the Windows server</a>
- <ul class="points">
- <li><strong>Firewall already allowed:</strong> the script's inbound rule applies to every network, Tailscale's adapter included.</li>
- <li>If you see "Windows protected your PC", click More info, then Run anyway.</li>
- </ul>
- </div>
- <div class="os-figures">
- <figure class="term" role="img" aria-label="A Command Prompt opened in the extracted folder runs install.cmd 100.101.102.103">
- <div class="t-bar win"><span class="t-tab"><svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M3 5.5 10.5 4.5v7H3zM11.5 4.4 21 3v8.5h-9.5zM3 12.5h7.5v7L3 18.5zM11.5 12.5H21V21l-9.5-1.4z"/></svg>Command Prompt</span><span class="t-ctl" aria-hidden="true"><i></i><i></i><i></i></span></div>
-<pre class="t-body"><span class="t-prompt">C:\Users\me\Downloads\copysync-server-windows-amd64&gt;</span>install.cmd 100.101.102.103</pre>
- </figure>
- <figure class="term" role="img" aria-label="The window after install.cmd finishes, ending with the address ws://100.101.102.103:8787/signal">
- <div class="t-bar win"><span class="t-tab"><svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M3 5.5 10.5 4.5v7H3zM11.5 4.4 21 3v8.5h-9.5zM3 12.5h7.5v7L3 18.5zM11.5 12.5H21V21l-9.5-1.4z"/></svg>Administrator: Windows PowerShell</span><span class="t-ctl" aria-hidden="true"><i></i><i></i><i></i></span></div>
-<pre class="t-body"><span class="t-step">&gt; Stopping the running version</span>
-<span class="t-step">&gt; Installing to C:\Program Files\CopySync Server</span>
-<span class="t-step">&gt; Registering the service CopySyncServer (relay address 100.101.102.103)</span>
-<span class="t-step">&gt; Allowing it through Windows Firewall</span>
-<span class="t-step">&gt; Starting</span>
- √ Running
-
-Installed: copysync-server 1.3.4. It runs as a Windows service and starts with Windows.
-In CopySync on each computer, set Settings &gt; Signaling server to:
-
- <span class="t-url">ws://100.101.102.103:8787/signal</span>
-
- Program C:\Program Files\CopySync Server
- Logs C:\ProgramData\CopySync Server\server.log
- Restart Restart-Service CopySyncServer (in an administrator PowerShell)
- Uninstall double-click uninstall.cmd</pre>
- </figure>
- </div>
- </div>
- </section>
-
- <section class="os" id="macos" role="tabpanel" aria-labelledby="tab-macos">
- <h3 class="os-title"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="4" y="5" width="16" height="11" rx="1.5"/><path d="M2 19h20"/></svg>macOS</h3>
- <div class="os-grid">
- <div class="os-steps">
- <ol class="steps">
- <li>Open Terminal and run these lines, with your address on the last one:
- <div class="code">
- <button class="copy" type="button" data-done="Copied">Copy</button>
-<pre><code>curl -LO https://github.com/baiyuze/copysync/releases/latest/download/copysync-server-macos.tar.gz
-tar xzf copysync-server-macos.tar.gz
-cd copysync-server-macos
-./install.sh 100.101.102.103</code></pre>
- </div></li>
- <li>The address at the end should be <code>ws://100.101.102.103:8787/signal</code>.</li>
- </ol>
- <ul class="points">
- <li>Already installed? Run <code>./install.sh 100.101.102.103</code> in the same folder; your settings are kept.</li>
- <li><strong>If the macOS firewall is on,</strong> the script ends with the command to allow copysync-server.</li>
- </ul>
- </div>
- <div class="os-figures">
- <figure class="term" role="img" aria-label="Output of ./install.sh 100.101.102.103 in Terminal, ending with the address ws://100.101.102.103:8787/signal">
- <div class="t-bar mac"><span class="t-lights" aria-hidden="true"><i></i><i></i><i></i></span><span class="t-title">copysync-server-macos — zsh</span></div>
-<pre class="t-body"><span class="t-prompt">%</span> ./install.sh 100.101.102.103
-<span class="t-step">▶ Stopping the running version</span>
-<span class="t-step">▶ Installing to /Users/me/Library/Application Support/CopySync Server</span>
-<span class="t-step">▶ Writing the LaunchAgent (relay address 100.101.102.103)</span>
-<span class="t-step">▶ Starting</span>
- ✓ Running
-
-Installed: copysync-server 1.3.4. It starts whenever you log in to this Mac.
-In CopySync on each computer, set Settings → Signaling server to:
-
- <span class="t-url">ws://100.101.102.103:8787/signal</span>
-
- Logs /Users/me/Library/Logs/CopySync/server.log
- Restart launchctl kickstart -k gui/501/com.copysync.server
- Uninstall ./install.sh uninstall</pre>
- </figure>
- </div>
- </div>
- </section>
-
- <section class="os" id="linux" role="tabpanel" aria-labelledby="tab-linux">
- <h3 class="os-title"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="4" y="4" width="16" height="7" rx="1.5"/><rect x="4" y="13" width="16" height="7" rx="1.5"/><path d="M8 7.5h.01M8 16.5h.01"/></svg>Linux</h3>
- <div class="os-grid">
- <div class="os-steps">
- <ol class="steps">
- <li>Run these lines, with your address on the last one:<span class="aside">On ARM, replace <code>amd64</code> with <code>arm64</code>.</span>
- <div class="code">
- <button class="copy" type="button" data-done="Copied">Copy</button>
-<pre><code>curl -LO https://github.com/baiyuze/copysync/releases/latest/download/copysync-server-linux-amd64.tar.gz
-tar xzf copysync-server-linux-amd64.tar.gz
-cd copysync-server-linux-amd64
-sudo ./install.sh 100.101.102.103</code></pre>
- </div></li>
- <li>The address at the end should be <code>ws://100.101.102.103:8787/signal</code>.</li>
- </ol>
- <div class="switch">
- <p><strong>Already installed?</strong> The Linux script leaves an existing config alone. Replace the old address in it with the Tailscale address (put your old address in place of <code>192.168.1.20</code>) and restart the service:</p>
- <div class="code">
- <button class="copy" type="button" data-done="Copied">Copy</button>
-<pre><code>sudo sed -i 's/192.168.1.20/100.101.102.103/g' /etc/copysync/server.env
-sudo systemctl restart copysync-server</code></pre>
- </div>
- </div>
- </div>
- <div class="os-figures">
- <figure class="term" role="img" aria-label="Output of sudo ./install.sh 100.101.102.103, ending with the address ws://100.101.102.103:8787/signal">
- <div class="t-bar mac"><span class="t-lights" aria-hidden="true"><i></i><i></i><i></i></span><span class="t-title">ssh 100.101.102.103</span></div>
-<pre class="t-body"><span class="t-prompt">$</span> sudo ./install.sh 100.101.102.103
-<span class="t-step">▶ Installing the binary to /usr/local/bin</span>
-<span class="t-step">▶ Writing the systemd unit</span>
-<span class="t-step">▶ Writing /etc/copysync/server.env (relay address 100.101.102.103)</span>
-<span class="t-step">▶ Starting</span>
- ✓ Running
-
-Installed: copysync-server 1.3.4
-In CopySync on each computer, set Settings → Signaling server to:
-
- <span class="t-url">ws://100.101.102.103:8787/signal</span>
-
- Config /etc/copysync/server.env
- Logs journalctl -u copysync-server -f
- Restart systemctl restart copysync-server
- Uninstall sudo ./install.sh uninstall
-
-Open in your firewall: TCP 8787 (signaling), UDP 3478 (STUN and TURN), UDP 32768-60999 (relay ports, assigned by the OS)</pre>
- </figure>
- </div>
- </div>
- </section>
+ <figure class="shot">
+ <img src="../../assets/screenshots/en/pairing-join-ts-dark.png" width="2112" height="1472" loading="lazy" alt="Enter a code: the code K7MP2X, with the Tailscale address 100.92.41.17 in the address field">
+ </figure>
</div>
- </div>
- </section>
-
- <section class="section" id="check" aria-labelledby="check-title">
- <div class="wrap">
- <p class="eyebrow">Step 4</p>
- <h2 id="check-title">Check from outside</h2>
- <p class="intro">On a computer outside your home network, or a laptop on your phone's hotspot, make sure Tailscale is connected and open <code>http://100.101.102.103:8787/healthz</code> in a browser. If you see this line, the server is reachable from outside.</p>
- <figure class="browser" role="img" aria-label="A browser showing http://100.101.102.103:8787/healthz, with the server&#x27;s status ok and its version">
- <div class="b-bar"><span class="t-lights" aria-hidden="true"><i></i><i></i><i></i></span><span class="b-url">http://100.101.102.103:8787/healthz</span></div>
- <pre class="b-body">{"status":"ok","version":"1.3.4"}</pre>
- </figure>
- <p class="note">If it doesn't load, see the <a href="#faq">questions</a> below.</p>
- </div>
- </section>
-
- <section class="section" id="clients" aria-labelledby="clients-title">
- <div class="wrap">
- <p class="eyebrow">Step 5</p>
- <h2 id="clients-title">Enter the address on each computer</h2>
- <ol class="flow">
- <li><h3>Open Settings</h3><p>Open CopySync on each computer, including the one running the server, and go to Settings.</p></li>
- <li><h3>Enter the Tailscale address</h3><p>Under Signaling server, enter <code>ws://100.101.102.103:8787/signal</code> with your address and press Return or Enter.</p></li>
- <li><h3>Check the status</h3><p>When Connection shows a green Connected, you're set. If you haven't paired yet, pair under Devices.</p></li>
- </ol>
- <figure class="shot">
- <img src="../../assets/screenshots/en/settings-tailscale-dark.png" width="2112" height="1472" loading="lazy" alt="CopySync Settings: the signaling server is ws://100.101.102.103:8787/signal and the connection status shows Connected">
- </figure>
- <p class="note">Use the Tailscale address on your home computers too, not the LAN address, so nothing changes when a computer leaves the house. When they're all at home, the data still stays on your home network.</p>
+ <p class="note">When both computers are at home, CopySync also finds the other one on the LAN directly, so data takes no detour.</p>
</div>
</section>
@@ -361,27 +183,27 @@ Open in your firewall: TCP 8787 (signaling), UDP 3478 (STUN and TURN), UDP 32768
<div class="answer"><p>Direct in CopySync means the two computers connect directly on the Tailscale network. When Tailscale can't connect them peer to peer, it relays through its DERP servers, which can be far away.</p><p>Run <code>tailscale ping other-address</code> in a terminal: via DERP means Tailscale is relaying; via an IP and port means it's peer to peer. Office and campus networks relay more often; you can run your own DERP server or try another mesh VPN.</p></div>
</details>
<details>
- <summary>The status stays at Not connected</summary>
- <div class="answer"><p>First make sure Tailscale is connected on that computer, then open <code>http://server-tailscale-address:8787/healthz</code> in a browser.</p><p>If it doesn't load, check whether the server computer is asleep, whether Tailscale is online there (Run unattended on Windows, staying logged in on a Mac), whether the server still uses its LAN address, and whether a firewall on a Mac or Linux server blocks it.</p></div>
+ <summary>Pairing can't find the other computer</summary>
+ <div class="answer"><p>First make sure Tailscale is connected on both: run <code>tailscale ping other-address</code> and try again once it answers.</p><p>If ping works but pairing doesn't, the other computer's firewall is likely blocking it. On Windows, click Allow under Settings → Local network in CopySync; on a Mac, turn on CopySync Daemon under System Settings → Privacy &amp; Security → Local Network.</p></div>
</details>
<details>
<summary>Does every computer need Tailscale?</summary>
- <div class="answer"><p>Yes. A computer without it can't reach the 100.x addresses, and computers elsewhere can't reach it. That includes one that never leaves home.</p></div>
+ <div class="answer"><p>Yes, a computer without it can't reach the 100.x addresses. Computers on the same network don't need it; see the <a href="../../en/lan/">same network guide</a>.</p></div>
</details>
<details>
- <summary>I already followed the LAN guide. Start over?</summary>
- <div class="answer"><p>No. Run the install script again with the Tailscale address (on Linux, edit the config), then change the server address on each computer to the Tailscale one. Paired devices stay paired.</p></div>
+ <summary>I set up a server at home with the old guide. Do I still need it?</summary>
+ <div class="answer"><p>No. Clear the server address in Settings on each computer and uninstall the server at home; paired devices stay paired. Keeping it doesn't hurt either: a server and Tailscale work together.</p></div>
</details>
<details>
<summary>Can Tailscale see what I copy?</summary>
<div class="answer"><p>No. Tailscale connections are end-to-end encrypted with WireGuard, and inside runs CopySync's own DTLS-encrypted connection; only your two computers can open either layer. Tailscale's servers only exchange device keys and addresses, and its relays forward encrypted packets.</p></div>
</details>
<details>
- <summary>Will the server's Tailscale address change?</summary>
- <div class="answer"><p>Usually not. The address belongs to the device and survives restarts and network changes; it only changes if you remove the device from Tailscale and add it again.</p></div>
+ <summary>Will a Tailscale address change?</summary>
+ <div class="answer"><p>Usually not. The address belongs to the device and survives restarts and network changes; it only changes if you remove the device from Tailscale and add it again. If it does, enter it once more under Devices.</p></div>
</details>
<details>
- <summary>I have a public IP. Do I need Tailscale?</summary>
+ <summary>I have a public server. Do I need Tailscale?</summary>
<div class="answer"><p>No. Run the server on the machine with the public IP and enter that address on every computer; see the <a href="../../en/cloud/">public server guide</a>.</p></div>
</details>
</div>
@@ -390,13 +212,13 @@ Open in your firewall: TCP 8787 (signaling), UDP 3478 (STUN and TURN), UDP 32768
<section class="closing" aria-labelledby="closing-title">
<div class="wrap">
- <h2 class="display" id="closing-title">The server stays home.<br>Your clipboard comes with you.</h2>
+ <h2 class="display" id="closing-title">No server.<br>Your clipboard comes with you.</h2>
<div class="cta">
<a class="button" href="https://github.com/baiyuze/copysync/releases/latest/download/CopySync.dmg"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Download for Mac</a>
<a class="button quiet" href="https://github.com/baiyuze/copysync/releases/latest/download/CopySync-Setup.exe"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Download for Windows</a>
</div>
<p class="note">Version 1.3.4, free and open source. macOS 13 or later, Intel and Apple silicon; Windows 10 and 11.</p>
- <a class="source" href="../../en/server/">Back to the LAN guide</a>
+ <a class="source" href="../../en/lan/">Back to the same network guide</a>
</div>
</section>
</main>
diff --git a/docs/index.html b/docs/index.html
index 9bdcf93..64da64a 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>CopySync:在 Mac 与 Windows 之间同步剪贴板与文件,跨账号跨网络</title>
- <meta name="description" content="CopySync 让你在一台电脑上复制,另一台上直接粘贴,Mac 与 Windows 互通。支持文本、图片、文件和文件夹,不要求同一个账号,跨网络可用。设备间 P2P 直连、端到端加密,服务器自己部署且看不到内容。免费开源。">
+ <meta name="description" content="CopySync 让你在一台电脑上复制,另一台上直接粘贴,Mac 与 Windows 互通。支持文本、图片、文件和文件夹,不要求同一个账号。同一个网络里装好就能用,不需要服务器;跨网络时用自己部署的服务器或 Tailscale。设备间 P2P 直连、端到端加密。免费开源。">
<link rel="canonical" href="https://baiyuze.github.io/copysync/">
<link rel="alternate" hreflang="zh-CN" href="https://baiyuze.github.io/copysync/">
<link rel="alternate" hreflang="en" href="https://baiyuze.github.io/copysync/en/">
@@ -14,7 +14,7 @@
<meta property="og:type" content="website">
<meta property="og:site_name" content="CopySync">
<meta property="og:title" content="CopySync:在这台电脑复制,到那台电脑粘贴">
- <meta property="og:description" content="Mac 与 Windows 互通。文本、图片、文件、文件夹,跨账号、跨网络,P2P 直连、端到端加密,服务器自己部署。免费开源。">
+ <meta property="og:description" content="Mac 与 Windows 互通。文本、图片、文件、文件夹,跨账号、跨网络,P2P 直连、端到端加密,同一网络里不需要服务器。免费开源。">
<meta property="og:url" content="https://baiyuze.github.io/copysync/">
<meta property="og:image" content="https://baiyuze.github.io/copysync/assets/og.png">
<meta property="og:image:width" content="1200">
@@ -55,7 +55,7 @@
"@type": "SoftwareApplication",
"@id": "https://baiyuze.github.io/copysync/#app",
"name": "CopySync",
- "description": "在 Mac 与 Windows 电脑之间同步剪贴板与文件的开源工具。复制文本、图片、文件或文件夹后,另一台电脑可直接粘贴。设备间 WebRTC 直连、DTLS 端到端加密,打不通时经用户自建服务器的 TURN 中转。",
+ "description": "在 Mac 与 Windows 电脑之间同步剪贴板与文件的开源工具。复制文本、图片、文件或文件夹后,另一台电脑可直接粘贴。同一网络里不需要服务器;设备间 WebRTC 直连、DTLS 端到端加密,跨网络打不通时经用户自建服务器的 TURN 中转。",
"applicationCategory": "UtilitiesApplication",
"operatingSystem": "macOS 13 及以上(Intel 与 Apple 芯片);Windows 10、Windows 11(x64)",
"softwareVersion": "1.3.4",
@@ -75,6 +75,7 @@
"featureList": [
"同步纯文本、带格式的文本、图片、文件与文件夹",
"Mac 与 Windows 互通,不要求同一个账号,跨网络可用",
+ "同一网络里不需要服务器,靠 mDNS 自动发现",
"WebRTC 直连,打不通时自动经 TURN 中转",
"DTLS 端到端加密,配对时人工核对安全指纹",
"50 MB 以内复制即推送,更大的文件按需拉取",
@@ -103,7 +104,7 @@
"name": "和 macOS 自带的「通用剪贴板」有什么区别?",
"acceptedAnswer": {
"@type": "Answer",
- "text": "通用剪贴板要求两台设备登录同一个 Apple ID、开着蓝牙和 Wi‑Fi,并且离得近,也只能在苹果设备之间用。CopySync 只要求两台电脑都能连上你部署的服务器:不同 Apple ID、一台在家一台在公司、一台 Mac 一台 Windows,都可以。另外它有复制记录,大文件也可以按需拉取。 如果你的两台 Mac 是同一个 Apple ID、总在一起、主要复制文字,系统自带的已经够用了。"
+ "text": "通用剪贴板要求两台设备登录同一个 Apple ID、开着蓝牙和 Wi‑Fi,并且离得近,也只能在苹果设备之间用。CopySync 在同一个网络里装好就能用;跨网络时,两台电脑能连上你部署的服务器、或者都装了 Tailscale 就行:不同 Apple ID、一台在家一台在公司、一台 Mac 一台 Windows,都可以。另外它有复制记录,大文件也可以按需拉取。 如果你的两台 Mac 是同一个 Apple ID、总在一起、主要复制文字,系统自带的已经够用了。"
}
},
{
@@ -127,7 +128,7 @@
"name": "必须自己准备服务器吗?",
"acceptedAnswer": {
"@type": "Answer",
- "text": "是的,CopySync 不提供公共服务器,这样就不会有任何人的数据经过别人的机器。有三种部署方式:公网服务器,最低配置的云主机就够,在哪儿都能同步;局域网,电脑都在同一个网络里时,放在其中一台常开的电脑上;局域网 + Tailscale,要跨网络又没有公网服务器时用。"
+ "text": "不一定。两台电脑在同一个网络里时,装好 App 直接配对就行,不需要服务器。 跨网络时有两种做法:公网服务器,最低配置的云主机就够,在哪儿都能同步;Tailscale,每台电脑装上它,配对时输入对方的 Tailscale 地址,不需要服务器。CopySync 不提供公共服务器,所以不会有任何人的数据经过别人的机器。"
}
},
{
@@ -135,7 +136,15 @@
"name": "家里没有公网 IP,能在家和公司之间同步吗?",
"acceptedAnswer": {
"@type": "Answer",
- "text": "能,有两种做法。有一台公网服务器的话,把服务器部署在上面,家里和公司的电脑都直接连它,见公网服务器部署。没有的话,服务器放在家里一台常开的电脑上,每台电脑装上 Tailscale、登录同一个账号,服务器地址填它的 Tailscale 地址,见局域网 + Tailscale。"
+ "text": "能,有两种做法。有一台公网服务器的话,把服务器部署在上面,家里和公司的电脑都直接连它,见公网服务器部署。没有的话,每台电脑装上 Tailscale、登录同一个账号,配对时输入对方的 Tailscale 地址,见Tailscale 教程。"
+ }
+ },
+ {
+ "@type": "Question",
+ "name": "在同一个网络里,为什么找不到另一台?",
+ "acceptedAnswer": {
+ "@type": "Answer",
+ "text": "先看两台是不是真的在同一个网段:公司里有线和无线、访客网络、开了「AP 隔离」的 Wi‑Fi 常常不互通,局域网发现过不去。这时在输入配对码的那台点「不在同一网段?」,填上另一台配对码下面显示的地址。 Windows 上,第一次运行时防火墙会询问,要选允许;点过取消的话,在「设置 → 局域网」里点「放行」。Mac 上,要在「系统设置 → 隐私与安全性 → 本地网络」里打开 CopySync Daemon。更多见同一网络教程。"
}
},
{
@@ -186,7 +195,7 @@
<a href="start/">快速开始</a>
<a class="wide" href="#how">工作原理</a>
<a class="wide" href="#faq">常见问题</a>
- <a href="start/#server">部署服务器</a>
+ <a href="start/#server">连接方式</a>
<a class="wide" href="https://github.com/baiyuze/copysync">GitHub</a>
<a href="en/" hreflang="en" lang="en" data-lang="en">English</a>
<a href="ja/" hreflang="ja" lang="ja" data-lang="ja">日本語</a>
@@ -198,7 +207,7 @@
<section class="hero">
<div class="wrap">
<h1 class="display">在这台电脑复制,<br>到那台电脑粘贴。</h1>
- <p class="lede">Mac 与 Windows 互通。文本、图片、文件、整个文件夹都可以,不要求同一个账号,也不要求在同一个网络。数据在你的设备之间直接传输,经过你自己的服务器时也是加密的。</p>
+ <p class="lede">Mac 与 Windows 互通。文本、图片、文件、整个文件夹都可以,不要求同一个账号。同一个网络里装好就能用,不需要服务器;跨网络也可以。数据在你的设备之间直接传输,端到端加密。</p>
<div class="cta">
<a class="button" href="https://github.com/baiyuze/copysync/releases/latest/download/CopySync.dmg"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>下载 Mac 版</a>
<a class="button quiet" href="https://github.com/baiyuze/copysync/releases/latest/download/CopySync-Setup.exe"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>下载 Windows 版</a>
@@ -234,9 +243,16 @@
<section class="section" id="deploy" aria-labelledby="deploy-title">
<div class="wrap">
- <h2 id="deploy-title">服务器放在哪</h2>
- <p class="intro">两台电脑靠一台服务器找到彼此,复制的内容不会存在上面。CopySync 不提供公共服务器,有三种部署方式,按你的情况选一种。</p>
+ <h2 id="deploy-title">两台电脑怎么连起来</h2>
+ <p class="intro">在同一个网络里,装好 App 就能直接配对,不需要服务器。跨网络时,两台电脑要靠服务器或 Tailscale 找到彼此,复制的内容不会存在上面。按你的情况选一种。</p>
<div class="paths">
+ <a class="path" href="lan/">
+ <svg viewBox="0 0 240 112" aria-hidden="true"><rect class="p-net" x="6" y="6" width="228" height="100" rx="14"/><path class="p-data" d="M82 52h76"/><rect class="p-dev" x="39" y="40" width="38" height="24" rx="3"/><path class="p-dev" d="M34 69h48"/><rect class="p-dev" x="163" y="40" width="38" height="24" rx="3"/><path class="p-dev" d="M158 69h48"/></svg>
+ <span class="path-when">什么都不用部署</span>
+ <h3>同一网络</h3>
+ <p>家里或办公室,连着同一个路由器。两台电脑装好 App,输入配对码就能同步,不需要服务器,也不需要常开的电脑。</p>
+ <span class="path-go">同一网络教程 →</span>
+ </a>
<a class="path" href="cloud/">
<svg viewBox="0 0 240 112" aria-hidden="true"><rect class="p-dev" x="98" y="8" width="44" height="12" rx="3"/><rect class="p-dev" x="98" y="23" width="44" height="12" rx="3"/><rect class="p-net" x="6" y="50" width="100" height="56" rx="10"/><rect class="p-net" x="134" y="50" width="100" height="56" rx="10"/><path class="p-sig" d="M56 64V22h42M184 64V22h-42"/><path class="p-data" d="M80 80h80"/><rect class="p-dev" x="37" y="64" width="38" height="24" rx="3"/><path class="p-dev" d="M32 93h48"/><rect class="p-dev" x="165" y="64" width="38" height="24" rx="3"/><path class="p-dev" d="M160 93h48"/></svg>
<span class="path-when">在哪儿都能同步</span>
@@ -244,18 +260,11 @@
<p>一台有公网 IP 的 Linux 云主机,最低配置就够。每台电脑直接连它,在家、在公司、在外面都能用,不用另装软件。</p>
<span class="path-go">公网服务器部署教程 →</span>
</a>
- <a class="path" href="server/">
- <svg viewBox="0 0 240 112" aria-hidden="true"><rect class="p-net" x="6" y="6" width="228" height="100" rx="14"/><rect class="p-dev" x="98" y="16" width="44" height="12" rx="3"/><rect class="p-dev" x="98" y="31" width="44" height="12" rx="3"/><path class="p-sig" d="M58 66V30h40M182 66V30h-40"/><path class="p-data" d="M82 82h76"/><rect class="p-dev" x="39" y="66" width="38" height="24" rx="3"/><path class="p-dev" d="M34 95h48"/><rect class="p-dev" x="163" y="66" width="38" height="24" rx="3"/><path class="p-dev" d="M158 95h48"/></svg>
- <span class="path-when">电脑都在同一个网络里</span>
- <h3>局域网</h3>
- <p>家里或办公室,连着同一个 Wi‑Fi 或有线网络。服务器装在其中一台常开的 Windows、Mac 或 Linux 电脑上,运行一个脚本,不花钱。</p>
- <span class="path-go">局域网部署教程 →</span>
- </a>
<a class="path" href="tailscale/">
- <svg viewBox="0 0 240 112" aria-hidden="true"><rect class="p-ts" x="2" y="2" width="236" height="108" rx="16"/><rect class="p-net" x="12" y="12" width="98" height="88" rx="10"/><rect class="p-net" x="130" y="12" width="98" height="88" rx="10"/><rect class="p-dev" x="39" y="20" width="44" height="12" rx="3"/><rect class="p-dev" x="39" y="35" width="44" height="12" rx="3"/><path class="p-sig" d="M180 64V54H61v-7M61 64V54"/><path class="p-data" d="M85 80h71"/><rect class="p-dev" x="42" y="64" width="38" height="24" rx="3"/><path class="p-dev" d="M37 93h48"/><rect class="p-dev" x="161" y="64" width="38" height="24" rx="3"/><path class="p-dev" d="M156 93h48"/></svg>
- <span class="path-when">要跨网络,没有公网服务器</span>
- <h3>局域网 + Tailscale</h3>
- <p>服务器放在家里一台常开的电脑上,每台电脑装上 Tailscale、登录同一个账号,就像在同一个局域网里。</p>
+ <svg viewBox="0 0 240 112" aria-hidden="true"><rect class="p-ts" x="2" y="2" width="236" height="108" rx="16"/><rect class="p-net" x="12" y="12" width="98" height="88" rx="10"/><rect class="p-net" x="130" y="12" width="98" height="88" rx="10"/><path class="p-data" d="M85 52h71"/><rect class="p-dev" x="42" y="40" width="38" height="24" rx="3"/><path class="p-dev" d="M37 69h48"/><rect class="p-dev" x="161" y="40" width="38" height="24" rx="3"/><path class="p-dev" d="M156 69h48"/></svg>
+ <span class="path-when">跨网络,不用服务器</span>
+ <h3>Tailscale</h3>
+ <p>每台电脑装上 Tailscale、登录同一个账号,配对时输入对方的 Tailscale 地址。在家、在公司都能同步,不需要服务器和常开的电脑。</p>
<span class="path-go">Tailscale 教程 →</span>
</a>
</div>
@@ -310,7 +319,7 @@
<section class="section" id="how" aria-labelledby="how-title">
<div class="wrap">
<h2 id="how-title">工作原理</h2>
- <p class="intro">两台电脑之间直接建立加密连接。你的服务器只负责让它们找到彼此,打不通直连的时候再帮忙转发。</p>
+ <p class="intro">两台电脑之间直接建立加密连接。同一个网络里,它们自己就能找到彼此;跨网络时,你的服务器负责牵线,打不通直连的时候再帮忙转发。下图是跨网络的情形。</p>
<figure class="diagram">
<svg viewBox="0 0 960 400" role="img" aria-labelledby="diagram-title diagram-desc">
<title id="diagram-title">CopySync 的连接方式</title>
@@ -382,6 +391,11 @@
<tr><td>一开始打不通,之后网络恢复</td><td>先中转,随后直连</td></tr>
<tr><td>公司路由器会为外来的包占住端口</td><td>直连</td></tr>
<tr><td>家用路由器会为外来的包占住端口</td><td>先中转,重试一次后直连</td></tr>
+ <tr><td>没有服务器,同一网段,靠 mDNS 发现</td><td>直连</td></tr>
+ <tr><td>没有服务器,两个网段,一边记得对方地址</td><td>直连</td></tr>
+ <tr><td>没有服务器,两台都挡入站连接,都记得地址</td><td>直连</td></tr>
+ <tr><td>没有服务器,两台都挡入站连接,只有一边记得</td><td>连不上(已知限制)</td></tr>
+ <tr><td>没有服务器,两个网段之间被隔离</td><td>连不上</td></tr>
</tbody>
</table>
</div>
@@ -401,6 +415,7 @@
<li><strong>配对时由你核对安全指纹。</strong>两块屏幕会显示同样的两行:双方各自公钥的指纹。服务器有能力替换转发中的公钥,但替换之后两块屏幕就对不上了,这一步就是防中间人的闸门。</li>
<li><strong>之后的每条消息都带签名,</strong>服务器无法冒充你的设备。直连通道的证书在握手后还会再核对一次,不一致立即断开。</li>
<li><strong>中转也只是转发密文。</strong>TURN 转发的是加密后的数据包,中转凭证按设备单独签发,12 小时后过期。</li>
+ <li><strong>局域网里也一样。</strong>设备在局域网里广播的只是一个每天都变的匿名标识,看不出是谁的电脑;配对同样要核对指纹,之后的消息同样带签名。</li>
</ul>
<figure class="figure-card">
<img src="assets/screenshots/card-verify-dark.png" width="1120" height="800" loading="lazy" alt="配对时的「核对安全指纹」对话框,显示 R8NF-2WTC-QL5J,要求与另一台电脑上显示的完全一致">
@@ -414,11 +429,13 @@
<h2 id="fallback-title">出问题的时候会发生什么</h2>
<p class="intro">每个人的网络环境都不一样。下面这些情况都考虑过,也都有对应的测试。</p>
<dl class="fallbacks">
+ <div><dt>同一网络里找不到对方</dt><dd>不同网段、访客网络、开了 AP 隔离的 Wi‑Fi 会挡住局域网发现。配对时输入对方配对码下面显示的地址就行;之后地址会被记住,两边都换了地址时,在设备列表里给它重新输入一次。</dd></div>
+ <div><dt>系统拦着局域网</dt><dd>macOS 15 起,后台服务连接局域网里的设备要你允许;Windows 第一次运行时会问防火墙。没放行时 App 会提示,并给出直达的按钮。</dd></div>
<div><dt>两台电脑打不通直连</dt><dd>常见于对称 NAT 和公司防火墙。自动改走你服务器上的 TURN 中转,内容依然加密,设备列表里显示「中转」。</dd></div>
<div><dt>公共 STUN 服务器连不上</dt><dd>国内访问公共 STUN 时通时断。服务器自带 STUN,客户端优先用它。</dd></div>
<div><dt>先连上了中转</dt><dd>中转握手快,有时会抢在直连之前。连上之后,发起连接的一方会在空闲时再打一次洞,打通就换成直连;正在传文件时不打扰。</dd></div>
<div><dt>对方睡眠、断网或重启</dt><dd>连接悄悄断了也能发现,立即关闭重连。这期间复制的内容会记下来,连上后补发到对方的复制记录里,但不会覆盖对方此刻剪贴板里的内容。</dd></div>
- <div><dt>服务器断开</dt><dd>自动重连,间隔从 1 秒开始翻倍、最长 30 秒,并带随机抖动,避免一群设备同时重连。界面实时显示连接状态。</dd></div>
+ <div><dt>服务器断开</dt><dd>自动重连,间隔从 1 秒开始翻倍、最长 30 秒,并带随机抖动,避免一群设备同时重连。同一网络里的设备不受影响,照常同步。</dd></div>
<div><dt>文件太大</dt><dd>超过上限的只同步一条记录,需要时再拉取。拉取时源文件已经被删,会明确告诉你,而不是不明不白地失败。</dd></div>
<div><dt>粘贴到只认纯文本的地方</dt><dd>从网页复制的带格式文字会同时写入 HTML 和纯文本两份,粘贴到哪里都不会冒出标签。</dd></div>
<div><dt>文件名在 Windows 上不合法</dt><dd>Mac 上可以用的冒号、问号等字符,收到时换成对应的全角字符,名字照样看得懂;只差大小写的两个文件也不会互相覆盖。</dd></div>
@@ -433,15 +450,15 @@
<section class="section" id="install" aria-labelledby="install-title">
<div class="wrap">
<h2 id="install-title">安装</h2>
- <p class="intro">每台电脑装一个 App,再准备一台两边都能访问到的服务器。第一次装可以跟着<a href="start/">快速开始</a>。</p>
+ <p class="intro">每台电脑装一个 App。同一个网络里装好就能配对;跨网络时,再选一种方式让两台电脑找到彼此。第一次装可以跟着<a href="start/">快速开始</a>。</p>
<div class="install">
<div>
<h3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="4" y="5" width="16" height="11" rx="1.5"/><path d="M2 19h20"/></svg>Mac</h3>
<ol>
<li>下载 CopySync.dmg,打开后把 CopySync 拖进「应用程序」。</li>
<li>从「应用程序」里打开。<span class="aside">第一次会提示「无法验证开发者」:CopySync 还没有经过 Apple 公证。到「系统设置 → 隐私与安全性」,点页面下方的「仍要打开」,只需要这一次。</span></li>
- <li>点「启用后台同步」,在「设置」里填入服务器地址 <code>ws://服务器地址:8787/signal</code>,按回车。</li>
- <li>系统询问是否允许读取剪贴板时,选择允许。</li>
+ <li>点「启用后台同步」。系统询问是否允许读取剪贴板、能否查找本地网络上的设备时,都选择允许。</li>
+ <li>跨网络同步时,在「设置」里填入服务器地址 <code>ws://服务器地址:8787/signal</code>,按回车;同一个网络里不用填。</li>
</ol>
<a class="button" href="https://github.com/baiyuze/copysync/releases/latest/download/CopySync.dmg"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>下载 Mac 版</a>
</div>
@@ -449,23 +466,23 @@
<h3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="4" width="18" height="12" rx="1.5"/><path d="M9 20h6M12 16v4"/></svg>Windows</h3>
<ol>
<li>运行 CopySync-Setup.exe。装在当前用户目录下,不需要管理员权限。<span class="aside">CopySync 还没有代码签名,Windows 会提示「Windows 已保护你的电脑」:点「更多信息」,再点「仍要运行」。不想运行安装程序的话,可以下载<a href="https://github.com/baiyuze/copysync/releases/latest/download/CopySync-windows-x64.zip">便携版</a>。</span></li>
- <li>打开 CopySync,点「启用后台同步」。关掉窗口后它在右下角的托盘里继续运行。</li>
- <li>在「设置」里填入服务器地址,按回车。防火墙询问时选择允许。</li>
+ <li>打开 CopySync,点「启用后台同步」。关掉窗口后它在右下角的托盘里继续运行。防火墙询问时选择允许。</li>
+ <li>跨网络同步时,在「设置」里填入服务器地址,按回车;同一个网络里不用填。</li>
</ol>
<a class="button" href="https://github.com/baiyuze/copysync/releases/latest/download/CopySync-Setup.exe"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>下载 Windows 版</a>
</div>
<div>
- <h3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="4" y="4" width="16" height="7" rx="1.5"/><rect x="4" y="13" width="16" height="7" rx="1.5"/><path d="M8 7.5h.01M8 16.5h.01"/></svg>服务器</h3>
- <p class="small">三种部署方式,按你的情况选一种,每种都有图文教程:</p>
+ <h3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="4" y="4" width="16" height="7" rx="1.5"/><rect x="4" y="13" width="16" height="7" rx="1.5"/><path d="M8 7.5h.01M8 16.5h.01"/></svg>连接方式</h3>
+ <p class="small">同一个网络里不需要服务器。三种方式按你的情况选一种,每种都有图文教程:</p>
<ul class="opts">
+ <li><a href="lan/">同一网络</a><span>什么都不用部署</span></li>
<li><a href="cloud/">公网服务器</a><span>在哪儿都能同步</span></li>
- <li><a href="server/">局域网</a><span>电脑都在同一个网络里</span></li>
- <li><a href="tailscale/">局域网 + Tailscale</a><span>要跨网络,没有公网服务器</span></li>
+ <li><a href="tailscale/">Tailscale</a><span>跨网络,不用服务器</span></li>
</ul>
<a class="button quiet" href="start/#server">对比三种方式</a>
</div>
</div>
- <p class="pairing"><strong>配对:</strong>一台点「设备 → 添加设备」生成 6 位配对码,另一台输入它;两块屏幕上的两行安全指纹完全一致后确认。Mac 与 Windows 之间、两台 Windows 之间都一样。</p>
+ <p class="pairing"><strong>配对:</strong>一台点「设备 → 添加设备」生成 6 位配对码,另一台输入它;两块屏幕上的两行安全指纹完全一致后确认。不在同一网段时,输入配对码的同时输入它下面显示的地址。Mac 与 Windows 之间、两台 Windows 之间都一样。</p>
</div>
</section>
@@ -478,10 +495,10 @@
<tr><th scope="row">版本</th><td>1.3.4,<time datetime="2026-10-11">2026 年 10 月 11 日</time>发布</td></tr>
<tr><th scope="row">Mac 客户端</th><td>macOS 13 Ventura 及以上;Intel 与 Apple 芯片通用,不需要 Rosetta;安装包约 47 MB</td></tr>
<tr><th scope="row">Windows 客户端</th><td>Windows 10(21H2 及以上)与 Windows 11,x64;按用户安装,不需要管理员权限;安装包约 23 MB</td></tr>
- <tr><th scope="row">服务器</th><td>Linux x86_64 或 ARM64(systemd 或 Docker)、macOS(Intel 与 Apple 芯片)、Windows 10 与 11 x64(系统服务);约 15 MB 内存</td></tr>
+ <tr><th scope="row">服务器</th><td>可选,只在跨网络时需要。Linux x86_64 或 ARM64(systemd 或 Docker)、macOS(Intel 与 Apple 芯片)、Windows 10 与 11 x64(系统服务);约 15 MB 内存</td></tr>
<tr><th scope="row">界面语言</th><td>简体中文、English、日本語,默认跟随系统,可在设置里切换</td></tr>
<tr><th scope="row">同步的内容</th><td>纯文本、带格式的文本、图片与截图、文件、文件夹,可以按类型关闭</td></tr>
- <tr><th scope="row">传输</th><td>WebRTC 数据通道,直连优先,打不通时经 TURN 中转;多出口网络逐个探测每个出口;文件以 tar + zstd 流式打包</td></tr>
+ <tr><th scope="row">传输</th><td>WebRTC 数据通道,直连优先,打不通时经 TURN 中转;同一网络里经 mDNS 发现、UDP 8788 交换连接信息;多出口网络逐个探测每个出口;文件以 tar + zstd 流式打包</td></tr>
<tr><th scope="row">加密与身份</th><td>DTLS 端到端加密;设备身份为 Ed25519 密钥;信令消息逐条签名</td></tr>
<tr><th scope="row">配对</th><td>6 位配对码,5 分钟内有效,字符集去掉了 0/O、1/I 等易混字符;配对时人工核对安全指纹</td></tr>
<tr><th scope="row">自动同步上限</th><td>默认 50 MB,可在 1 MB 到 1 GB 之间调整</td></tr>
@@ -505,7 +522,7 @@
</details>
<details>
<summary>和 macOS 自带的「通用剪贴板」有什么区别?</summary>
- <div class="answer"><p>通用剪贴板要求两台设备登录同一个 Apple ID、开着蓝牙和 Wi‑Fi,并且离得近,也只能在苹果设备之间用。CopySync 只要求两台电脑都能连上你部署的服务器:不同 Apple ID、一台在家一台在公司、一台 Mac 一台 Windows,都可以。另外它有复制记录,大文件也可以按需拉取。</p><p>如果你的两台 Mac 是同一个 Apple ID、总在一起、主要复制文字,系统自带的已经够用了。</p></div>
+ <div class="answer"><p>通用剪贴板要求两台设备登录同一个 Apple ID、开着蓝牙和 Wi‑Fi,并且离得近,也只能在苹果设备之间用。CopySync 在同一个网络里装好就能用;跨网络时,两台电脑能连上你部署的服务器、或者都装了 Tailscale 就行:不同 Apple ID、一台在家一台在公司、一台 Mac 一台 Windows,都可以。另外它有复制记录,大文件也可以按需拉取。</p><p>如果你的两台 Mac 是同一个 Apple ID、总在一起、主要复制文字,系统自带的已经够用了。</p></div>
</details>
<details>
<summary>服务器会看到我复制的内容吗?</summary>
@@ -517,11 +534,15 @@
</details>
<details>
<summary>必须自己准备服务器吗?</summary>
- <div class="answer"><p>是的,CopySync 不提供公共服务器,这样就不会有任何人的数据经过别人的机器。有三种部署方式:<a href="cloud/">公网服务器</a>,最低配置的云主机就够,在哪儿都能同步;<a href="server/">局域网</a>,电脑都在同一个网络里时,放在其中一台常开的电脑上;<a href="tailscale/">局域网 + Tailscale</a>,要跨网络又没有公网服务器时用。</p></div>
+ <div class="answer"><p>不一定。两台电脑在<a href="lan/">同一个网络</a>里时,装好 App 直接配对就行,不需要服务器。</p><p>跨网络时有两种做法:<a href="cloud/">公网服务器</a>,最低配置的云主机就够,在哪儿都能同步;<a href="tailscale/">Tailscale</a>,每台电脑装上它,配对时输入对方的 Tailscale 地址,不需要服务器。CopySync 不提供公共服务器,所以不会有任何人的数据经过别人的机器。</p></div>
</details>
<details>
<summary>家里没有公网 IP,能在家和公司之间同步吗?</summary>
- <div class="answer"><p>能,有两种做法。有一台公网服务器的话,把服务器部署在上面,家里和公司的电脑都直接连它,见<a href="cloud/">公网服务器部署</a>。没有的话,服务器放在家里一台常开的电脑上,每台电脑装上 Tailscale、登录同一个账号,服务器地址填它的 Tailscale 地址,见<a href="tailscale/">局域网 + Tailscale</a>。</p></div>
+ <div class="answer"><p>能,有两种做法。有一台公网服务器的话,把服务器部署在上面,家里和公司的电脑都直接连它,见<a href="cloud/">公网服务器部署</a>。没有的话,每台电脑装上 Tailscale、登录同一个账号,配对时输入对方的 Tailscale 地址,见<a href="tailscale/">Tailscale 教程</a>。</p></div>
+ </details>
+ <details>
+ <summary>在同一个网络里,为什么找不到另一台?</summary>
+ <div class="answer"><p>先看两台是不是真的在同一个网段:公司里有线和无线、访客网络、开了「AP 隔离」的 Wi‑Fi 常常不互通,局域网发现过不去。这时在输入配对码的那台点「不在同一网段?」,填上另一台配对码下面显示的地址。</p><p>Windows 上,第一次运行时防火墙会询问,要选允许;点过取消的话,在「设置 → 局域网」里点「放行」。Mac 上,要在「系统设置 → 隐私与安全性 → 本地网络」里打开 CopySync Daemon。更多见<a href="lan/#faq">同一网络教程</a>。</p></div>
</details>
<details>
<summary>支持 Windows 吗?iPhone 呢?</summary>
diff --git a/docs/ja/cloud/index.html b/docs/ja/cloud/index.html
index ede2513..49f9aed 100644
--- a/docs/ja/cloud/index.html
+++ b/docs/ja/cloud/index.html
@@ -33,7 +33,7 @@
<a href="../../ja/start/">はじめかた</a>
<a class="wide" href="../../ja/#how">しくみ</a>
<a class="wide" href="../../ja/#faq">よくある質問</a>
- <a href="../../ja/start/#server" aria-current="true">サーバーの設置</a>
+ <a href="../../ja/start/#server" aria-current="true">接続方法</a>
<a class="wide" href="https://github.com/baiyuze/copysync">GitHub</a>
<a href="../../cloud/" hreflang="zh-CN" lang="zh-CN" data-lang="zh">简体中文</a>
<a href="../../en/cloud/" hreflang="en" lang="en" data-lang="en">English</a>
@@ -44,7 +44,7 @@
<main id="main">
<section class="hero guide-hero">
<div class="wrap">
- <p class="crumb"><a href="../../ja/">CopySync</a> / <a href="../../ja/start/#server">サーバーの設置</a></p>
+ <p class="crumb"><a href="../../ja/">CopySync</a> / <a href="../../ja/start/#server">接続方法</a></p>
<h1 class="display">公開サーバーに置く</h1>
<p class="lede">グローバル IP を持つ Linux のクラウドサーバー。最小構成で足ります。各コンピューターが直接つながり、自宅でも会社でも外出先でも同期でき、ほかに入れるものはありません。</p>
<ol class="guide-toc">
@@ -259,7 +259,7 @@ Open in your firewall: TCP 8787 (signaling), UDP 3478 (STUN and TURN), UDP 32768
</details>
<details>
<summary>自宅の回線にグローバル IP があります。それで代わりになりますか?</summary>
- <div class="answer"><p>なりますが、クラウドサーバーより手間がかかります。ルーターで TCP 8787、UDP 3478、中継用の広い範囲の UDP ポートをそのコンピューターに転送する必要があり、自宅のグローバル IP は変わることもあります。全部が自宅にあるなら <a href="../../ja/server/">LAN</a> のほうが簡単で、ポート転送なしでネットワークをまたぐなら <a href="../../ja/tailscale/">LAN + Tailscale</a> があります。</p></div>
+ <div class="answer"><p>なりますが、クラウドサーバーより手間がかかります。ルーターで TCP 8787、UDP 3478、中継用の広い範囲の UDP ポートをそのコンピューターに転送する必要があり、自宅のグローバル IP は変わることもあります。全部が自宅にあるなら<a href="../../ja/lan/">同じネットワーク</a>でサーバーそのものが要らず、ポート転送なしでネットワークをまたぐなら <a href="../../ja/tailscale/">Tailscale</a> があります。</p></div>
</details>
</div>
</div>
diff --git a/docs/ja/index.html b/docs/ja/index.html
index cb156d4..4bb8b1c 100644
--- a/docs/ja/index.html
+++ b/docs/ja/index.html
@@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>CopySync:Mac と Windows のあいだでクリップボードとファイルを同期。アカウントもネットワークも別々で OK</title>
- <meta name="description" content="CopySync は、一台でコピーしたものをもう一台でそのまま貼り付けられるアプリです。Mac と Windows の両方に対応し、テキスト、画像、ファイル、フォルダを同期します。同じアカウントや同じネットワークは不要。デバイス間は P2P で直接つながり、エンドツーエンドで暗号化。サーバーは自分で用意し、内容は見えません。無料・オープンソース。">
+ <meta name="description" content="CopySync は、一台でコピーしたものをもう一台でそのまま貼り付けられるアプリです。Mac と Windows の両方に対応し、テキスト、画像、ファイル、フォルダを同期します。同じアカウントは不要。同じネットワークならサーバーなしで使え、ネットワークをまたぐときは自分で用意したサーバーか Tailscale を使います。デバイス間は P2P で直接つながり、エンドツーエンドで暗号化。無料・オープンソース。">
<link rel="canonical" href="https://baiyuze.github.io/copysync/ja/">
<link rel="alternate" hreflang="zh-CN" href="https://baiyuze.github.io/copysync/">
<link rel="alternate" hreflang="en" href="https://baiyuze.github.io/copysync/en/">
@@ -14,7 +14,7 @@
<meta property="og:type" content="website">
<meta property="og:site_name" content="CopySync">
<meta property="og:title" content="CopySync:このコンピューターでコピーして、あのコンピューターで貼り付け">
- <meta property="og:description" content="Mac と Windows に対応。テキスト、画像、ファイル、フォルダを、アカウントやネットワークをまたいで同期。P2P 直接接続、エンドツーエンド暗号化、サーバーはセルフホスト。無料・オープンソース。">
+ <meta property="og:description" content="Mac と Windows に対応。テキスト、画像、ファイル、フォルダを、アカウントやネットワークをまたいで同期。P2P 直接接続、エンドツーエンド暗号化、同じネットワークならサーバー不要。無料・オープンソース。">
<meta property="og:url" content="https://baiyuze.github.io/copysync/ja/">
<meta property="og:image" content="https://baiyuze.github.io/copysync/assets/og-en.png">
<meta property="og:image:width" content="1200">
@@ -35,7 +35,7 @@
"@type": "SoftwareApplication",
"@id": "https://baiyuze.github.io/copysync/#app",
"name": "CopySync",
- "description": "Mac と Windows のコンピューター間でクリップボードとファイルを同期するオープンソースのアプリ。テキスト、画像、ファイル、フォルダを一台でコピーし、もう一台で貼り付けられる。デバイス間は WebRTC で直接つながり DTLS でエンドツーエンド暗号化、つながらないときはユーザーが用意したサーバーの TURN で中継する。",
+ "description": "Mac と Windows のコンピューター間でクリップボードとファイルを同期するオープンソースのアプリ。テキスト、画像、ファイル、フォルダを一台でコピーし、もう一台で貼り付けられる。同じネットワークならサーバーは不要。デバイス間は WebRTC で直接つながり DTLS でエンドツーエンド暗号化、ネットワークをまたいでつながらないときはユーザーが用意したサーバーの TURN で中継する。",
"applicationCategory": "UtilitiesApplication",
"operatingSystem": "macOS 13 以降(Intel と Apple シリコン)、Windows 10、Windows 11(x64)",
"softwareVersion": "1.3.4",
@@ -55,6 +55,7 @@
"featureList": [
"プレーンテキスト、書式付きテキスト、画像、ファイル、フォルダを同期",
"Mac と Windows のあいだで、アカウントやネットワークをまたいで使える",
+ "同じネットワークならサーバー不要、mDNS で自動的に発見",
"WebRTC の直接接続、つながらないときは自動で TURN 中継",
"DTLS のエンドツーエンド暗号化、ペアリング時に指紋を人が照合",
"50 MB まではコピーと同時に送信、それより大きいファイルは必要なときに取り込み",
@@ -83,7 +84,7 @@
"name": "macOS のユニバーサルクリップボードとの違いは?",
"acceptedAnswer": {
"@type": "Answer",
- "text": "ユニバーサルクリップボードは、両方のデバイスが同じ Apple ID でサインインし、Bluetooth と Wi‑Fi をオンにして近くにある必要があり、Apple 製品どうしでしか使えません。CopySync に必要なのは、両方のコンピューターがあなたのサーバーにつながることだけです。Apple ID が別でも、自宅と会社に離れていても、Mac と Windows の組み合わせでも使えます。さらに履歴があり、大きなファイルは必要なときに取り込めます。 2 台の Mac が同じ Apple ID でいつも並んでいて、主にテキストをコピーするだけなら、標準機能で十分です。"
+ "text": "ユニバーサルクリップボードは、両方のデバイスが同じ Apple ID でサインインし、Bluetooth と Wi‑Fi をオンにして近くにある必要があり、Apple 製品どうしでしか使えません。CopySync は同じネットワークならインストールしてすぐ使え、ネットワークをまたぐときは両方があなたのサーバーにつながるか、Tailscale を入れていれば使えます。Apple ID が別でも、自宅と会社に離れていても、Mac と Windows の組み合わせでも使えます。さらに履歴があり、大きなファイルは必要なときに取り込めます。 2 台の Mac が同じ Apple ID でいつも並んでいて、主にテキストをコピーするだけなら、標準機能で十分です。"
}
},
{
@@ -107,7 +108,7 @@
"name": "サーバーは自分で用意する必要がありますか?",
"acceptedAnswer": {
"@type": "Answer",
- "text": "はい。CopySync は公開サーバーを提供しません。だから誰のデータも他人のマシンを通りません。置き方は 3 通りです。公開サーバーは最小構成のクラウドサーバーで足り、どこからでも同期できます。LAN はすべてのコンピューターが同じネットワークにあるとき、電源を入れたままの 1 台に置きます。LAN + Tailscale は公開サーバーなしでネットワークをまたぐときに使います。"
+ "text": "場合によります。コンピューターが同じネットワークにあるなら、アプリを入れてペアリングするだけで、サーバーは要りません。 ネットワークをまたぐ方法は 2 つあります。公開サーバーは最小構成のクラウドサーバーで足り、どこからでも同期できます。Tailscale は各コンピューターに入れ、ペアリング時に相手の Tailscale アドレスを入力するだけで、サーバーは要りません。CopySync は公開サーバーを提供しないので、誰のデータも他人のマシンを通りません。"
}
},
{
@@ -115,7 +116,15 @@
"name": "自宅にグローバル IP がありません。自宅と会社のあいだで同期できますか?",
"acceptedAnswer": {
"@type": "Answer",
- "text": "できます。方法は 2 つあります。公開サーバーがあれば、そこにサーバーを置いて両方のコンピューターから直接つなぎます(公開サーバーでの手順)。なければ、自宅で電源を入れたままのコンピューターでサーバーを動かし、すべてのコンピューターに Tailscale を入れて同じアカウントでサインインし、サーバーのアドレスに Tailscale のアドレスを使います(LAN + Tailscale)。"
+ "text": "できます。方法は 2 つあります。公開サーバーがあれば、そこにサーバーを置いて両方のコンピューターから直接つなぎます(公開サーバーでの手順)。なければ、すべてのコンピューターに Tailscale を入れて同じアカウントでサインインし、ペアリング時に相手の Tailscale アドレスを入力します(Tailscale での手順)。"
+ }
+ },
+ {
+ "@type": "Question",
+ "name": "同じネットワークなのに、もう一台が見つからないのはなぜ?",
+ "acceptedAnswer": {
+ "@type": "Answer",
+ "text": "まず本当に同じサブネットか確認してください。会社の有線と Wi‑Fi、ゲストネットワーク、クライアント分離が有効な Wi‑Fi では、デバイス同士が見えないことがよくあります。その場合は、コードを入力する側で「別のサブネットにありますか?」をクリックし、相手のコードの下に表示されたアドレスを入力します。 Windows では初回起動時にファイアウォールに聞かれたら許可してください。キャンセルした場合は「設定 → ローカルネットワーク」で「許可」をクリックします。Mac では「システム設定 → プライバシーとセキュリティ → ローカルネットワーク」で CopySync Daemon をオンにします。詳しくは同じネットワークでの手順を。"
}
},
{
@@ -166,7 +175,7 @@
<a href="start/">はじめかた</a>
<a class="wide" href="#how">しくみ</a>
<a class="wide" href="#faq">よくある質問</a>
- <a href="start/#server">サーバーの設置</a>
+ <a href="start/#server">接続方法</a>
<a class="wide" href="https://github.com/baiyuze/copysync">GitHub</a>
<a href=".././" hreflang="zh-CN" lang="zh-CN" data-lang="zh">简体中文</a>
<a href="../en/" hreflang="en" lang="en" data-lang="en">English</a>
@@ -178,7 +187,7 @@
<section class="hero">
<div class="wrap">
<h1 class="display">こっちでコピーして、<br>あっちで貼り付け。</h1>
- <p class="lede">Mac と Windows に対応。テキスト、画像、ファイル、フォルダまるごと。同じアカウントも、同じネットワークも要りません。データはデバイス間を直接流れ、自分のサーバーを経由するときも暗号化されたままです。</p>
+ <p class="lede">Mac と Windows に対応。テキスト、画像、ファイル、フォルダまるごと。同じアカウントは要りません。同じネットワークならサーバーなしで使え、ネットワークをまたいでも使えます。データはデバイス間を直接流れ、エンドツーエンドで暗号化されます。</p>
<div class="cta">
<a class="button" href="https://github.com/baiyuze/copysync/releases/latest/download/CopySync.dmg"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Mac 版をダウンロード</a>
<a class="button quiet" href="https://github.com/baiyuze/copysync/releases/latest/download/CopySync-Setup.exe"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Windows 版をダウンロード</a>
@@ -214,9 +223,16 @@
<section class="section" id="deploy" aria-labelledby="deploy-title">
<div class="wrap">
- <h2 id="deploy-title">サーバーをどこに置くか</h2>
- <p class="intro">2 台はサーバーを通じてお互いを見つけます。コピーした内容がそこに保存されることはありません。公開サーバーはないので、3 通りの置き方から状況に合うものを選んでください。</p>
+ <h2 id="deploy-title">2 台をどうつなぐか</h2>
+ <p class="intro">同じネットワークなら、アプリを入れてペアリングするだけで、サーバーは要りません。ネットワークをまたぐときは、サーバーか Tailscale を通じてお互いを見つけます。コピーした内容がそこに保存されることはありません。状況に合うものを選んでください。</p>
<div class="paths">
+ <a class="path" href="lan/">
+ <svg viewBox="0 0 240 112" aria-hidden="true"><rect class="p-net" x="6" y="6" width="228" height="100" rx="14"/><path class="p-data" d="M82 52h76"/><rect class="p-dev" x="39" y="40" width="38" height="24" rx="3"/><path class="p-dev" d="M34 69h48"/><rect class="p-dev" x="163" y="40" width="38" height="24" rx="3"/><path class="p-dev" d="M158 69h48"/></svg>
+ <span class="path-when">準備は何も要らない</span>
+ <h3>同じネットワーク</h3>
+ <p>家や会社で、同じルーターにつながっている場合。2 台にアプリを入れてペアリングコードを入力するだけ。サーバーも、電源を入れたままのコンピューターも要りません。</p>
+ <span class="path-go">同じネットワークでの手順 →</span>
+ </a>
<a class="path" href="cloud/">
<svg viewBox="0 0 240 112" aria-hidden="true"><rect class="p-dev" x="98" y="8" width="44" height="12" rx="3"/><rect class="p-dev" x="98" y="23" width="44" height="12" rx="3"/><rect class="p-net" x="6" y="50" width="100" height="56" rx="10"/><rect class="p-net" x="134" y="50" width="100" height="56" rx="10"/><path class="p-sig" d="M56 64V22h42M184 64V22h-42"/><path class="p-data" d="M80 80h80"/><rect class="p-dev" x="37" y="64" width="38" height="24" rx="3"/><path class="p-dev" d="M32 93h48"/><rect class="p-dev" x="165" y="64" width="38" height="24" rx="3"/><path class="p-dev" d="M160 93h48"/></svg>
<span class="path-when">どこからでも同期</span>
@@ -224,18 +240,11 @@
<p>グローバル IP を持つ Linux のクラウドサーバー。最小構成で足ります。各コンピューターが直接つながり、自宅でも会社でも外出先でも、ほかに入れるものはありません。</p>
<span class="path-go">公開サーバーでの手順 →</span>
</a>
- <a class="path" href="server/">
- <svg viewBox="0 0 240 112" aria-hidden="true"><rect class="p-net" x="6" y="6" width="228" height="100" rx="14"/><rect class="p-dev" x="98" y="16" width="44" height="12" rx="3"/><rect class="p-dev" x="98" y="31" width="44" height="12" rx="3"/><path class="p-sig" d="M58 66V30h40M182 66V30h-40"/><path class="p-data" d="M82 82h76"/><rect class="p-dev" x="39" y="66" width="38" height="24" rx="3"/><path class="p-dev" d="M34 95h48"/><rect class="p-dev" x="163" y="66" width="38" height="24" rx="3"/><path class="p-dev" d="M158 95h48"/></svg>
- <span class="path-when">全部が同じネットワークにある</span>
- <h3>LAN</h3>
- <p>家や会社で、同じ Wi‑Fi か有線ネットワークにつながっている場合。電源を入れたままの Windows・Mac・Linux のどれか 1 台で、スクリプトをひとつ実行するだけ。費用はかかりません。</p>
- <span class="path-go">LAN での設置手順 →</span>
- </a>
<a class="path" href="tailscale/">
- <svg viewBox="0 0 240 112" aria-hidden="true"><rect class="p-ts" x="2" y="2" width="236" height="108" rx="16"/><rect class="p-net" x="12" y="12" width="98" height="88" rx="10"/><rect class="p-net" x="130" y="12" width="98" height="88" rx="10"/><rect class="p-dev" x="39" y="20" width="44" height="12" rx="3"/><rect class="p-dev" x="39" y="35" width="44" height="12" rx="3"/><path class="p-sig" d="M180 64V54H61v-7M61 64V54"/><path class="p-data" d="M85 80h71"/><rect class="p-dev" x="42" y="64" width="38" height="24" rx="3"/><path class="p-dev" d="M37 93h48"/><rect class="p-dev" x="161" y="64" width="38" height="24" rx="3"/><path class="p-dev" d="M156 93h48"/></svg>
- <span class="path-when">ネットワークをまたぐ、公開サーバーなし</span>
- <h3>LAN + Tailscale</h3>
- <p>サーバーは自宅で電源を入れたままのコンピューターに置き、各コンピューターに Tailscale を入れて同じアカウントでサインインします。同じ LAN にあるのと同じように扱えます。</p>
+ <svg viewBox="0 0 240 112" aria-hidden="true"><rect class="p-ts" x="2" y="2" width="236" height="108" rx="16"/><rect class="p-net" x="12" y="12" width="98" height="88" rx="10"/><rect class="p-net" x="130" y="12" width="98" height="88" rx="10"/><path class="p-data" d="M85 52h71"/><rect class="p-dev" x="42" y="40" width="38" height="24" rx="3"/><path class="p-dev" d="M37 69h48"/><rect class="p-dev" x="161" y="40" width="38" height="24" rx="3"/><path class="p-dev" d="M156 69h48"/></svg>
+ <span class="path-when">ネットワークをまたぐ、サーバーなし</span>
+ <h3>Tailscale</h3>
+ <p>各コンピューターに Tailscale を入れて同じアカウントでサインインし、ペアリング時に相手の Tailscale アドレスを入力します。自宅でも会社でも同期でき、サーバーも電源を入れたままのコンピューターも要りません。</p>
<span class="path-go">Tailscale での手順 →</span>
</a>
</div>
@@ -290,7 +299,7 @@
<section class="section" id="how" aria-labelledby="how-title">
<div class="wrap">
<h2 id="how-title">しくみ</h2>
- <p class="intro">2 台のコンピューターは、暗号化された接続で直接つながります。サーバーの役目はお互いを見つけさせることと、直接つながらないときに中継することだけです。</p>
+ <p class="intro">2 台のコンピューターは、暗号化された接続で直接つながります。同じネットワークなら自分たちでお互いを見つけます。ネットワークをまたぐときはサーバーが引き合わせ、直接つながらないときだけ中継します。下の図はネットワークをまたぐ場合です。</p>
<figure class="diagram">
<svg viewBox="0 0 960 400" role="img" aria-labelledby="diagram-title diagram-desc">
<title id="diagram-title">CopySync の接続のしかた</title>
@@ -362,6 +371,11 @@
<tr><td>最初はつながらず、あとでネットワークが回復</td><td>中継のあと直接</td></tr>
<tr><td>会社のルーターが外からのパケットでポートをふさぐ</td><td>直接</td></tr>
<tr><td>家庭用ルーターが外からのパケットでポートをふさぐ</td><td>中継のあと、1 回の再試行で直接</td></tr>
+ <tr><td>サーバーなし、同じサブネット、mDNS で発見</td><td>直接</td></tr>
+ <tr><td>サーバーなし、別のサブネット、片方が相手のアドレスを覚えている</td><td>直接</td></tr>
+ <tr><td>サーバーなし、両方が受信をブロック、両方がアドレスを覚えている</td><td>直接</td></tr>
+ <tr><td>サーバーなし、両方が受信をブロック、片方だけが覚えている</td><td>つながらない(既知の制限)</td></tr>
+ <tr><td>サーバーなし、サブネット同士が遮断されている</td><td>つながらない</td></tr>
</tbody>
</table>
</div>
@@ -381,6 +395,7 @@
<li><strong>ペアリングでは指紋をあなたが照合する。</strong>両方の画面に同じ 2 行、つまりお互いの公開鍵の指紋が表示されます。サーバーは転送中の公開鍵をすり替えられますが、すり替えれば 2 つの画面が一致しなくなります。この照合が中間者攻撃を防ぐ関門です。</li>
<li><strong>その後のメッセージはすべて署名付き。</strong>サーバーがあなたのデバイスになりすますことはできません。直接接続の証明書もハンドシェイク後にもう一度照合し、食い違えばすぐ切断します。</li>
<li><strong>中継も暗号文を転送するだけ。</strong>TURN が運ぶのは暗号化済みのパケットです。中継用の認証情報はデバイスごとに発行され、12 時間で失効します。</li>
+ <li><strong>ローカルネットワークでも同じ。</strong>デバイスが LAN に流すのは毎日変わる匿名の識別子だけで、誰のコンピューターかはわかりません。ペアリングでは同じく指紋を照合し、その後のメッセージも署名付きです。</li>
</ul>
<figure class="figure-card">
<img src="../assets/screenshots/ja/card-verify-dark.png" width="1120" height="800" loading="lazy" alt="ペアリング時の「セキュリティ指紋を確認」ダイアログ。R8NF-2WTC-QL5J が表示され、もう一台の表示と完全に一致するか確かめるよう求めている">
@@ -394,11 +409,13 @@
<h2 id="fallback-title">うまくいかないときに起きること</h2>
<p class="intro">ネットワークの事情は人それぞれです。ここに挙げたケースはどれも想定済みで、テストがあります。</p>
<dl class="fallbacks">
+ <div><dt>同じネットワークなのに相手が見つからない</dt><dd>サブネットが違う、ゲストネットワーク、クライアント分離(AP アイソレーション)が有効な Wi‑Fi では、LAN 内の検出が届きません。ペアリング時に相手のコードの下に表示されたアドレスを入力してください。アドレスはその後も記憶され、両方のアドレスが変わったときはデバイス一覧からもう一度入力します。</dd></div>
+ <div><dt>システムがローカルネットワークを止めている</dt><dd>macOS 15 以降、バックグラウンドサービスが LAN 上のデバイスに接続するにはあなたの許可が要ります。Windows は初回起動時にファイアウォールについて聞いてきます。許可されていないときはアプリが知らせ、設定へ直接飛べるボタンを出します。</dd></div>
<div><dt>2 台が直接つながらない</dt><dd>対称型 NAT や会社のファイアウォールでよく起きます。自動であなたのサーバーの TURN 中継に切り替わり、内容は暗号化されたまま。デバイス一覧には「中継」と表示されます。</dd></div>
<div><dt>公開 STUN サーバーにつながらない</dt><dd>中国本土などでは公開 STUN が不安定です。サーバーは STUN を内蔵していて、クライアントはそちらを優先します。</dd></div>
<div><dt>先に中継でつながった</dt><dd>中継のハンドシェイクは速く、直接接続より先に決まることがあります。接続後、接続を始めた側がアイドル時にもう一度穴あけを試み、成功すれば直接接続に切り替えます。転送中は邪魔しません。</dd></div>
<div><dt>相手がスリープ、切断、再起動した</dt><dd>黙って切れた接続にも気づき、すぐに閉じて再接続します。そのあいだにコピーしたものは記録しておき、つながったら相手の履歴に追加します。相手のいまのクリップボードは上書きしません。</dd></div>
- <div><dt>サーバーとの接続が切れた</dt><dd>自動で再接続します。間隔は 1 秒から倍々で最大 30 秒、ランダムな揺らぎ付きで、たくさんのデバイスが一斉に再接続しないようにしています。接続状態はアプリにリアルタイムで表示されます。</dd></div>
+ <div><dt>サーバーとの接続が切れた</dt><dd>自動で再接続します。間隔は 1 秒から倍々で最大 30 秒、ランダムな揺らぎ付きで、たくさんのデバイスが一斉に再接続しないようにしています。同じネットワークのデバイスは影響を受けず、そのまま同期します。</dd></div>
<div><dt>ファイルが大きすぎる</dt><dd>上限を超えるものは記録だけを同期し、必要なときに取り込みます。そのとき元のファイルが消えていれば、あいまいな失敗ではなく、はっきりそう伝えます。</dd></div>
<div><dt>プレーンテキストしか受け付けない場所に貼り付ける</dt><dd>Web からコピーした書式付きテキストは HTML とプレーンテキストの両方で書き込むので、どこに貼り付けてもタグが混ざりません。</dd></div>
<div><dt>Windows では使えないファイル名</dt><dd>Mac では使えるコロンや疑問符などは、対応する全角文字に置き換えて受け取るので、名前はそのまま読めます。大文字と小文字だけが違う 2 つのファイルが上書きし合うこともありません。</dd></div>
@@ -413,15 +430,15 @@
<section class="section" id="install" aria-labelledby="install-title">
<div class="wrap">
<h2 id="install-title">インストール</h2>
- <p class="intro">それぞれのコンピューターにアプリを入れ、両方からアクセスできるサーバーを 1 台用意します。はじめての方は<a href="start/">はじめかた</a>をどうぞ。</p>
+ <p class="intro">それぞれのコンピューターにアプリを入れます。同じネットワークならそのままペアリングでき、ネットワークをまたぐときは 2 台がお互いを見つける方法をひとつ選びます。はじめての方は<a href="start/">はじめかた</a>をどうぞ。</p>
<div class="install">
<div>
<h3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="4" y="5" width="16" height="11" rx="1.5"/><path d="M2 19h20"/></svg>Mac</h3>
<ol>
<li>CopySync.dmg をダウンロードして開き、CopySync を「アプリケーション」にドラッグします。</li>
<li>「アプリケーション」から開きます。<span class="aside">初回は「開発元を検証できません」と表示されます。CopySync はまだ Apple の公証を受けていないためです。「システム設定 → プライバシーとセキュリティ」を開き、ページ下部の「このまま開く」をクリックします。必要なのは一度だけです。</span></li>
- <li>「バックグラウンド同期を有効にする」をクリックし、「設定」でサーバーのアドレス <code>ws://サーバーアドレス:8787/signal</code> を入力して Return を押します。</li>
- <li>クリップボードの読み取りを許可するか聞かれたら、許可します。</li>
+ <li>「バックグラウンド同期を有効にする」をクリックします。クリップボードの読み取りと、ローカルネットワーク上のデバイスを探すことについて聞かれたら、どちらも許可します。</li>
+ <li>ネットワークをまたいで同期するときは、「設定」でサーバーのアドレス <code>ws://サーバーアドレス:8787/signal</code> を入力して Return を押します。同じネットワークなら空欄のままです。</li>
</ol>
<a class="button" href="https://github.com/baiyuze/copysync/releases/latest/download/CopySync.dmg"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Mac 版をダウンロード</a>
</div>
@@ -429,23 +446,23 @@
<h3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="4" width="18" height="12" rx="1.5"/><path d="M9 20h6M12 16v4"/></svg>Windows</h3>
<ol>
<li>CopySync-Setup.exe を実行します。現在のユーザーのフォルダにインストールされ、管理者権限は要りません。<span class="aside">CopySync はまだコード署名されていないため、「Windows によって PC が保護されました」と表示されます。「詳細情報」を押してから「実行」を押してください。インストーラーを使いたくない場合は<a href="https://github.com/baiyuze/copysync/releases/latest/download/CopySync-windows-x64.zip">ポータブル版</a>もあります。</span></li>
- <li>CopySync を開き、「バックグラウンド同期を有効にする」をクリックします。ウィンドウを閉じても、画面右下の通知領域で動き続けます。</li>
- <li>「設定」でサーバーのアドレスを入力して Enter を押します。ファイアウォールに聞かれたら許可します。</li>
+ <li>CopySync を開き、「バックグラウンド同期を有効にする」をクリックします。ファイアウォールに聞かれたら許可します。ウィンドウを閉じても、画面右下の通知領域で動き続けます。</li>
+ <li>ネットワークをまたいで同期するときは、「設定」でサーバーのアドレスを入力して Enter を押します。同じネットワークなら空欄のままです。</li>
</ol>
<a class="button" href="https://github.com/baiyuze/copysync/releases/latest/download/CopySync-Setup.exe"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Windows 版をダウンロード</a>
</div>
<div>
- <h3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="4" y="4" width="16" height="7" rx="1.5"/><rect x="4" y="13" width="16" height="7" rx="1.5"/><path d="M8 7.5h.01M8 16.5h.01"/></svg>サーバー</h3>
- <p class="small">置き方は 3 通り。状況に合うものを選んでください。どれにも手順のページがあります:</p>
+ <h3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="4" y="4" width="16" height="7" rx="1.5"/><rect x="4" y="13" width="16" height="7" rx="1.5"/><path d="M8 7.5h.01M8 16.5h.01"/></svg>接続方法</h3>
+ <p class="small">同じネットワークならサーバーは要りません。状況に合うものを選んでください。どれにも手順のページがあります:</p>
<ul class="opts">
+ <li><a href="lan/">同じネットワーク</a><span>準備は何も要らない</span></li>
<li><a href="cloud/">公開サーバー</a><span>どこからでも同期</span></li>
- <li><a href="server/">LAN</a><span>全部が同じネットワークにある</span></li>
- <li><a href="tailscale/">LAN + Tailscale</a><span>ネットワークをまたぐ、公開サーバーなし</span></li>
+ <li><a href="tailscale/">Tailscale</a><span>ネットワークをまたぐ、サーバーなし</span></li>
</ul>
<a class="button quiet" href="start/#server">3 通りを比べる</a>
</div>
</div>
- <p class="pairing"><strong>ペアリング:</strong>一台で「デバイス → デバイスを追加」を開いて 6 桁のコードを表示し、もう一台で入力します。両方の画面に同じ 2 行の指紋が表示されたら確定します。Mac と Windows、Windows 同士でも同じ手順です。</p>
+ <p class="pairing"><strong>ペアリング:</strong>一台で「デバイス → デバイスを追加」を開いて 6 桁のコードを表示し、もう一台で入力します。両方の画面に同じ 2 行の指紋が表示されたら確定します。別のサブネットにある場合は、コードの下に表示されたアドレスも入力します。Mac と Windows、Windows 同士でも同じ手順です。</p>
</div>
</section>
@@ -458,10 +475,10 @@
<tr><th scope="row">バージョン</th><td>1.3.4(<time datetime="2026-10-11">2026 年 10 月 11 日</time>公開)</td></tr>
<tr><th scope="row">Mac アプリ</th><td>macOS 13 Ventura 以降。Intel と Apple シリコンのユニバーサルバイナリで Rosetta 不要。ダウンロードは約 47 MB</td></tr>
<tr><th scope="row">Windows アプリ</th><td>Windows 10(21H2 以降)と Windows 11、x64。ユーザーごとのインストールで管理者権限不要。ダウンロードは約 23 MB</td></tr>
- <tr><th scope="row">サーバー</th><td>Linux(x86_64 または ARM64、systemd または Docker)、macOS(Intel と Apple シリコン)、Windows 10・11 x64(サービスとして動作)。メモリは約 15 MB</td></tr>
+ <tr><th scope="row">サーバー</th><td>任意。ネットワークをまたぐときだけ必要。Linux(x86_64 または ARM64、systemd または Docker)、macOS(Intel と Apple シリコン)、Windows 10・11 x64(サービスとして動作)。メモリは約 15 MB</td></tr>
<tr><th scope="row">表示言語</th><td>日本語、英語、簡体字中国語。初期設定はシステムに合わせ、「設定」で切り替え可能</td></tr>
<tr><th scope="row">同期する内容</th><td>プレーンテキスト、書式付きテキスト、画像とスクリーンショット、ファイル、フォルダ。種類ごとにオフにできる</td></tr>
- <tr><th scope="row">転送</th><td>WebRTC データチャネル。直接接続を優先し、つながらなければ TURN で中継。複数の出口があるネットワークでは出口ごとに調査。ファイルは tar + zstd でストリーム転送</td></tr>
+ <tr><th scope="row">転送</th><td>WebRTC データチャネル。直接接続を優先し、つながらなければ TURN で中継。同じネットワークでは mDNS で発見し、UDP 8788 で接続情報を交換。複数の出口があるネットワークでは出口ごとに調査。ファイルは tar + zstd でストリーム転送</td></tr>
<tr><th scope="row">暗号化と身元</th><td>DTLS によるエンドツーエンド暗号化。デバイスの身元は Ed25519 の鍵。シグナリングのメッセージはすべて署名付き</td></tr>
<tr><th scope="row">ペアリング</th><td>5 分間有効な 6 桁のコード。0/O や 1/I のような紛らわしい文字は使わない。指紋は人が照合</td></tr>
<tr><th scope="row">自動同期の上限</th><td>初期値 50 MB、1 MB〜1 GB で調整可能</td></tr>
@@ -485,7 +502,7 @@
</details>
<details>
<summary>macOS のユニバーサルクリップボードとの違いは?</summary>
- <div class="answer"><p>ユニバーサルクリップボードは、両方のデバイスが同じ Apple ID でサインインし、Bluetooth と Wi‑Fi をオンにして近くにある必要があり、Apple 製品どうしでしか使えません。CopySync に必要なのは、両方のコンピューターがあなたのサーバーにつながることだけです。Apple ID が別でも、自宅と会社に離れていても、Mac と Windows の組み合わせでも使えます。さらに履歴があり、大きなファイルは必要なときに取り込めます。</p><p>2 台の Mac が同じ Apple ID でいつも並んでいて、主にテキストをコピーするだけなら、標準機能で十分です。</p></div>
+ <div class="answer"><p>ユニバーサルクリップボードは、両方のデバイスが同じ Apple ID でサインインし、Bluetooth と Wi‑Fi をオンにして近くにある必要があり、Apple 製品どうしでしか使えません。CopySync は同じネットワークならインストールしてすぐ使え、ネットワークをまたぐときは両方があなたのサーバーにつながるか、Tailscale を入れていれば使えます。Apple ID が別でも、自宅と会社に離れていても、Mac と Windows の組み合わせでも使えます。さらに履歴があり、大きなファイルは必要なときに取り込めます。</p><p>2 台の Mac が同じ Apple ID でいつも並んでいて、主にテキストをコピーするだけなら、標準機能で十分です。</p></div>
</details>
<details>
<summary>サーバーにコピーした内容は見えますか?</summary>
@@ -497,11 +514,15 @@
</details>
<details>
<summary>サーバーは自分で用意する必要がありますか?</summary>
- <div class="answer"><p>はい。CopySync は公開サーバーを提供しません。だから誰のデータも他人のマシンを通りません。置き方は 3 通りです。<a href="cloud/">公開サーバー</a>は最小構成のクラウドサーバーで足り、どこからでも同期できます。<a href="server/">LAN</a> はすべてのコンピューターが同じネットワークにあるとき、電源を入れたままの 1 台に置きます。<a href="tailscale/">LAN + Tailscale</a> は公開サーバーなしでネットワークをまたぐときに使います。</p></div>
+ <div class="answer"><p>場合によります。コンピューターが<a href="lan/">同じネットワーク</a>にあるなら、アプリを入れてペアリングするだけで、サーバーは要りません。</p><p>ネットワークをまたぐ方法は 2 つあります。<a href="cloud/">公開サーバー</a>は最小構成のクラウドサーバーで足り、どこからでも同期できます。<a href="tailscale/">Tailscale</a> は各コンピューターに入れ、ペアリング時に相手の Tailscale アドレスを入力するだけで、サーバーは要りません。CopySync は公開サーバーを提供しないので、誰のデータも他人のマシンを通りません。</p></div>
</details>
<details>
<summary>自宅にグローバル IP がありません。自宅と会社のあいだで同期できますか?</summary>
- <div class="answer"><p>できます。方法は 2 つあります。公開サーバーがあれば、そこにサーバーを置いて両方のコンピューターから直接つなぎます(<a href="cloud/">公開サーバーでの手順</a>)。なければ、自宅で電源を入れたままのコンピューターでサーバーを動かし、すべてのコンピューターに Tailscale を入れて同じアカウントでサインインし、サーバーのアドレスに Tailscale のアドレスを使います(<a href="tailscale/">LAN + Tailscale</a>)。</p></div>
+ <div class="answer"><p>できます。方法は 2 つあります。公開サーバーがあれば、そこにサーバーを置いて両方のコンピューターから直接つなぎます(<a href="cloud/">公開サーバーでの手順</a>)。なければ、すべてのコンピューターに Tailscale を入れて同じアカウントでサインインし、ペアリング時に相手の Tailscale アドレスを入力します(<a href="tailscale/">Tailscale での手順</a>)。</p></div>
+ </details>
+ <details>
+ <summary>同じネットワークなのに、もう一台が見つからないのはなぜ?</summary>
+ <div class="answer"><p>まず本当に同じサブネットか確認してください。会社の有線と Wi‑Fi、ゲストネットワーク、クライアント分離が有効な Wi‑Fi では、デバイス同士が見えないことがよくあります。その場合は、コードを入力する側で「別のサブネットにありますか?」をクリックし、相手のコードの下に表示されたアドレスを入力します。</p><p>Windows では初回起動時にファイアウォールに聞かれたら許可してください。キャンセルした場合は「設定 → ローカルネットワーク」で「許可」をクリックします。Mac では「システム設定 → プライバシーとセキュリティ → ローカルネットワーク」で CopySync Daemon をオンにします。詳しくは<a href="lan/#faq">同じネットワークでの手順</a>を。</p></div>
</details>
<details>
<summary>Windows に対応していますか?iPhone は?</summary>
diff --git a/docs/ja/lan/index.html b/docs/ja/lan/index.html
new file mode 100644
index 0000000..29b23fa
--- /dev/null
+++ b/docs/ja/lan/index.html
@@ -0,0 +1,210 @@
+<!doctype html>
+<html lang="ja">
+<head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <title>同じネットワークで CopySync を使う:サーバーなしで、ペアリングするだけ</title>
+ <meta name="description" content="コンピューターが同じ Wi‑Fi か有線ネットワークにあれば、CopySync にサーバーは要りません。アプリを入れて 6 桁のペアリングコードを入力すれば、Mac と Windows のあいだでクリップボードとファイルを同期できます。サブネットが違う場合は、ペアリング時にアドレスをひとつ入力します。">
+ <link rel="canonical" href="https://baiyuze.github.io/copysync/ja/lan/">
+ <link rel="alternate" hreflang="zh-CN" href="https://baiyuze.github.io/copysync/lan/">
+ <link rel="alternate" hreflang="en" href="https://baiyuze.github.io/copysync/en/lan/">
+ <link rel="alternate" hreflang="ja" href="https://baiyuze.github.io/copysync/ja/lan/">
+ <meta name="theme-color" content="#141416">
+ <meta property="og:type" content="article">
+ <meta property="og:site_name" content="CopySync">
+ <meta property="og:title" content="同じネットワークで CopySync を使う:サーバーなしで、ペアリングするだけ">
+ <meta property="og:description" content="コンピューターが同じ Wi‑Fi か有線ネットワークにあれば、CopySync にサーバーは要りません。アプリを入れて 6 桁のペアリングコードを入力すれば、Mac と Windows のあいだでクリップボードとファイルを同期できます。サブネットが違う場合は、ペアリング時にアドレスをひとつ入力します。">
+ <meta property="og:url" content="https://baiyuze.github.io/copysync/ja/lan/">
+ <meta property="og:image" content="https://baiyuze.github.io/copysync/assets/og-en.png">
+ <meta property="og:locale" content="ja_JP">
+ <meta name="twitter:card" content="summary_large_image">
+ <link rel="icon" href="../../assets/favicon.svg" type="image/svg+xml">
+ <link rel="icon" href="../../assets/favicon-32.png" sizes="32x32" type="image/png">
+ <link rel="apple-touch-icon" href="../../assets/apple-touch-icon.png">
+ <link rel="stylesheet" href="../../assets/site.css">
+</head>
+<body>
+ <a class="skip" href="#main">本文へ移動</a>
+
+ <header class="bar">
+ <div class="wrap">
+ <a class="brand" href="../../ja/" aria-label="CopySync ホーム"><img src="../../assets/icon.svg" alt="" width="26" height="26">CopySync</a>
+ <nav aria-label="ページ内の移動">
+ <a href="../../ja/start/">はじめかた</a>
+ <a class="wide" href="../../ja/#how">しくみ</a>
+ <a class="wide" href="../../ja/#faq">よくある質問</a>
+ <a href="../../ja/start/#server" aria-current="true">接続方法</a>
+ <a class="wide" href="https://github.com/baiyuze/copysync">GitHub</a>
+ <a href="../../lan/" hreflang="zh-CN" lang="zh-CN" data-lang="zh">简体中文</a>
+ <a href="../../en/lan/" hreflang="en" lang="en" data-lang="en">English</a>
+ </nav>
+ </div>
+ </header>
+
+ <main id="main">
+ <section class="hero guide-hero">
+ <div class="wrap">
+ <p class="crumb"><a href="../../ja/">CopySync</a> / <a href="../../ja/start/#server">接続方法</a></p>
+ <h1 class="display">同じネットワークでそのまま使う</h1>
+ <p class="lede">同じルーターにつながった 2 台なら、サーバーは要りません。アプリを入れてペアリングコードを入力すれば、そのあとはコピーするだけで同期されます。</p>
+ <ol class="guide-toc">
+ <li><a href="#prepare">準備</a></li>
+ <li><a href="#pair">ペアリング</a></li>
+ <li><a href="#subnet">別のサブネット</a></li>
+ <li><a href="#faq">よくある質問</a></li>
+ </ol>
+ </div>
+ </section>
+
+ <section class="section" id="overview" aria-labelledby="overview-title">
+ <div class="wrap">
+ <h2 id="overview-title">サーバーは要らない</h2>
+ <p class="intro">同じネットワークにある 2 台は、mDNS でお互いを見つけ、接続情報を直接やり取りして、暗号化された直接接続を結びます。サーバーも、電源を入れたままのコンピューターも要りません。</p>
+ <figure class="diagram">
+ <svg viewBox="0 0 960 330" role="img" aria-labelledby="lan-title lan-desc">
+ <title id="lan-title">同じネットワークでの CopySync</title>
+ <desc id="lan-desc">同じ LAN の中で、Mac(192.168.1.20)と Windows(192.168.1.35)が mDNS でお互いを見つけ、UDP 8788 で接続情報を交換します。コピーした内容は 2 台のあいだを直接流れ、サーバーはありません。</desc>
+ <rect class="d-lan" x="8" y="8" width="944" height="314" rx="22"/>
+ <text class="d-lan-label" x="32" y="42">LAN:同じ Wi‑Fi か有線ネットワーク</text>
+ <rect class="d-box" x="40" y="120" width="240" height="140" rx="14"/>
+ <text class="d-title" x="160" y="170" text-anchor="middle">Mac</text>
+ <text class="d-sub" x="160" y="198" text-anchor="middle">CopySync を実行中</text>
+ <text class="d-ip" x="160" y="234" text-anchor="middle">192.168.1.20</text>
+ <rect class="d-box" x="680" y="120" width="240" height="140" rx="14"/>
+ <text class="d-title" x="800" y="170" text-anchor="middle">Windows</text>
+ <text class="d-sub" x="800" y="198" text-anchor="middle">CopySync を実行中</text>
+ <text class="d-ip" x="800" y="234" text-anchor="middle">192.168.1.35</text>
+ <path class="d-sig" d="M280 150H680"/>
+ <text class="d-note" x="480" y="138" text-anchor="middle">mDNS で発見、UDP 8788 で接続情報を交換</text>
+ <path class="d-direct" d="M280 214H680"/>
+ <text class="d-label" x="480" y="200" text-anchor="middle">直接接続、エンドツーエンド暗号化</text>
+ <text class="d-note" x="480" y="242" text-anchor="middle">コピーした内容は 2 台のあいだだけを流れる</text>
+ </svg>
+ </figure>
+ <ul class="points ports">
+ <li><strong>自動で見つける。</strong>各コンピューターは mDNS で LAN に自分を知らせます。流すのは毎日変わる匿名の識別子だけで、誰のコンピューターかはわかりません。</li>
+ <li><strong>直接接続。</strong>コピーした内容は 2 台のあいだを直接流れ、速さは LAN の速さそのままです。</li>
+ <li><strong>安全性はそのまま。</strong>ペアリングで 2 行の指紋を照合し、その後のメッセージはすべて署名付き。同じネットワークの他人があなたのデバイスになりすますことはできません。</li>
+ </ul>
+ </div>
+ </section>
+
+ <section class="section" id="prepare" aria-labelledby="prepare-title">
+ <div class="wrap">
+ <h2 id="prepare-title">始める前に</h2>
+ <dl class="fallbacks">
+ <div><dt>同じネットワーク</dt><dd>2 台が同じルーターにつながっていれば大丈夫です。Wi‑Fi と有線が混ざっていてもかまいません。ゲストネットワークやクライアント分離が有効な Wi‑Fi ではデバイス同士が見えず、会社では有線と Wi‑Fi のサブネットが分かれていることもよくあります。その場合は下の<a href="#subnet">別のサブネット</a>へ。</dd></div>
+ <div><dt>Windows ファイアウォール</dt><dd>初回起動時に、CopySync がファイアウォールを通ってよいか Windows が聞いてくるので、許可します。キャンセルした場合は、CopySync の「設定 → ローカルネットワーク」で「許可」をクリックします。管理者の承認を一度だけ求められます。</dd></div>
+ <div><dt>macOS のローカルネットワーク</dt><dd>macOS 15 以降、LAN 上のデバイスに初めて接続するとき、CopySync Daemon がローカルネットワーク上のデバイスを探してよいか聞かれるので、許可します。拒否した場合は「システム設定 → プライバシーとセキュリティ → ローカルネットワーク」でオンにします。</dd></div>
+ <div><dt>サーバーの入力は不要</dt><dd>「設定」のサーバーのアドレスは空欄のままにします。あとでネットワークをまたいで同期したくなったら、サーバーを追加するか Tailscale を使います。ペアリングはそのままです。</dd></div>
+ </dl>
+ </div>
+ </section>
+
+ <section class="section" id="pair" aria-labelledby="pair-title">
+ <div class="wrap">
+ <p class="eyebrow">ステップ 1</p>
+ <h2 id="pair-title">2 台をペアリングする</h2>
+ <p class="intro">2 台ごとに一度ペアリングします。まだアプリを入れていなければ、先に<a href="../../ja/start/#app">はじめかた</a>の手順で入れてください。</p>
+ <div class="os-grid qs-grid">
+ <div>
+ <ol class="steps">
+ <li>一台で「デバイス」を開き、「デバイスを追加」をクリックします。5 分間有効な 6 桁のコードが表示されます。</li>
+ <li>もう一台でも「デバイスを追加」をクリックし、「コードを入力」に切り替えて入力し、「続ける」をクリックします。</li>
+ <li>両方の画面に同じ 2 行の指紋が表示されます。1 文字ずつ照合して一致していれば確定します。これでコピーが同期されます。</li>
+ </ol>
+ <figure class="figure-card qs-verify">
+ <img src="../../assets/screenshots/ja/card-verify-dark.png" width="1120" height="800" loading="lazy" alt="ペアリング時の「セキュリティ指紋を確認」ダイアログ。R8NF-2WTC-QL5J が表示され、もう一台の表示と完全に一致するか確かめるよう求めている">
+ </figure>
+ </div>
+ <figure class="shot">
+ <img src="../../assets/screenshots/ja/pairing-dark.png" width="2112" height="1472" loading="lazy" alt="デバイスを追加:ペアリングコード K7MP2X と、その下にこのコンピューターのアドレス 192.168.1.20">
+ </figure>
+ </div>
+ </div>
+ </section>
+
+ <section class="section" id="subnet" aria-labelledby="subnet-title">
+ <div class="wrap">
+ <p class="eyebrow">ステップ 2</p>
+ <h2 id="subnet-title">別のサブネットにある場合</h2>
+ <p class="intro">LAN 内の検出が届くのはひとつのサブネットの中だけです。2 台が別のサブネットにあっても互いに通信できるなら(会社でよくあります)、ペアリング時にアドレスをひとつ入力すれば使えます。</p>
+ <div class="os-grid qs-grid">
+ <div>
+ <ol class="steps">
+ <li>コードを表示している側では、コードの下にこのコンピューターのアドレスが出ています(例:<code>192.168.1.20</code>)。</li>
+ <li>コードを入力する側で「別のサブネットにありますか?」をクリックし、そのアドレスを入力して「続ける」をクリックします。</li>
+ <li>ペアリング後は、2 台ともお互いのアドレスを覚えています。片方のアドレスが変わっても、もう片方が同じなら自動で見つけ直します。両方が変わったときは、「デバイス」でそのデバイスの「…」メニューから「アドレスを入力」を選びます。</li>
+ </ol>
+ </div>
+ <figure class="shot">
+ <img src="../../assets/screenshots/ja/pairing-join-dark.png" width="2112" height="1472" loading="lazy" alt="コードを入力:コード K7MP2X を入力し、その下に開いたアドレス欄に 192.168.1.20 が入っている">
+ </figure>
+ </div>
+ <p class="note">サブネット同士がまったく通信できない場合(ゲストネットワークと社内ネットワークが分けられているなど)は、両方から届くコンピューターを経由して中継するしかありません。<a href="../../ja/server/">LAN にサーバーを置く</a>をご覧ください。</p>
+ </div>
+ </section>
+
+ <section class="section" id="faq" aria-labelledby="faq-title">
+ <div class="wrap">
+ <h2 id="faq-title">よくある質問</h2>
+ <div class="faq">
+ <details>
+ <summary>もう一台が見つからない</summary>
+ <div class="answer"><p>まず 2 台が同じネットワークにあり、どちらもバックグラウンド同期が有効か確認します。次に、コードを入力する側で相手のアドレスを入力してみてください。それで見つかるなら、サブネットが違うか、ネットワークが mDNS を通していません。</p><p>それでも見つからなければ、相手のファイアウォールを確認します。Windows なら「設定 → ローカルネットワーク」で「許可」をクリック、Mac なら「システム設定 → プライバシーとセキュリティ → ローカルネットワーク」で CopySync Daemon がオンになっていて、macOS のファイアウォールに止められていないかを確かめます。</p></div>
+ </details>
+ <details>
+ <summary>このネットワークの外でも同期できますか?</summary>
+ <div class="answer"><p>できません。戻ると自動で再開し、そのあいだにコピーしたものは相手の履歴に追加されます。ネットワークをまたいで同期するなら、<a href="../../ja/cloud/">公開サーバー</a>を追加するか <a href="../../ja/tailscale/">Tailscale</a> を使います。ペアリングはそのままです。</p></div>
+ </details>
+ <details>
+ <summary>アドレスが変わったら?</summary>
+ <div class="answer"><p>たいていは何もしなくて大丈夫です。同じサブネットなら mDNS でいつでも見つけ直し、別のサブネットでも片方のアドレスが同じなら自動でつながり直します。両方が変わったときは、「デバイス」でそのデバイスのアドレスをもう一度入力します。</p><p>動かさないデスクトップなら、ルーターの DHCP の設定でアドレスを固定しておくこともできます。</p></div>
+ </details>
+ <details>
+ <summary>同じネットワークの他の人に、自分のコンピューターが見えますか?</summary>
+ <div class="answer"><p>CopySync のデバイスがあることはわかりますが、誰のものかはわかりません。流しているのは毎日変わる匿名の識別子だけで、デバイス名もデバイス ID も含みません。ペアリングしていないデバイスからのメッセージはすべて捨てられ、ペアリングには両方の画面で指紋の照合が必要です。</p></div>
+ </details>
+ <details>
+ <summary>どのポートを使いますか?</summary>
+ <div class="answer"><p>接続情報のやり取りに UDP 8788(使用中ならランダムなポート)、mDNS に UDP 5353、つながったあとのデータには別のランダムな UDP ポートを使います。ルーターでの設定は何も要りません。</p></div>
+ </details>
+ </div>
+ </div>
+ </section>
+
+ <section class="closing" aria-labelledby="closing-title">
+ <div class="wrap">
+ <h2 class="display" id="closing-title">同じネットワークなら、<br>入れるだけで使える。</h2>
+ <div class="cta">
+ <a class="button" href="https://github.com/baiyuze/copysync/releases/latest/download/CopySync.dmg"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Mac 版をダウンロード</a>
+ <a class="button quiet" href="https://github.com/baiyuze/copysync/releases/latest/download/CopySync-Setup.exe"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Windows 版をダウンロード</a>
+ </div>
+ <p class="note">バージョン 1.3.4、無料・オープンソース。macOS 13 以降(Intel と Apple シリコン)、Windows 10・11。</p>
+ <a class="source" href="../../design/lan-mode.html">ローカルネットワーク直接接続の技術資料(中国語)</a>
+ </div>
+ </section>
+ </main>
+
+ <footer class="footer">
+ <div class="wrap">
+ <p>CopySync は GNU AGPL-3.0 のオープンソースです。商用ライセンスもあります。</p>
+ <nav aria-label="フッターのリンク">
+ <a href="https://github.com/baiyuze/copysync/releases">すべてのリリース</a>
+ <a href="https://github.com/baiyuze/copysync/blob/main/CHANGELOG.md">更新履歴</a>
+ <a href="https://baiyuze.github.io/copysync/design/nat-traversal.html">技術資料(中国語)</a>
+ <a href="https://github.com/baiyuze/copysync/blob/main/LICENSING.md">商用ライセンス</a>
+ <a href="https://github.com/baiyuze/copysync/issues">問題を報告</a>
+ </nav>
+ <nav aria-label="言語">
+ <a href="../../lan/" hreflang="zh-CN" lang="zh-CN" data-lang="zh">简体中文</a>
+ <a href="../../en/lan/" hreflang="en" lang="en" data-lang="en">English</a>
+ <a href="../../ja/lan/" hreflang="ja" lang="ja" data-lang="ja" aria-current="page">日本語</a>
+ </nav>
+ </div>
+ </footer>
+
+ <script src="../../assets/site.js" defer></script>
+ <script type="module" src="https://static.cloudflareinsights.com/beacon.min.js" data-cf-beacon='{"token": "7ee226baf4a949a397c4bfd69a9e7461"}'></script>
+</body>
+</html>
diff --git a/docs/ja/server/index.html b/docs/ja/server/index.html
index 5d55d33..19b2eb1 100644
--- a/docs/ja/server/index.html
+++ b/docs/ja/server/index.html
@@ -33,7 +33,7 @@
<a href="../../ja/start/">はじめかた</a>
<a class="wide" href="../../ja/#how">しくみ</a>
<a class="wide" href="../../ja/#faq">よくある質問</a>
- <a href="../../ja/start/#server" aria-current="true">サーバーの設置</a>
+ <a href="../../ja/start/#server" aria-current="true">接続方法</a>
<a class="wide" href="https://github.com/baiyuze/copysync">GitHub</a>
<a href="../../server/" hreflang="zh-CN" lang="zh-CN" data-lang="zh">简体中文</a>
<a href="../../en/server/" hreflang="en" lang="en" data-lang="en">English</a>
@@ -44,9 +44,10 @@
<main id="main">
<section class="hero guide-hero">
<div class="wrap">
- <p class="crumb"><a href="../../ja/">CopySync</a> / <a href="../../ja/start/#server">サーバーの設置</a></p>
+ <p class="crumb"><a href="../../ja/">CopySync</a> / <a href="../../ja/start/#server">接続方法</a></p>
<h1 class="display">LAN にサーバーを置く</h1>
<p class="lede">家や会社のコンピューターが同じネットワークにあるなら、クラウドサーバーは要りません。電源を入れたままのコンピューターを 1 台選び、スクリプトをダウンロードして実行し、表示されたアドレスを各コンピューターの CopySync に入力します。</p>
+ <p class="notice"><strong>同じネットワークなら、もうサーバーは要りません:</strong>アプリを入れてペアリングするだけです(<a href="../../ja/lan/">同じネットワークでの手順</a>)。このページは、2 つのサブネットがお互いに届かず、両方から届くコンピューターを経由して中継する必要がある場合に役立ちます。</p>
<ol class="guide-toc">
<li><a href="#prepare">準備</a></li>
<li><a href="#install">インストール</a></li>
@@ -350,7 +351,7 @@ Open in your firewall: TCP 8787 (signaling), UDP 3478 (STUN and TURN), UDP 32768
</details>
<details>
<summary>LAN の外でも同期できますか?</summary>
- <div class="answer"><p>できません。サーバーには LAN の中からしか届かないためです。別のネットワークからも同期したい場合は、ほかの 2 通りのどちらかに切り替えます:<a href="../../ja/cloud/">公開サーバー</a>、または <a href="../../ja/tailscale/">LAN + Tailscale</a>。</p></div>
+ <div class="answer"><p>できません。サーバーには LAN の中からしか届かないためです。別のネットワークからも同期したい場合は、<a href="../../ja/cloud/">公開サーバー</a>か <a href="../../ja/tailscale/">Tailscale</a> を使います。</p></div>
</details>
<details>
<summary>サーバーを動かすコンピューターでも CopySync を使う場合のアドレスは?</summary>
diff --git a/docs/ja/start/index.html b/docs/ja/start/index.html
index 75d4c63..1736087 100644
--- a/docs/ja/start/index.html
+++ b/docs/ja/start/index.html
@@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>はじめかた:3 ステップで CopySync を使い始める</title>
- <meta name="description" content="CopySync がはじめての方へ。各コンピューターにアプリを入れ、サーバーの置き方(LAN、Tailscale、クラウド)を選び、アドレスを入力してペアリングすれば、Mac と Windows のあいだでコピー&ペーストできます。グローバル IP は不要です。">
+ <meta name="description" content="CopySync がはじめての方へ。各コンピューターにアプリを入れ、同じネットワークならそのままペアリング(サーバー不要)、ネットワークをまたぐなら公開サーバーか Tailscale を選びます。あとは Mac と Windows のあいだでコピー&ペーストできます。">
<link rel="canonical" href="https://baiyuze.github.io/copysync/ja/start/">
<link rel="alternate" hreflang="zh-CN" href="https://baiyuze.github.io/copysync/start/">
<link rel="alternate" hreflang="en" href="https://baiyuze.github.io/copysync/en/start/">
@@ -13,7 +13,7 @@
<meta property="og:type" content="article">
<meta property="og:site_name" content="CopySync">
<meta property="og:title" content="はじめかた:3 ステップで CopySync を使い始める">
- <meta property="og:description" content="CopySync がはじめての方へ。各コンピューターにアプリを入れ、サーバーの置き方(LAN、Tailscale、クラウド)を選び、アドレスを入力してペアリングすれば、Mac と Windows のあいだでコピー&ペーストできます。グローバル IP は不要です。">
+ <meta property="og:description" content="CopySync がはじめての方へ。各コンピューターにアプリを入れ、同じネットワークならそのままペアリング(サーバー不要)、ネットワークをまたぐなら公開サーバーか Tailscale を選びます。あとは Mac と Windows のあいだでコピー&ペーストできます。">
<meta property="og:url" content="https://baiyuze.github.io/copysync/ja/start/">
<meta property="og:image" content="https://baiyuze.github.io/copysync/assets/og-en.png">
<meta property="og:locale" content="ja_JP">
@@ -33,7 +33,7 @@
<a href="./" aria-current="page">はじめかた</a>
<a class="wide" href="../../ja/#how">しくみ</a>
<a class="wide" href="../../ja/#faq">よくある質問</a>
- <a href="#server">サーバーの設置</a>
+ <a href="#server">接続方法</a>
<a class="wide" href="https://github.com/baiyuze/copysync">GitHub</a>
<a href="../../start/" hreflang="zh-CN" lang="zh-CN" data-lang="zh">简体中文</a>
<a href="../../en/start/" hreflang="en" lang="en" data-lang="en">English</a>
@@ -46,11 +46,10 @@
<div class="wrap">
<p class="crumb"><a href="../../ja/">CopySync</a> / はじめかた</p>
<h1 class="display">はじめかた</h1>
- <p class="lede">アプリを入れて、サーバーを用意し、2 台をペアリングします。最初の設定は 10 分ほど。そのあとはコピーするだけで同期されます。</p>
+ <p class="lede">アプリを入れて、接続方法を選び、2 台をペアリングします。同じネットワークなら数分で終わり、そのあとはコピーするだけで同期されます。</p>
<ol class="guide-toc">
<li><a href="#app">アプリを入れる</a></li>
- <li><a href="#server">サーバーを用意</a></li>
- <li><a href="#connect">アドレスを入力</a></li>
+ <li><a href="#server">接続方法を選ぶ</a></li>
<li><a href="#pair">ペアリング</a></li>
</ol>
</div>
@@ -68,7 +67,7 @@
<ol class="steps">
<li>CopySync.dmg をダウンロードして開き、CopySync を「アプリケーション」にドラッグします。</li>
<li>「アプリケーション」から開きます。<span class="aside">初回は「開発元を検証できません」と表示されます。「システム設定 → プライバシーとセキュリティ」を開き、ページ下部の「このまま開く」をクリックします。</span></li>
- <li>「バックグラウンド同期を有効にする」をクリックし、クリップボードの読み取りを聞かれたら許可します。</li>
+ <li>「バックグラウンド同期を有効にする」をクリックします。クリップボードの読み取りと、ローカルネットワーク上のデバイスを探すことについて聞かれたら、どちらも許可します。</li>
</ol>
<a class="button" href="https://github.com/baiyuze/copysync/releases/latest/download/CopySync.dmg"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Mac 版をダウンロード</a>
</div>
@@ -76,7 +75,7 @@
<h3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="4" width="18" height="12" rx="1.5"/><path d="M9 20h6M12 16v4"/></svg>Windows</h3>
<ol class="steps">
<li>CopySync-Setup.exe を実行します。管理者権限は要りません。<span class="aside">「Windows によって PC が保護されました」と出たら、「詳細情報」を押してから「実行」を押します。</span></li>
- <li>CopySync を開き、「バックグラウンド同期を有効にする」をクリックします。ウィンドウを閉じても通知領域で動き続けます。</li>
+ <li>CopySync を開き、「バックグラウンド同期を有効にする」をクリックします。ファイアウォールに聞かれたら許可します。ウィンドウを閉じても通知領域で動き続けます。</li>
</ol>
<a class="button" href="https://github.com/baiyuze/copysync/releases/latest/download/CopySync-Setup.exe"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Windows 版をダウンロード</a>
</div>
@@ -91,79 +90,79 @@
<section class="section" id="server" aria-labelledby="server-title">
<div class="wrap">
<p class="eyebrow">ステップ 2</p>
- <h2 id="server-title">サーバーを用意する</h2>
- <p class="intro">2 台はサーバーを通じてお互いを見つけます。コピーした内容がそこに保存されることはありません。公開サーバーはないので、3 通りの置き方から状況に合うものを選んでください。</p>
+ <h2 id="server-title">接続方法を選ぶ</h2>
+ <p class="intro">同じネットワークなら、準備は何も要りません。ネットワークをまたぐときは、公開サーバーか Tailscale を通じてお互いを見つけます。コピーした内容がそこに保存されることはありません。</p>
<div class="os-tabs" data-tabs="plan">
- <div class="tablist" role="tablist" aria-label="サーバーの置き方" hidden>
+ <div class="tablist" role="tablist" aria-label="接続方法" hidden>
+ <button type="button" role="tab" id="tab-plan-lan" aria-controls="plan-lan">同じネットワーク</button>
<button type="button" role="tab" id="tab-plan-cloud" aria-controls="plan-cloud">公開サーバー</button>
- <button type="button" role="tab" id="tab-plan-lan" aria-controls="plan-lan">LAN</button>
- <button type="button" role="tab" id="tab-plan-ts" aria-controls="plan-ts">LAN + Tailscale</button>
+ <button type="button" role="tab" id="tab-plan-ts" aria-controls="plan-ts">Tailscale</button>
</div>
- <section class="os" id="plan-cloud" role="tabpanel" aria-labelledby="tab-plan-cloud">
- <h3 class="os-title">公開サーバー</h3>
+ <section class="os" id="plan-lan" role="tabpanel" aria-labelledby="tab-plan-lan">
+ <h3 class="os-title">同じネットワーク</h3>
<div class="plan-grid">
<div>
<ol class="steps">
- <li>クラウドのセキュリティグループで TCP 8787、UDP 3478、UDP 32768–60999 を開けます。</li>
- <li>ssh でログインし、インストールスクリプトをダウンロードして、グローバル IP を付けて実行します:<code>sudo ./install.sh グローバルIP</code>。</li>
- <li>ブラウザーで <code>http://グローバルIP:8787/healthz</code> を開き、ok と表示されれば完了です。</li>
+ <li>各コンピューターにアプリを入れ、「バックグラウンド同期を有効にする」をクリックします。</li>
+ <li>Windows ファイアウォールに聞かれたら許可し、macOS にローカルネットワーク上のデバイスを探してよいか聞かれたら、それも許可します。</li>
+ <li>一台でコードを表示し、もう一台で入力して指紋を照合します。別のサブネットにある場合は、コードの下に表示されたアドレスも入力します(<a href="../../ja/lan/#subnet">同じネットワークでの手順</a>)。</li>
</ol>
- <p class="plan-address">各コンピューターに入力するアドレス:<code>ws://グローバルIP:8787/signal</code></p>
- <a class="button quiet" href="../../ja/cloud/">公開サーバーでの手順 →</a>
+ <p class="plan-address">サーバーのアドレスを入力する必要はありません。</p>
+ <a class="button quiet" href="../../ja/lan/">同じネットワークでの手順 →</a>
</div>
<div class="plan-card">
- <svg viewBox="0 0 240 112" aria-hidden="true"><rect class="p-dev" x="98" y="8" width="44" height="12" rx="3"/><rect class="p-dev" x="98" y="23" width="44" height="12" rx="3"/><rect class="p-net" x="6" y="50" width="100" height="56" rx="10"/><rect class="p-net" x="134" y="50" width="100" height="56" rx="10"/><path class="p-sig" d="M56 64V22h42M184 64V22h-42"/><path class="p-data" d="M80 80h80"/><rect class="p-dev" x="37" y="64" width="38" height="24" rx="3"/><path class="p-dev" d="M32 93h48"/><rect class="p-dev" x="165" y="64" width="38" height="24" rx="3"/><path class="p-dev" d="M160 93h48"/></svg>
+ <svg viewBox="0 0 240 112" aria-hidden="true"><rect class="p-net" x="6" y="6" width="228" height="100" rx="14"/><path class="p-data" d="M82 52h76"/><rect class="p-dev" x="39" y="40" width="38" height="24" rx="3"/><path class="p-dev" d="M34 69h48"/><rect class="p-dev" x="163" y="40" width="38" height="24" rx="3"/><path class="p-dev" d="M158 69h48"/></svg>
<dl>
- <div><dt>向いている</dt><dd>コンピューターが別々のネットワークにあり、どこからでも同期したい場合。ネットワークをまたぐならいちばん手間がかかりません。</dd></div>
- <div><dt>必要なもの</dt><dd>グローバル IP を持つ Linux のクラウドサーバー(最小構成で可)と root 権限。</dd></div>
- <div><dt>注意</dt><dd>クラウドサーバーの費用がかかります。直接つながらないときの中継はサーバーの帯域に左右されます。中国本土では、ICP 登録のないドメインは使えないので IP を入力します。</dd></div>
+ <div><dt>向いている</dt><dd>コンピューターがすべて同じ Wi‑Fi か有線ネットワークにある場合(家や会社など)。</dd></div>
+ <div><dt>必要なもの</dt><dd>何もありません。各コンピューターにアプリを入れるだけです。</dd></div>
+ <div><dt>注意</dt><dd>そのネットワークの外では同期せず、戻ると再開します。会社などで有線と Wi‑Fi のサブネットが分かれている場合は、ペアリング時にアドレスもひとつ入力します。</dd></div>
</dl>
</div>
</div>
</section>
- <section class="os" id="plan-lan" role="tabpanel" aria-labelledby="tab-plan-lan">
- <h3 class="os-title">LAN</h3>
+ <section class="os" id="plan-cloud" role="tabpanel" aria-labelledby="tab-plan-cloud">
+ <h3 class="os-title">公開サーバー</h3>
<div class="plan-grid">
<div>
<ol class="steps">
- <li>サーバーにするコンピューターのアドレスをルーターで固定します。</li>
- <li>OS に合ったサーバーをダウンロードしてインストールスクリプトを実行します。<a href="../../ja/server/#windows">Windows</a> は <code>install.cmd</code> をダブルクリック、<a href="../../ja/server/#macos">macOS</a> と <a href="../../ja/server/#linux">Linux</a> は <code>./install.sh</code> を実行します。</li>
- <li>スクリプトが LAN のアドレスを見つけ、最後にアプリに入力するアドレスを表示します。</li>
+ <li>クラウドのセキュリティグループで TCP 8787、UDP 3478、UDP 32768–60999 を開けます。</li>
+ <li>ssh でログインし、インストールスクリプトをダウンロードして、グローバル IP を付けて実行します:<code>sudo ./install.sh グローバルIP</code>。</li>
+ <li>各コンピューターの「設定」にサーバーのアドレス <code>ws://グローバルIP:8787/signal</code> を入力して Return を押し、ペアリングします。</li>
</ol>
- <p class="plan-address">各コンピューターに入力するアドレス:<code>ws://LANのアドレス:8787/signal</code>(例:<code>ws://192.168.1.20:8787/signal</code>)</p>
- <a class="button quiet" href="../../ja/server/">LAN での設置手順 →</a>
+ <p class="plan-address">ブラウザーで <code>http://グローバルIP:8787/healthz</code> を開き、ok と表示されれば完了です。</p>
+ <a class="button quiet" href="../../ja/cloud/">公開サーバーでの手順 →</a>
</div>
<div class="plan-card">
- <svg viewBox="0 0 240 112" aria-hidden="true"><rect class="p-net" x="6" y="6" width="228" height="100" rx="14"/><rect class="p-dev" x="98" y="16" width="44" height="12" rx="3"/><rect class="p-dev" x="98" y="31" width="44" height="12" rx="3"/><path class="p-sig" d="M58 66V30h40M182 66V30h-40"/><path class="p-data" d="M82 82h76"/><rect class="p-dev" x="39" y="66" width="38" height="24" rx="3"/><path class="p-dev" d="M34 95h48"/><rect class="p-dev" x="163" y="66" width="38" height="24" rx="3"/><path class="p-dev" d="M158 95h48"/></svg>
+ <svg viewBox="0 0 240 112" aria-hidden="true"><rect class="p-dev" x="98" y="8" width="44" height="12" rx="3"/><rect class="p-dev" x="98" y="23" width="44" height="12" rx="3"/><rect class="p-net" x="6" y="50" width="100" height="56" rx="10"/><rect class="p-net" x="134" y="50" width="100" height="56" rx="10"/><path class="p-sig" d="M56 64V22h42M184 64V22h-42"/><path class="p-data" d="M80 80h80"/><rect class="p-dev" x="37" y="64" width="38" height="24" rx="3"/><path class="p-dev" d="M32 93h48"/><rect class="p-dev" x="165" y="64" width="38" height="24" rx="3"/><path class="p-dev" d="M160 93h48"/></svg>
<dl>
- <div><dt>向いている</dt><dd>コンピューターがすべて同じ Wi‑Fi か有線ネットワークにある場合(家や会社など)。</dd></div>
- <div><dt>必要なもの</dt><dd>電源を入れたままの Windows・Mac・Linux。同期するコンピューターの 1 台でもかまいません。</dd></div>
- <div><dt>注意</dt><dd>そのネットワークの外では同期せず、戻ると再開します。そのコンピューターの電源が切れたりスリープしたりしているあいだも止まります。</dd></div>
+ <div><dt>向いている</dt><dd>コンピューターが別々のネットワークにあり、どこからでも同期したい場合。ネットワークをまたぐならいちばん手間がかかりません。</dd></div>
+ <div><dt>必要なもの</dt><dd>グローバル IP を持つ Linux のクラウドサーバー(最小構成で可)と root 権限。</dd></div>
+ <div><dt>注意</dt><dd>クラウドサーバーの費用がかかります。直接つながらないときの中継はサーバーの帯域に左右されます。中国本土では、ICP 登録のないドメインは使えないので IP を入力します。</dd></div>
</dl>
</div>
</div>
</section>
<section class="os" id="plan-ts" role="tabpanel" aria-labelledby="tab-plan-ts">
- <h3 class="os-title">LAN + Tailscale</h3>
+ <h3 class="os-title">Tailscale</h3>
<div class="plan-grid">
<div>
<ol class="steps">
<li>各コンピューターに Tailscale を入れ、同じアカウントでサインインします。</li>
- <li>サーバーにするコンピューターで <code>tailscale ip -4</code> を実行し、100 で始まるアドレスを控えます。</li>
- <li>そのアドレスを付けてサーバーをインストールします(例:<code>install.cmd 100.101.102.103</code>、<code>./install.sh 100.101.102.103</code>)。</li>
+ <li>ペアリングする相手のコンピューターで <code>tailscale ip -4</code> を実行し、100 で始まるアドレスを控えます。</li>
+ <li>ペアリングのとき、コードを入力する側で「別のサブネットにありますか?」をクリックし、そのアドレスを入力します。</li>
</ol>
- <p class="plan-address">各コンピューターに入力するアドレス:<code>ws://Tailscaleのアドレス:8787/signal</code></p>
+ <p class="plan-address">サーバーは要りません。Tailscale のアドレスは変わらないので、入力はペアリングのときの一度だけです。</p>
<a class="button quiet" href="../../ja/tailscale/">Tailscale での手順 →</a>
</div>
<div class="plan-card">
- <svg viewBox="0 0 240 112" aria-hidden="true"><rect class="p-ts" x="2" y="2" width="236" height="108" rx="16"/><rect class="p-net" x="12" y="12" width="98" height="88" rx="10"/><rect class="p-net" x="130" y="12" width="98" height="88" rx="10"/><rect class="p-dev" x="39" y="20" width="44" height="12" rx="3"/><rect class="p-dev" x="39" y="35" width="44" height="12" rx="3"/><path class="p-sig" d="M180 64V54H61v-7M61 64V54"/><path class="p-data" d="M85 80h71"/><rect class="p-dev" x="42" y="64" width="38" height="24" rx="3"/><path class="p-dev" d="M37 93h48"/><rect class="p-dev" x="161" y="64" width="38" height="24" rx="3"/><path class="p-dev" d="M156 93h48"/></svg>
+ <svg viewBox="0 0 240 112" aria-hidden="true"><rect class="p-ts" x="2" y="2" width="236" height="108" rx="16"/><rect class="p-net" x="12" y="12" width="98" height="88" rx="10"/><rect class="p-net" x="130" y="12" width="98" height="88" rx="10"/><path class="p-data" d="M85 52h71"/><rect class="p-dev" x="42" y="40" width="38" height="24" rx="3"/><path class="p-dev" d="M37 69h48"/><rect class="p-dev" x="161" y="40" width="38" height="24" rx="3"/><path class="p-dev" d="M156 69h48"/></svg>
<dl>
<div><dt>向いている</dt><dd>コンピューターが別々のネットワークにあり、公開サーバーがない場合。</dd></div>
- <div><dt>必要なもの</dt><dd>サーバー用に電源を入れたままのコンピューター 1 台と、すべてのコンピューターに同じアカウントの Tailscale。</dd></div>
- <div><dt>注意</dt><dd>CopySync を使うコンピューターすべてに Tailscale が必要で、自宅の 1 台は電源を入れたままにします。Tailscale が P2P でつなげないときは DERP サーバーで中継され、遅くなることがあります。</dd></div>
+ <div><dt>必要なもの</dt><dd>すべてのコンピューターに、同じアカウントでサインインした Tailscale。</dd></div>
+ <div><dt>注意</dt><dd>CopySync を使うコンピューターすべてに Tailscale が必要で、接続したままにします。Tailscale が P2P でつなげないときは DERP サーバーで中継され、遅くなることがあります。</dd></div>
</dl>
</div>
</div>
@@ -172,32 +171,16 @@
</div>
</section>
- <section class="section" id="connect" aria-labelledby="connect-title">
- <div class="wrap">
- <p class="eyebrow">ステップ 3</p>
- <h2 id="connect-title">各コンピューターにサーバーのアドレスを入力</h2>
- <ol class="flow">
- <li><h3>設定を開く</h3><p>各コンピューターで CopySync を開き、「設定」に進みます。サーバーを動かしているコンピューターも同じです。</p></li>
- <li><h3>アドレスを入力</h3><p>「シグナリングサーバー」に前のステップで表示されたアドレスを入力し、Return か Enter を押します。</p></li>
- <li><h3>状態を確認</h3><p>「接続状態」が緑の「接続済み」になれば、そのコンピューターは準備完了です。</p></li>
- </ol>
- <figure class="shot">
- <img src="../../assets/screenshots/ja/settings-lan-dark.png" width="2112" height="1472" loading="lazy" alt="CopySync の設定画面:シグナリングサーバーは ws://192.168.1.20:8787/signal、接続状態は接続済み">
- </figure>
- <p class="note">「未接続」のままなら<a href="../../ja/server/#faq">よくある質問</a>をご覧ください。</p>
- </div>
- </section>
-
<section class="section" id="pair" aria-labelledby="pair-title">
<div class="wrap">
- <p class="eyebrow">ステップ 4</p>
+ <p class="eyebrow">ステップ 3</p>
<h2 id="pair-title">2 台をペアリングする</h2>
<p class="intro">2 台ごとに一度ペアリングすれば、あとは何もする必要はありません。</p>
<div class="os-grid qs-grid">
<div>
<ol class="steps">
- <li>一台で「デバイス」を開き、「デバイスを追加」をクリックします。5 分間有効な 6 桁のコードが表示されます。</li>
- <li>もう一台でも「デバイスを追加」をクリックし、「コードを入力」に切り替えて入力します。</li>
+ <li>一台で「デバイス」を開き、「デバイスを追加」をクリックします。5 分間有効な 6 桁のコードと、その下にこのコンピューターのアドレスが表示されます。</li>
+ <li>もう一台でも「デバイスを追加」をクリックし、「コードを入力」に切り替えて入力します。<span class="aside">別のサブネットにある場合や Tailscale を使う場合は、「別のサブネットにありますか?」をクリックして相手のアドレスも入力します。</span></li>
<li>両方の画面に同じ 2 行の指紋が表示されます。1 文字ずつ照合して一致していれば確定します。<span class="aside">途中で誰かがあなたのデバイスになりすますのを防ぐ手順です。省略しないでください。</span></li>
</ol>
<figure class="figure-card qs-verify">
@@ -205,7 +188,7 @@
</figure>
</div>
<figure class="shot">
- <img src="../../assets/screenshots/ja/pairing-dark.png" width="2112" height="1472" loading="lazy" alt="デバイスを追加:ペアリングコード K7MP2X を表示し、もう一台で入力する">
+ <img src="../../assets/screenshots/ja/pairing-dark.png" width="2112" height="1472" loading="lazy" alt="デバイスを追加:ペアリングコード K7MP2X と、その下にこのコンピューターのアドレス 192.168.1.20">
</figure>
</div>
</div>
@@ -215,7 +198,7 @@
<div class="wrap">
<h2 class="display" id="closing-title">コピーしてみましょう。</h2>
<p class="lede">一台でテキスト、画像、ファイルをコピーし、もう一台で ⌘V か Ctrl+V を押します。どちらでコピーしたものも履歴に残ります。</p>
- <p class="note">困ったときは:<a href="../../ja/server/#faq">LAN のよくある質問</a> · <a href="../../ja/tailscale/#faq">Tailscale のよくある質問</a> · <a href="https://github.com/baiyuze/copysync/issues">問題を報告</a></p>
+ <p class="note">困ったときは:<a href="../../ja/lan/#faq">同じネットワークのよくある質問</a> · <a href="../../ja/tailscale/#faq">Tailscale のよくある質問</a> · <a href="../../ja/cloud/#faq">公開サーバーのよくある質問</a> · <a href="https://github.com/baiyuze/copysync/issues">問題を報告</a></p>
</div>
</section>
</main>
diff --git a/docs/ja/tailscale/index.html b/docs/ja/tailscale/index.html
index edae1e0..1049077 100644
--- a/docs/ja/tailscale/index.html
+++ b/docs/ja/tailscale/index.html
@@ -3,8 +3,8 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
- <title>Tailscale で CopySync をネットワークをまたいで使う:グローバル IP なしで自宅と会社を同期</title>
- <meta name="description" content="サーバーは自宅で電源を入れたままのコンピューターに置き、各コンピューターに Tailscale を入れれば、同じ LAN にあるのと同じように使えます。グローバル IP もルーターの設定も不要で、会社や外出先からもクリップボードを同期できます。Windows・Mac・Linux の手順つき。">
+ <title>Tailscale で CopySync をネットワークをまたいで使う:サーバーなしで自宅と会社を同期</title>
+ <meta name="description" content="各コンピューターに Tailscale を入れて同じアカウントでサインインし、ペアリング時に相手の Tailscale アドレスを入力するだけ。グローバル IP もサーバーも、電源を入れたままのコンピューターも要らず、会社や外出先からもクリップボードを同期できます。">
<link rel="canonical" href="https://baiyuze.github.io/copysync/ja/tailscale/">
<link rel="alternate" hreflang="zh-CN" href="https://baiyuze.github.io/copysync/tailscale/">
<link rel="alternate" hreflang="en" href="https://baiyuze.github.io/copysync/en/tailscale/">
@@ -12,8 +12,8 @@
<meta name="theme-color" content="#141416">
<meta property="og:type" content="article">
<meta property="og:site_name" content="CopySync">
- <meta property="og:title" content="Tailscale で CopySync をネットワークをまたいで使う:グローバル IP なしで自宅と会社を同期">
- <meta property="og:description" content="サーバーは自宅で電源を入れたままのコンピューターに置き、各コンピューターに Tailscale を入れれば、同じ LAN にあるのと同じように使えます。グローバル IP もルーターの設定も不要で、会社や外出先からもクリップボードを同期できます。Windows・Mac・Linux の手順つき。">
+ <meta property="og:title" content="Tailscale で CopySync をネットワークをまたいで使う:サーバーなしで自宅と会社を同期">
+ <meta property="og:description" content="各コンピューターに Tailscale を入れて同じアカウントでサインインし、ペアリング時に相手の Tailscale アドレスを入力するだけ。グローバル IP もサーバーも、電源を入れたままのコンピューターも要らず、会社や外出先からもクリップボードを同期できます。">
<meta property="og:url" content="https://baiyuze.github.io/copysync/ja/tailscale/">
<meta property="og:image" content="https://baiyuze.github.io/copysync/assets/og-en.png">
<meta property="og:locale" content="ja_JP">
@@ -33,7 +33,7 @@
<a href="../../ja/start/">はじめかた</a>
<a class="wide" href="../../ja/#how">しくみ</a>
<a class="wide" href="../../ja/#faq">よくある質問</a>
- <a href="../../ja/start/#server" aria-current="true">サーバーの設置</a>
+ <a href="../../ja/start/#server" aria-current="true">接続方法</a>
<a class="wide" href="https://github.com/baiyuze/copysync">GitHub</a>
<a href="../../tailscale/" hreflang="zh-CN" lang="zh-CN" data-lang="zh">简体中文</a>
<a href="../../en/tailscale/" hreflang="en" lang="en" data-lang="en">English</a>
@@ -44,15 +44,13 @@
<main id="main">
<section class="hero guide-hero">
<div class="wrap">
- <p class="crumb"><a href="../../ja/">CopySync</a> / <a href="../../ja/start/#server">サーバーの設置</a></p>
+ <p class="crumb"><a href="../../ja/">CopySync</a> / <a href="../../ja/start/#server">接続方法</a></p>
<h1 class="display">Tailscale でネットワークをまたぐ</h1>
- <p class="lede">グローバル IP がなくても、自宅と会社のあいだで同期できます。サーバーは自宅に置いたまま、各コンピューターに Tailscale を入れれば、同じ LAN にあるのと同じように扱えます。ルーターの設定もクラウドサーバーも要りません。</p>
+ <p class="lede">グローバル IP がなく、サーバーも置きたくない?各コンピューターに Tailscale を入れ、ペアリング時に相手の Tailscale アドレスを入力すれば、自宅でも会社でも同期できます。</p>
<ol class="guide-toc">
<li><a href="#join">Tailscale を入れる</a></li>
<li><a href="#address">アドレスを調べる</a></li>
- <li><a href="#install">サーバーを入れる</a></li>
- <li><a href="#check">確認</a></li>
- <li><a href="#clients">アドレスの入力</a></li>
+ <li><a href="#pair">ペアリング</a></li>
<li><a href="#faq">よくある質問</a></li>
</ol>
</div>
@@ -61,45 +59,30 @@
<section class="section" id="overview" aria-labelledby="overview-title">
<div class="wrap">
<h2 id="overview-title">同じ LAN にあるように</h2>
- <p class="intro">Tailscale はデバイスどうしをつなぐネットワークツールです。同じアカウントでサインインしたデバイスにはそれぞれ 100 で始まる固定のアドレスが割り当てられ、実際にどこのネットワークにいても、そのアドレスで互いに届きます。CopySync のサーバーをこのアドレスでインストールし、アプリにも同じアドレスを入力すれば、あとは LAN に置く場合と同じです。</p>
+ <p class="intro">Tailscale はデバイスをひとつのプライベートネットワークにまとめるツールです。同じアカウントでサインインしたデバイスには、100 で始まる固定のアドレスが割り当てられ、実際にどのネットワークにいてもそのアドレスで互いに届きます。CopySync はペアリング時に相手のこのアドレスを覚え、あとは同じネットワークにいるのと同じように直接つながります。</p>
<figure class="diagram">
- <svg viewBox="0 0 960 460" role="img" aria-labelledby="ts-title ts-desc">
- <title id="ts-title">Tailscale 経由の CopySync</title>
- <desc id="ts-desc">サーバーと Windows PC は自宅に、Mac は会社にあります。3 台とも Tailscale を使い、同じ仮想ネットワーク上で 100 で始まるアドレスを持っています。2 台はシグナリングでサーバー 100.101.102.103 に接続し、コピーした内容は 2 台のあいだを直接流れ、直接つながらないときだけサーバーで中継します。</desc>
- <rect class="d-ts" x="8" y="8" width="944" height="404" rx="22"/>
- <text class="d-ts-label" x="32" y="42">Tailscale の仮想ネットワーク:各デバイスに 100 で始まるアドレス</text>
- <rect class="d-box" x="340" y="64" width="280" height="122" rx="14"/>
- <text class="d-title" x="480" y="102" text-anchor="middle">サーバー</text>
- <text class="d-sub" x="480" y="130" text-anchor="middle">自宅、電源を入れたまま</text>
- <text class="d-ip" x="480" y="164" text-anchor="middle">100.101.102.103</text>
- <path class="d-sig" d="M150 266V96H340"/>
- <path class="d-sig" d="M810 266V96H620"/>
- <path class="d-relay" d="M206 266V154H340"/>
- <path class="d-relay" d="M754 266V154H620"/>
- <text class="d-note" x="164" y="86">シグナリング TCP 8787</text>
- <text class="d-note" x="220" y="214">中継 UDP 3478(直接不可のとき)</text>
- <rect class="d-box" x="40" y="266" width="240" height="126" rx="14"/>
- <text class="d-title" x="160" y="306" text-anchor="middle">Mac</text>
- <text class="d-sub" x="160" y="334" text-anchor="middle">会社</text>
- <text class="d-ip" x="160" y="368" text-anchor="middle">100.88.20.5</text>
- <rect class="d-box" x="680" y="266" width="240" height="126" rx="14"/>
- <text class="d-title" x="800" y="306" text-anchor="middle">Windows</text>
- <text class="d-sub" x="800" y="334" text-anchor="middle">自宅</text>
- <text class="d-ip" x="800" y="368" text-anchor="middle">100.92.41.17</text>
- <path class="d-direct" d="M280 330H680"/>
- <text class="d-label" x="480" y="316" text-anchor="middle">直接接続、二重の暗号化</text>
- <text class="d-note" x="480" y="358" text-anchor="middle">内容は 2 台のあいだだけを流れる</text>
- <g class="d-legend" transform="translate(40 444)">
- <path class="d-direct" d="M0 0H28"/><text x="38" y="5">データ(直接)</text>
- <path class="d-relay" d="M250 0H278"/><text x="288" y="5">データ(中継、予備)</text>
- <path class="d-sig" d="M560 0H588"/><text x="598" y="5">シグナリング</text>
- </g>
+ <svg viewBox="0 0 960 330" role="img" aria-labelledby="ts-title ts-desc">
+ <title id="ts-title">Tailscale で使う CopySync</title>
+ <desc id="ts-desc">Mac は会社、Windows は自宅にあり、どちらも Tailscale を入れて、同じプライベートネットワークの中にそれぞれ 100 で始まるアドレスを持っています。コピーした内容は 2 台のあいだを直接流れ、サーバーはありません。</desc>
+ <rect class="d-ts" x="8" y="8" width="944" height="314" rx="22"/>
+ <text class="d-ts-label" x="32" y="42">Tailscale のネットワーク:各デバイスに 100 で始まるアドレス</text>
+ <rect class="d-box" x="40" y="100" width="240" height="160" rx="14"/>
+ <text class="d-title" x="160" y="146" text-anchor="middle">Mac</text>
+ <text class="d-sub" x="160" y="174" text-anchor="middle">会社</text>
+ <text class="d-ip" x="160" y="226" text-anchor="middle">100.88.20.5</text>
+ <rect class="d-box" x="680" y="100" width="240" height="160" rx="14"/>
+ <text class="d-title" x="800" y="146" text-anchor="middle">Windows</text>
+ <text class="d-sub" x="800" y="174" text-anchor="middle">自宅</text>
+ <text class="d-ip" x="800" y="226" text-anchor="middle">100.92.41.17</text>
+ <path class="d-direct" d="M280 190H680"/>
+ <text class="d-label" x="480" y="176" text-anchor="middle">直接接続、二重に暗号化</text>
+ <text class="d-note" x="480" y="218" text-anchor="middle">コピーした内容は 2 台のあいだだけを流れる</text>
</svg>
</figure>
<ul class="points ports">
- <li><strong>サーバーは自宅のまま。</strong>電源を入れたままの Windows・Mac・Linux なら何でもよく、LAN に置く場合と同じです。</li>
- <li><strong>すべてのコンピューターに Tailscale を入れ、</strong>同じアカウントでサインインします。サーバーを動かすコンピューターも同様です。</li>
- <li><strong>二重の暗号化。</strong>Tailscale の WireGuard トンネルの中を、CopySync 自身のエンドツーエンド暗号化接続が通ります。Tailscale にもサーバーにも内容は見えません。</li>
+ <li><strong>サーバーは要らない。</strong>電源を入れたままのコンピューターも要りません。2 台が起動していて Tailscale につながっていれば同期します。</li>
+ <li><strong>アドレスの入力は一度だけ。</strong>Tailscale のアドレスは変わらないので、ペアリング時に一度入力すれば、あとは 2 台が自動でお互いを見つけます。</li>
+ <li><strong>二重の暗号化。</strong>Tailscale の WireGuard トンネルの中を、CopySync 自身のエンドツーエンド暗号化接続が通ります。Tailscale にも内容は見えません。</li>
</ul>
</div>
</section>
@@ -108,10 +91,10 @@
<div class="wrap">
<h2 id="prepare-title">始める前に</h2>
<dl class="fallbacks">
- <div><dt>電源を入れたままのコンピューター</dt><dd>サーバーを動かします。条件は<a href="../../ja/server/#prepare">LAN に置く場合</a>と同じで、電源が切れたりスリープしたりすると同期は止まります。Tailscale のアドレスは変わらないので、ルーターでアドレスを固定する必要はありません。</dd></div>
<div><dt>Tailscale のアカウント</dt><dd>個人利用は無料で、Google、Microsoft、GitHub、Apple のアカウントでサインインできます。すべてのデバイスで同じアカウントを使います。</dd></div>
- <div><dt>すべてのコンピューターに Tailscale</dt><dd>Windows、macOS、Linux 用のクライアントがあります。CopySync を使うコンピューターにはすべて必要で、自宅から動かないものも同じです。</dd></div>
- <div><dt>ZeroTier でも同様</dt><dd>各デバイスに固定の仮想アドレスを割り当てるツールなら同じ手順で使えます。サーバーをそのアドレスでインストールし、アプリにも入力します。ここでは Tailscale を例にします。</dd></div>
+ <div><dt>すべてのコンピューターに Tailscale</dt><dd>Windows、macOS、Linux 用のクライアントがあります。CopySync を使うコンピューターすべてに入れ、接続したままにします。</dd></div>
+ <div><dt>CopySync を入れておく</dt><dd>各コンピューターにアプリを入れ、バックグラウンド同期を有効にしておきます(<a href="../../ja/start/#app">はじめかた</a>)。サーバーのアドレスは空欄のままで大丈夫です。</dd></div>
+ <div><dt>ZeroTier でも可</dt><dd>各デバイスに固定の仮想アドレスを割り当てるツールなら同じ手順で使えます。ペアリング時にそのアドレスを入力します。ここでは Tailscale を例にします。</dd></div>
</dl>
</div>
</section>
@@ -120,7 +103,7 @@
<div class="wrap">
<p class="eyebrow">ステップ 1</p>
<h2 id="join-title">各コンピューターに Tailscale を入れる</h2>
- <p class="intro">サーバーを動かすコンピューターと、同期するすべてのコンピューターに入れて、同じアカウントでサインインします。</p>
+ <p class="intro">同期するコンピューターすべてに入れて、同じアカウントでサインインします。</p>
<div class="os-grid qs-grid">
<div class="os-steps">
<ol class="steps">
@@ -131,12 +114,11 @@
<a class="button" href="https://tailscale.com/download"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Tailscale をダウンロード</a>
</div>
<div class="os-figures">
- <figure class="browser listing" role="img" aria-label="Tailscale の管理画面のデバイス一覧(イメージ):mac-mini がサーバーで 100.101.102.103、macbook-pro は 100.88.20.5、home-pc は 100.92.41.17">
+ <figure class="browser listing" role="img" aria-label="Tailscale の管理画面のデバイス一覧(イメージ):macbook-pro は 100.88.20.5、home-pc は 100.92.41.17">
<div class="b-bar"><span class="t-lights" aria-hidden="true"><i></i><i></i><i></i></span><span class="b-url">login.tailscale.com/admin/machines</span></div>
<table>
<thead><tr><th scope="col">デバイス</th><th scope="col">Tailscale のアドレス</th><th scope="col">OS</th></tr></thead>
<tbody>
- <tr class="hl"><td>mac-mini <em>サーバー</em></td><td>100.101.102.103</td><td>macOS</td></tr>
<tr><td>macbook-pro</td><td>100.88.20.5</td><td>macOS</td></tr>
<tr><td>home-pc</td><td>100.92.41.17</td><td>Windows</td></tr>
</tbody>
@@ -145,11 +127,11 @@
</div>
</div>
<div class="server-notes">
- <h3>サーバーを動かすコンピューターでは、もうひと手間</h3>
+ <h3>Tailscale をつないだままにする</h3>
<ul class="points">
- <li><strong>Windows:</strong>通知領域の Tailscale アイコンを右クリックし、「Preferences」で「Run unattended」をオンにします。そうしないとサインアウトしたときに Tailscale が切れ、外のコンピューターからサーバーに届かなくなります。</li>
- <li><strong>Mac:</strong>ログインしたまま、スリープさせず、Tailscale がログイン時に開くようにしておきます。CopySync のサーバーもログイン中だけ動きます。</li>
- <li><strong>キーの有効期限をオフに:</strong>Tailscale は初期設定で 180 日ごとにデバイスの再サインインを求めます。管理画面の Machines ページで、サーバーの行の右端のメニューから「Disable key expiry」を選びます。</li>
+ <li><strong>Windows:</strong>通知領域の Tailscale アイコンを右クリックし、「Preferences」で「Run unattended」をオンにすると、サインアウトしても接続が続きます。</li>
+ <li><strong>Mac:</strong>Tailscale がログイン時に開くようにしておきます。</li>
+ <li><strong>キーの有効期限をオフに:</strong>Tailscale は初期設定で 180 日ごとにデバイスの再サインインを求めます。ほとんど動かさないコンピューターは、管理画面の Machines ページでその行の右端のメニューから「Disable key expiry」を選べます。</li>
</ul>
</div>
</div>
@@ -158,197 +140,37 @@
<section class="section" id="address" aria-labelledby="address-title">
<div class="wrap">
<p class="eyebrow">ステップ 2</p>
- <h2 id="address-title">サーバーの Tailscale アドレスを調べる</h2>
- <p class="intro">サーバーを動かすコンピューターで、メニューバー(Windows では通知領域)の Tailscale アイコンをクリックすると、メニューにこのデバイスのアドレスが表示されます。ターミナルで <code>tailscale ip -4</code> を実行しても分かります。</p>
+ <h2 id="address-title">相手の Tailscale アドレスを調べる</h2>
+ <p class="intro">ペアリングするもう一台で、Tailscale のアイコン(Mac はメニューバー、Windows は通知領域)をクリックすると、メニューにこのデバイスのアドレスが表示されます。ターミナルで <code>tailscale ip -4</code> を実行しても分かります。</p>
<div class="address-term">
- <figure class="term" role="img" aria-label="ターミナルで tailscale ip -4 を実行すると、このデバイスの Tailscale アドレス 100.101.102.103 が表示される">
- <div class="t-bar mac"><span class="t-lights" aria-hidden="true"><i></i><i></i><i></i></span><span class="t-title">mac-mini — zsh</span></div>
-<pre class="t-body"><span class="t-prompt">%</span> tailscale ip -4
-<span class="t-url">100.101.102.103</span></pre>
+ <figure class="term" role="img" aria-label="PowerShell で tailscale ip -4 を実行すると、このデバイスの Tailscale アドレス 100.92.41.17 が表示される">
+ <div class="t-bar mac"><span class="t-lights" aria-hidden="true"><i></i><i></i><i></i></span><span class="t-title">home-pc — PowerShell</span></div>
+<pre class="t-body"><span class="t-prompt">&gt;</span> tailscale ip -4
+<span class="t-url">100.92.41.17</span></pre>
</figure>
</div>
- <p class="note">以下では <code>100.101.102.103</code> を例にします。あなたのアドレスに置き換えてください。</p>
+ <p class="note">ここでは自宅の Windows の <code>100.92.41.17</code> を例にします。ご自分のアドレスに読み替えてください。</p>
</div>
</section>
- <section class="section" id="install" aria-labelledby="install-title">
+ <section class="section" id="pair" aria-labelledby="pair-title">
<div class="wrap">
<p class="eyebrow">ステップ 3</p>
- <h2 id="install-title">そのアドレスでサーバーを入れる</h2>
- <p class="intro">インストールスクリプトは初期設定で LAN のアドレスを使います。ここでは Tailscale のアドレスを指定して、外のコンピューターからもサーバーの中継を使えるようにします。すでに<a href="../../ja/server/">LAN での手順</a>で入れている場合は、アドレスを付けてもう一度実行するだけで、設定は引き継がれます。</p>
- <div class="os-tabs" data-tabs="os">
- <div class="tablist" role="tablist" aria-label="サーバーを動かすコンピューターの OS" hidden>
- <button type="button" role="tab" id="tab-windows" aria-controls="windows">Windows</button>
- <button type="button" role="tab" id="tab-macos" aria-controls="macos">macOS</button>
- <button type="button" role="tab" id="tab-linux" aria-controls="linux">Linux</button>
+ <h2 id="pair-title">ペアリング時にこのアドレスを入力</h2>
+ <p class="intro">同じネットワークでのペアリングと同じで、アドレスをひとつ入力するだけです。</p>
+ <div class="os-grid qs-grid">
+ <div>
+ <ol class="steps">
+ <li>自宅の Windows で「デバイス」を開き、「デバイスを追加」をクリックして、6 桁のコードを控えます。</li>
+ <li>会社の Mac で「デバイスを追加」をクリックし、「コードを入力」に切り替えて入力します。続けて「別のサブネットにありますか?」をクリックし、<code>100.92.41.17</code> を入力して「続ける」をクリックします。</li>
+ <li>両方の画面に同じ 2 行の指紋が表示されたら、照合して確定します。これで 2 台はどこにいても同期します。</li>
+ </ol>
</div>
-
- <section class="os" id="windows" role="tabpanel" aria-labelledby="tab-windows">
- <h3 class="os-title"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="4" width="18" height="12" rx="1.5"/><path d="M9 20h6M12 16v4"/></svg>Windows</h3>
- <div class="os-grid">
- <div class="os-steps">
- <ol class="steps">
- <li>copysync-server-windows-amd64.zip をダウンロードし、右クリックで「すべて展開」します。インストール済みなら、前に展開したフォルダーを使います。</li>
- <li>展開したフォルダーを開き、上部のアドレスバーに <code>cmd</code> と入力して Enter を押し、コマンドプロンプトを開きます。</li>
- <li><code>install.cmd 100.101.102.103</code>(あなたのアドレス)を実行し、ユーザーアカウント制御が出たら「はい」を押します。</li>
- <li>インストールは新しく開くウィンドウで進みます。最後に表示されるアドレスが <code>ws://100.101.102.103:8787/signal</code> になっていれば成功です。</li>
- </ol>
- <a class="button" href="https://github.com/baiyuze/copysync/releases/latest/download/copysync-server-windows-amd64.zip"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Windows 版サーバーをダウンロード</a>
- <ul class="points">
- <li><strong>ファイアウォールは設定済み:</strong>スクリプトが追加する受信規則はすべてのネットワークに適用され、Tailscale のアダプターも含まれます。</li>
- <li>「Windows によって PC が保護されました」と出たら、「詳細情報」から「実行」を押します。</li>
- </ul>
- </div>
- <div class="os-figures">
- <figure class="term" role="img" aria-label="展開したフォルダーで開いたコマンドプロンプトで install.cmd 100.101.102.103 を実行する">
- <div class="t-bar win"><span class="t-tab"><svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M3 5.5 10.5 4.5v7H3zM11.5 4.4 21 3v8.5h-9.5zM3 12.5h7.5v7L3 18.5zM11.5 12.5H21V21l-9.5-1.4z"/></svg>コマンド プロンプト</span><span class="t-ctl" aria-hidden="true"><i></i><i></i><i></i></span></div>
-<pre class="t-body"><span class="t-prompt">C:\Users\me\Downloads\copysync-server-windows-amd64&gt;</span>install.cmd 100.101.102.103</pre>
- </figure>
- <figure class="term" role="img" aria-label="install.cmd の実行後のウィンドウ。最後にアドレス ws://100.101.102.103:8787/signal を表示">
- <div class="t-bar win"><span class="t-tab"><svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M3 5.5 10.5 4.5v7H3zM11.5 4.4 21 3v8.5h-9.5zM3 12.5h7.5v7L3 18.5zM11.5 12.5H21V21l-9.5-1.4z"/></svg>管理者: Windows PowerShell</span><span class="t-ctl" aria-hidden="true"><i></i><i></i><i></i></span></div>
-<pre class="t-body"><span class="t-step">&gt; Stopping the running version</span>
-<span class="t-step">&gt; Installing to C:\Program Files\CopySync Server</span>
-<span class="t-step">&gt; Registering the service CopySyncServer (relay address 100.101.102.103)</span>
-<span class="t-step">&gt; Allowing it through Windows Firewall</span>
-<span class="t-step">&gt; Starting</span>
- √ Running
-
-Installed: copysync-server 1.3.4. It runs as a Windows service and starts with Windows.
-In CopySync on each computer, set Settings &gt; Signaling server to:
-
- <span class="t-url">ws://100.101.102.103:8787/signal</span>
-
- Program C:\Program Files\CopySync Server
- Logs C:\ProgramData\CopySync Server\server.log
- Restart Restart-Service CopySyncServer (in an administrator PowerShell)
- Uninstall double-click uninstall.cmd</pre>
- </figure>
- </div>
- </div>
- </section>
-
- <section class="os" id="macos" role="tabpanel" aria-labelledby="tab-macos">
- <h3 class="os-title"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="4" y="5" width="16" height="11" rx="1.5"/><path d="M2 19h20"/></svg>macOS</h3>
- <div class="os-grid">
- <div class="os-steps">
- <ol class="steps">
- <li>「ターミナル」を開き、次の行を順に実行します。最後の行はあなたのアドレスに置き換えます:
- <div class="code">
- <button class="copy" type="button" data-done="コピーしました">コピー</button>
-<pre><code>curl -LO https://github.com/baiyuze/copysync/releases/latest/download/copysync-server-macos.tar.gz
-tar xzf copysync-server-macos.tar.gz
-cd copysync-server-macos
-./install.sh 100.101.102.103</code></pre>
- </div></li>
- <li>最後に表示されるアドレスが <code>ws://100.101.102.103:8787/signal</code> になっていれば成功です。</li>
- </ol>
- <ul class="points">
- <li>インストール済みなら、同じフォルダーで <code>./install.sh 100.101.102.103</code> を実行するだけです。設定は引き継がれます。</li>
- <li><strong>macOS のファイアウォールがオンなら、</strong>スクリプトの最後に copysync-server を許可するコマンドが表示されます。</li>
- </ul>
- </div>
- <div class="os-figures">
- <figure class="term" role="img" aria-label="ターミナルで ./install.sh 100.101.102.103 を実行した出力。最後にアドレス ws://100.101.102.103:8787/signal を表示">
- <div class="t-bar mac"><span class="t-lights" aria-hidden="true"><i></i><i></i><i></i></span><span class="t-title">copysync-server-macos — zsh</span></div>
-<pre class="t-body"><span class="t-prompt">%</span> ./install.sh 100.101.102.103
-<span class="t-step">▶ Stopping the running version</span>
-<span class="t-step">▶ Installing to /Users/me/Library/Application Support/CopySync Server</span>
-<span class="t-step">▶ Writing the LaunchAgent (relay address 100.101.102.103)</span>
-<span class="t-step">▶ Starting</span>
- ✓ Running
-
-Installed: copysync-server 1.3.4. It starts whenever you log in to this Mac.
-In CopySync on each computer, set Settings → Signaling server to:
-
- <span class="t-url">ws://100.101.102.103:8787/signal</span>
-
- Logs /Users/me/Library/Logs/CopySync/server.log
- Restart launchctl kickstart -k gui/501/com.copysync.server
- Uninstall ./install.sh uninstall</pre>
- </figure>
- </div>
- </div>
- </section>
-
- <section class="os" id="linux" role="tabpanel" aria-labelledby="tab-linux">
- <h3 class="os-title"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="4" y="4" width="16" height="7" rx="1.5"/><rect x="4" y="13" width="16" height="7" rx="1.5"/><path d="M8 7.5h.01M8 16.5h.01"/></svg>Linux</h3>
- <div class="os-grid">
- <div class="os-steps">
- <ol class="steps">
- <li>次の行を順に実行します。最後の行はあなたのアドレスに置き換えます:<span class="aside">ARM では <code>amd64</code> を <code>arm64</code> に置き換えます。</span>
- <div class="code">
- <button class="copy" type="button" data-done="コピーしました">コピー</button>
-<pre><code>curl -LO https://github.com/baiyuze/copysync/releases/latest/download/copysync-server-linux-amd64.tar.gz
-tar xzf copysync-server-linux-amd64.tar.gz
-cd copysync-server-linux-amd64
-sudo ./install.sh 100.101.102.103</code></pre>
- </div></li>
- <li>最後に表示されるアドレスが <code>ws://100.101.102.103:8787/signal</code> になっていれば成功です。</li>
- </ol>
- <div class="switch">
- <p><strong>インストール済みの場合:</strong>Linux のスクリプトは既存の設定を書き換えません。設定の中の古いアドレスを Tailscale のアドレスに置き換え(下の <code>192.168.1.20</code> を元のアドレスに)、サービスを再起動します:</p>
- <div class="code">
- <button class="copy" type="button" data-done="コピーしました">コピー</button>
-<pre><code>sudo sed -i 's/192.168.1.20/100.101.102.103/g' /etc/copysync/server.env
-sudo systemctl restart copysync-server</code></pre>
- </div>
- </div>
- </div>
- <div class="os-figures">
- <figure class="term" role="img" aria-label="sudo ./install.sh 100.101.102.103 の出力。最後にアドレス ws://100.101.102.103:8787/signal を表示">
- <div class="t-bar mac"><span class="t-lights" aria-hidden="true"><i></i><i></i><i></i></span><span class="t-title">ssh 100.101.102.103</span></div>
-<pre class="t-body"><span class="t-prompt">$</span> sudo ./install.sh 100.101.102.103
-<span class="t-step">▶ Installing the binary to /usr/local/bin</span>
-<span class="t-step">▶ Writing the systemd unit</span>
-<span class="t-step">▶ Writing /etc/copysync/server.env (relay address 100.101.102.103)</span>
-<span class="t-step">▶ Starting</span>
- ✓ Running
-
-Installed: copysync-server 1.3.4
-In CopySync on each computer, set Settings → Signaling server to:
-
- <span class="t-url">ws://100.101.102.103:8787/signal</span>
-
- Config /etc/copysync/server.env
- Logs journalctl -u copysync-server -f
- Restart systemctl restart copysync-server
- Uninstall sudo ./install.sh uninstall
-
-Open in your firewall: TCP 8787 (signaling), UDP 3478 (STUN and TURN), UDP 32768-60999 (relay ports, assigned by the OS)</pre>
- </figure>
- </div>
- </div>
- </section>
+ <figure class="shot">
+ <img src="../../assets/screenshots/ja/pairing-join-ts-dark.png" width="2112" height="1472" loading="lazy" alt="コードを入力:コード K7MP2X を入力し、アドレス欄に Tailscale のアドレス 100.92.41.17 が入っている">
+ </figure>
</div>
- </div>
- </section>
-
- <section class="section" id="check" aria-labelledby="check-title">
- <div class="wrap">
- <p class="eyebrow">ステップ 4</p>
- <h2 id="check-title">外から確認する</h2>
- <p class="intro">自宅のネットワークの外にあるコンピューター(スマートフォンのテザリングにつないだノートパソコンなど)で Tailscale が接続されていることを確かめ、ブラウザーで <code>http://100.101.102.103:8787/healthz</code> を開きます。次の 1 行が表示されれば、外からサーバーに届いています。</p>
- <figure class="browser" role="img" aria-label="ブラウザーで http://100.101.102.103:8787/healthz を開くと、サーバーの状態 ok とバージョンが表示される">
- <div class="b-bar"><span class="t-lights" aria-hidden="true"><i></i><i></i><i></i></span><span class="b-url">http://100.101.102.103:8787/healthz</span></div>
- <pre class="b-body">{"status":"ok","version":"1.3.4"}</pre>
- </figure>
- <p class="note">開けない場合は、下の<a href="#faq">よくある質問</a>をご覧ください。</p>
- </div>
- </section>
-
- <section class="section" id="clients" aria-labelledby="clients-title">
- <div class="wrap">
- <p class="eyebrow">ステップ 5</p>
- <h2 id="clients-title">各コンピューターにアドレスを入力</h2>
- <ol class="flow">
- <li><h3>設定を開く</h3><p>各コンピューターで CopySync を開き、「設定」に進みます。サーバーを動かしているコンピューターも同じです。</p></li>
- <li><h3>Tailscale のアドレスを入力</h3><p>「シグナリングサーバー」に <code>ws://100.101.102.103:8787/signal</code>(あなたのアドレス)を入力し、Return か Enter を押します。</p></li>
- <li><h3>状態を確認</h3><p>「接続状態」が緑の「接続済み」になれば完了です。まだペアリングしていなければ「デバイス」でペアリングします。</p></li>
- </ol>
- <figure class="shot">
- <img src="../../assets/screenshots/ja/settings-tailscale-dark.png" width="2112" height="1472" loading="lazy" alt="CopySync の設定画面:シグナリングサーバーは ws://100.101.102.103:8787/signal、接続状態は接続済み">
- </figure>
- <p class="note">自宅のコンピューターにも LAN ではなく Tailscale のアドレスを入力してください。持ち出しても入れ直す必要がありません。全員が自宅にいるときも、データは自宅のネットワークの中だけを流れます。</p>
+ <p class="note">2 台とも自宅にいるときは、CopySync が LAN の中で直接相手を見つけるので、データが遠回りすることはありません。</p>
</div>
</section>
@@ -361,27 +183,27 @@ Open in your firewall: TCP 8787 (signaling), UDP 3478 (STUN and TURN), UDP 32768
<div class="answer"><p>CopySync の「直接接続」は、2 台が Tailscale のネットワーク上で直接つながっていることを指します。Tailscale 自身が 2 台を P2P でつなげないときは、遠くにあることもある DERP サーバーで中継します。</p><p>ターミナルで <code>tailscale ping 相手のアドレス</code> を実行し、via DERP なら Tailscale が中継中、via IP とポートなら P2P です。会社や学校のネットワークでは中継になりやすく、DERP サーバーを自分で立てるか、別のツールを試す方法があります。</p></div>
</details>
<details>
- <summary>接続状態が「未接続」のまま</summary>
- <div class="answer"><p>まずそのコンピューターで Tailscale が接続されているか確かめ、ブラウザーで <code>http://サーバーの Tailscale アドレス:8787/healthz</code> を開きます。</p><p>開けなければ、サーバーのコンピューターがスリープしていないか、そこで Tailscale がオンラインか(Windows では Run unattended、Mac ではログインしたまま)、サーバーが LAN のアドレスのままになっていないか、Mac や Linux のファイアウォールに止められていないかを確認します。</p></div>
+ <summary>ペアリングで相手が見つからない</summary>
+ <div class="answer"><p>まず両方で Tailscale がつながっているか確かめます。ターミナルで <code>tailscale ping 相手のアドレス</code> を実行し、応答があれば再度試してください。</p><p>ping は通るのに見つからないなら、相手のファイアウォールが止めている可能性が高いです。相手が Windows なら CopySync の「設定 → ローカルネットワーク」で「許可」をクリック、Mac なら「システム設定 → プライバシーとセキュリティ → ローカルネットワーク」で CopySync Daemon をオンにします。</p></div>
</details>
<details>
<summary>すべてのコンピューターに Tailscale が必要ですか?</summary>
- <div class="answer"><p>はい。入っていないコンピューターは 100 で始まるアドレスに届かず、外のコンピューターからもそのコンピューターに届きません。自宅から動かないものも同じです。</p></div>
+ <div class="answer"><p>はい。入っていないコンピューターは 100 で始まるアドレスに届きません。同じネットワークにある 2 台なら不要です(<a href="../../ja/lan/">同じネットワークでの手順</a>)。</p></div>
</details>
<details>
- <summary>LAN の手順でインストール済みです。やり直しが必要?</summary>
- <div class="answer"><p>いいえ。Tailscale のアドレスを付けてインストールスクリプトをもう一度実行し(Linux は設定を編集)、各コンピューターのサーバーアドレスを Tailscale のものに変えるだけです。ペアリング済みのデバイスはそのままです。</p></div>
+ <summary>以前の手順で自宅にサーバーを置きました。まだ必要?</summary>
+ <div class="answer"><p>もう要りません。各コンピューターの「設定」でサーバーのアドレスを消し、自宅のコンピューターからサーバーをアンインストールしてください。ペアリング済みのデバイスはそのままです。残しておいても問題はなく、サーバーと Tailscale は併用できます。</p></div>
</details>
<details>
<summary>Tailscale にコピーした内容は見えますか?</summary>
<div class="answer"><p>見えません。Tailscale の接続は WireGuard でエンドツーエンド暗号化され、その中を CopySync 自身の DTLS 暗号化接続が通ります。どちらの層も開けるのは 2 台のコンピューターだけです。Tailscale のサーバーが扱うのはデバイスの公開鍵とアドレスだけで、中継サーバーも暗号化されたパケットを転送するだけです。</p></div>
</details>
<details>
- <summary>サーバーの Tailscale アドレスは変わりますか?</summary>
- <div class="answer"><p>通常は変わりません。アドレスはデバイスに付いていて、再起動やネットワークの変更でも同じです。デバイスを Tailscale から削除して追加し直したときだけ変わります。</p></div>
+ <summary>Tailscale のアドレスは変わりますか?</summary>
+ <div class="answer"><p>通常は変わりません。アドレスはデバイスに付いていて、再起動やネットワークの変更でも同じです。デバイスを Tailscale から削除して追加し直したときだけ変わります。変わったときは、「デバイス」でそのデバイスのアドレスをもう一度入力します。</p></div>
</details>
<details>
- <summary>グローバル IP があります。Tailscale は必要?</summary>
+ <summary>公開サーバーがあります。Tailscale は必要?</summary>
<div class="answer"><p>不要です。グローバル IP を持つマシンにサーバーを置き、すべてのコンピューターにそのアドレスを入力してください(<a href="../../ja/cloud/">公開サーバーでの手順</a>)。</p></div>
</details>
</div>
@@ -390,13 +212,13 @@ Open in your firewall: TCP 8787 (signaling), UDP 3478 (STUN and TURN), UDP 32768
<section class="closing" aria-labelledby="closing-title">
<div class="wrap">
- <h2 class="display" id="closing-title">サーバーは自宅に。<br>クリップボードはあなたと一緒に。</h2>
+ <h2 class="display" id="closing-title">サーバーなしで、<br>クリップボードはあなたと一緒に。</h2>
<div class="cta">
<a class="button" href="https://github.com/baiyuze/copysync/releases/latest/download/CopySync.dmg"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Mac 版をダウンロード</a>
<a class="button quiet" href="https://github.com/baiyuze/copysync/releases/latest/download/CopySync-Setup.exe"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Windows 版をダウンロード</a>
</div>
<p class="note">バージョン 1.3.4、無料・オープンソース。macOS 13 以降(Intel と Apple シリコン)、Windows 10・11。</p>
- <a class="source" href="../../ja/server/">LAN での設置手順に戻る</a>
+ <a class="source" href="../../ja/lan/">同じネットワークでの手順に戻る</a>
</div>
</section>
</main>
diff --git a/docs/lan/index.html b/docs/lan/index.html
new file mode 100644
index 0000000..ec4d2a7
--- /dev/null
+++ b/docs/lan/index.html
@@ -0,0 +1,210 @@
+<!doctype html>
+<html lang="zh-CN">
+<head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <title>在同一网络里使用 CopySync:不用服务器,配对就能同步</title>
+ <meta name="description" content="两台电脑在同一个 Wi‑Fi 或有线网络里时,CopySync 不需要服务器:装好 App,输入 6 位配对码,就能在 Mac 与 Windows 之间同步剪贴板和文件。不在同一网段时,配对时多输入一个地址。">
+ <link rel="canonical" href="https://baiyuze.github.io/copysync/lan/">
+ <link rel="alternate" hreflang="zh-CN" href="https://baiyuze.github.io/copysync/lan/">
+ <link rel="alternate" hreflang="en" href="https://baiyuze.github.io/copysync/en/lan/">
+ <link rel="alternate" hreflang="ja" href="https://baiyuze.github.io/copysync/ja/lan/">
+ <meta name="theme-color" content="#141416">
+ <meta property="og:type" content="article">
+ <meta property="og:site_name" content="CopySync">
+ <meta property="og:title" content="在同一网络里使用 CopySync:不用服务器,配对就能同步">
+ <meta property="og:description" content="两台电脑在同一个 Wi‑Fi 或有线网络里时,CopySync 不需要服务器:装好 App,输入 6 位配对码,就能在 Mac 与 Windows 之间同步剪贴板和文件。不在同一网段时,配对时多输入一个地址。">
+ <meta property="og:url" content="https://baiyuze.github.io/copysync/lan/">
+ <meta property="og:image" content="https://baiyuze.github.io/copysync/assets/og.png">
+ <meta property="og:locale" content="zh_CN">
+ <meta name="twitter:card" content="summary_large_image">
+ <link rel="icon" href="../assets/favicon.svg" type="image/svg+xml">
+ <link rel="icon" href="../assets/favicon-32.png" sizes="32x32" type="image/png">
+ <link rel="apple-touch-icon" href="../assets/apple-touch-icon.png">
+ <link rel="stylesheet" href="../assets/site.css">
+</head>
+<body>
+ <a class="skip" href="#main">跳到正文</a>
+
+ <header class="bar">
+ <div class="wrap">
+ <a class="brand" href=".././" aria-label="CopySync 首页"><img src="../assets/icon.svg" alt="" width="26" height="26">CopySync</a>
+ <nav aria-label="页面导航">
+ <a href="../start/">快速开始</a>
+ <a class="wide" href=".././#how">工作原理</a>
+ <a class="wide" href=".././#faq">常见问题</a>
+ <a href="../start/#server" aria-current="true">连接方式</a>
+ <a class="wide" href="https://github.com/baiyuze/copysync">GitHub</a>
+ <a href="../en/lan/" hreflang="en" lang="en" data-lang="en">English</a>
+ <a href="../ja/lan/" hreflang="ja" lang="ja" data-lang="ja">日本語</a>
+ </nav>
+ </div>
+ </header>
+
+ <main id="main">
+ <section class="hero guide-hero">
+ <div class="wrap">
+ <p class="crumb"><a href=".././">CopySync</a> / <a href="../start/#server">连接方式</a></p>
+ <h1 class="display">在同一网络里直接用</h1>
+ <p class="lede">两台电脑连着同一个路由器,就不需要服务器。装好 App,输入配对码,之后复制就会同步。</p>
+ <ol class="guide-toc">
+ <li><a href="#prepare">开始之前</a></li>
+ <li><a href="#pair">配对</a></li>
+ <li><a href="#subnet">不在同一网段</a></li>
+ <li><a href="#faq">常见问题</a></li>
+ </ol>
+ </div>
+ </section>
+
+ <section class="section" id="overview" aria-labelledby="overview-title">
+ <div class="wrap">
+ <h2 id="overview-title">不需要服务器</h2>
+ <p class="intro">同一个网络里的两台电脑,靠 mDNS 互相发现、直接交换连接信息,然后建立加密的直连。没有服务器,也不需要一台一直开着的电脑。</p>
+ <figure class="diagram">
+ <svg viewBox="0 0 960 330" role="img" aria-labelledby="lan-title lan-desc">
+ <title id="lan-title">同一网络里的 CopySync</title>
+ <desc id="lan-desc">同一个局域网里,Mac(192.168.1.20)与 Windows(192.168.1.35)通过 mDNS 互相发现,经 UDP 8788 交换连接信息,复制的内容在两台电脑之间直连传输,没有服务器。</desc>
+ <rect class="d-lan" x="8" y="8" width="944" height="314" rx="22"/>
+ <text class="d-lan-label" x="32" y="42">局域网:同一个 Wi‑Fi 或有线网络</text>
+ <rect class="d-box" x="40" y="120" width="240" height="140" rx="14"/>
+ <text class="d-title" x="160" y="170" text-anchor="middle">Mac</text>
+ <text class="d-sub" x="160" y="198" text-anchor="middle">装着 CopySync</text>
+ <text class="d-ip" x="160" y="234" text-anchor="middle">192.168.1.20</text>
+ <rect class="d-box" x="680" y="120" width="240" height="140" rx="14"/>
+ <text class="d-title" x="800" y="170" text-anchor="middle">Windows</text>
+ <text class="d-sub" x="800" y="198" text-anchor="middle">装着 CopySync</text>
+ <text class="d-ip" x="800" y="234" text-anchor="middle">192.168.1.35</text>
+ <path class="d-sig" d="M280 150H680"/>
+ <text class="d-note" x="480" y="138" text-anchor="middle">mDNS 互相发现,UDP 8788 交换连接信息</text>
+ <path class="d-direct" d="M280 214H680"/>
+ <text class="d-label" x="480" y="200" text-anchor="middle">直连,端到端加密</text>
+ <text class="d-note" x="480" y="242" text-anchor="middle">复制的内容只在两台电脑之间传输</text>
+ </svg>
+ </figure>
+ <ul class="points ports">
+ <li><strong>自动发现。</strong>每台电脑用 mDNS 在局域网里广播自己,广播里只有一个每天都变的匿名标识,看不出是谁的电脑。</li>
+ <li><strong>直连。</strong>复制的内容在两台电脑之间直接传输,速度就是局域网的速度。</li>
+ <li><strong>安全照旧。</strong>配对时核对两行安全指纹,之后的每条消息都带签名,同一网络里的其他人冒充不了你的设备。</li>
+ </ul>
+ </div>
+ </section>
+
+ <section class="section" id="prepare" aria-labelledby="prepare-title">
+ <div class="wrap">
+ <h2 id="prepare-title">开始之前</h2>
+ <dl class="fallbacks">
+ <div><dt>在同一个网络里</dt><dd>两台电脑连着同一个路由器就行,Wi‑Fi 与有线混用也可以。访客网络、开了「AP 隔离」的 Wi‑Fi 不让设备互相访问;公司里有线和无线常常不在一个网段,这时看下面的<a href="#subnet">不在同一网段</a>。</dd></div>
+ <div><dt>Windows 防火墙</dt><dd>第一次运行时,Windows 会问是否允许 CopySync 通过防火墙,选允许。点过取消的话,在 CopySync 的「设置 → 局域网」里点「放行」,会请求一次管理员权限。</dd></div>
+ <div><dt>macOS 的本地网络权限</dt><dd>macOS 15 起,第一次连接局域网里的设备时,系统会问是否允许 CopySync Daemon 查找本地网络上的设备,选允许。拒绝过的话,到「系统设置 → 隐私与安全性 → 本地网络」里打开它。</dd></div>
+ <div><dt>不用填服务器</dt><dd>「设置」里的服务器地址留空就行。以后要跨网络同步,再填上服务器或者改用 Tailscale,已经配对的设备不用重新配对。</dd></div>
+ </dl>
+ </div>
+ </section>
+
+ <section class="section" id="pair" aria-labelledby="pair-title">
+ <div class="wrap">
+ <p class="eyebrow">第 1 步</p>
+ <h2 id="pair-title">把两台电脑配对</h2>
+ <p class="intro">每两台电脑之间配对一次。还没装 App 的话,先按<a href="../start/#app">快速开始</a>装好。</p>
+ <div class="os-grid qs-grid">
+ <div>
+ <ol class="steps">
+ <li>在一台电脑上打开「设备」,点「添加设备」,会显示一个 6 位配对码,5 分钟内有效。</li>
+ <li>在另一台电脑上同样点「添加设备」,切到「输入配对码」,输入它,点「继续」。</li>
+ <li>两块屏幕会显示同样的两行安全指纹。逐字核对一致后,再点确认。之后复制就会同步。</li>
+ </ol>
+ <figure class="figure-card qs-verify">
+ <img src="../assets/screenshots/card-verify-dark.png" width="1120" height="800" loading="lazy" alt="配对时的「核对安全指纹」对话框,显示 R8NF-2WTC-QL5J,要求与另一台电脑上显示的完全一致">
+ </figure>
+ </div>
+ <figure class="shot">
+ <img src="../assets/screenshots/pairing-dark.png" width="2112" height="1472" loading="lazy" alt="添加设备:显示配对码 K7MP2X,下面是本机地址 192.168.1.20">
+ </figure>
+ </div>
+ </div>
+ </section>
+
+ <section class="section" id="subnet" aria-labelledby="subnet-title">
+ <div class="wrap">
+ <p class="eyebrow">第 2 步</p>
+ <h2 id="subnet-title">不在同一网段</h2>
+ <p class="intro">局域网发现只在一个网段里有效。两台电脑在不同网段、但网段之间互通时(公司里常见),配对时多输入一个地址就行。</p>
+ <div class="os-grid qs-grid">
+ <div>
+ <ol class="steps">
+ <li>显示配对码的那台,在配对码下面能看到本机的地址,比如 <code>192.168.1.20</code>。</li>
+ <li>输入配对码的那台,点「不在同一网段?」,填上这个地址,再点「继续」。</li>
+ <li>配对之后,两台会记住彼此的地址。一台换了地址时,只要另一台没换,就会自动重新找到;两台都换了时,在「设备」里点那台设备的「…」菜单,选「输入它的地址」。</li>
+ </ol>
+ </div>
+ <figure class="shot">
+ <img src="../assets/screenshots/pairing-join-dark.png" width="2112" height="1472" loading="lazy" alt="输入配对码:填好配对码 K7MP2X,下面展开的地址框里填着 192.168.1.20">
+ </figure>
+ </div>
+ <p class="note">两个网段之间完全不通时(比如访客网络与办公网络隔开),只能经一台两边都能访问的电脑中转,见<a href="../server/">在局域网里部署服务器</a>。</p>
+ </div>
+ </section>
+
+ <section class="section" id="faq" aria-labelledby="faq-title">
+ <div class="wrap">
+ <h2 id="faq-title">常见问题</h2>
+ <div class="faq">
+ <details>
+ <summary>找不到另一台电脑?</summary>
+ <div class="answer"><p>先确认两台连着同一个网络、都启用了后台同步。再试试在输入配对码的那台填上对方的地址:这样能找到的话,说明两台不在同一网段,或者网络挡住了 mDNS。</p><p>还是找不到,就看对方的防火墙:对方是 Windows 的话,在它的「设置 → 局域网」里点「放行」;是 Mac 的话,确认「系统设置 → 隐私与安全性 → 本地网络」里打开了 CopySync Daemon,系统防火墙也没有拦着它。</p></div>
+ </details>
+ <details>
+ <summary>离开这个网络后还能同步吗?</summary>
+ <div class="answer"><p>不能,回到这个网络后自动恢复,这期间复制的内容会补发到对方的复制记录里。要在不同网络之间同步,加一台<a href="../cloud/">公网服务器</a>,或者改用<a href="../tailscale/">Tailscale</a>,已经配对的设备不用重新配对。</p></div>
+ </details>
+ <details>
+ <summary>地址变了怎么办?</summary>
+ <div class="answer"><p>一般不用管。同一网段里靠 mDNS 随时能找到;不同网段时,只要有一台的地址没变,就能自动重新连上。两台都换了地址时,在「设备」里给那台设备重新输入一次地址。</p><p>常放着不动的台式机,可以在路由器的「DHCP 静态分配」里给它固定一个地址。</p></div>
+ </details>
+ <details>
+ <summary>同一网络里的其他人会看到我的电脑吗?</summary>
+ <div class="answer"><p>能看到网络里有一台 CopySync,但看不出是谁的:广播里只有一个每天都变的匿名标识,没有设备名,也没有设备 ID。没有和你配对过的设备,发来的消息一律丢弃;配对还要两边核对安全指纹。</p></div>
+ </details>
+ <details>
+ <summary>用了哪些端口?</summary>
+ <div class="answer"><p>UDP 8788 用来交换连接信息(被占用时换一个随机端口),mDNS 用 UDP 5353,连上之后的数据走另一个随机的 UDP 端口。不需要在路由器上做任何设置。</p></div>
+ </details>
+ </div>
+ </div>
+ </section>
+
+ <section class="closing" aria-labelledby="closing-title">
+ <div class="wrap">
+ <h2 class="display" id="closing-title">同一个网络,<br>装好就能用。</h2>
+ <div class="cta">
+ <a class="button" href="https://github.com/baiyuze/copysync/releases/latest/download/CopySync.dmg"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>下载 Mac 版</a>
+ <a class="button quiet" href="https://github.com/baiyuze/copysync/releases/latest/download/CopySync-Setup.exe"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>下载 Windows 版</a>
+ </div>
+ <p class="note">版本 1.3.4,免费开源。macOS 13 及以上,Intel 与 Apple 芯片通用;Windows 10、11。</p>
+ <a class="source" href="../design/lan-mode.html">局域网直连的技术方案</a>
+ </div>
+ </section>
+ </main>
+
+ <footer class="footer">
+ <div class="wrap">
+ <p>CopySync 以 GNU AGPL-3.0 开源,另提供商业授权。</p>
+ <nav aria-label="页脚链接">
+ <a href="https://github.com/baiyuze/copysync/releases">所有版本</a>
+ <a href="https://github.com/baiyuze/copysync/blob/main/CHANGELOG.md">更新记录</a>
+ <a href="https://baiyuze.github.io/copysync/design/nat-traversal.html">技术方案</a>
+ <a href="https://github.com/baiyuze/copysync/blob/main/LICENSING.md">商业授权</a>
+ <a href="https://github.com/baiyuze/copysync/issues">反馈问题</a>
+ </nav>
+ <nav aria-label="语言">
+ <a href="../lan/" hreflang="zh-CN" lang="zh-CN" data-lang="zh" aria-current="page">简体中文</a>
+ <a href="../en/lan/" hreflang="en" lang="en" data-lang="en">English</a>
+ <a href="../ja/lan/" hreflang="ja" lang="ja" data-lang="ja">日本語</a>
+ </nav>
+ </div>
+ </footer>
+
+ <script src="../assets/site.js" defer></script>
+ <script type="module" src="https://static.cloudflareinsights.com/beacon.min.js" data-cf-beacon='{"token": "7ee226baf4a949a397c4bfd69a9e7461"}'></script>
+</body>
+</html>
diff --git a/docs/server/index.html b/docs/server/index.html
index ff04560..12c7689 100644
--- a/docs/server/index.html
+++ b/docs/server/index.html
@@ -33,7 +33,7 @@
<a href="../start/">快速开始</a>
<a class="wide" href=".././#how">工作原理</a>
<a class="wide" href=".././#faq">常见问题</a>
- <a href="../start/#server" aria-current="true">部署服务器</a>
+ <a href="../start/#server" aria-current="true">连接方式</a>
<a class="wide" href="https://github.com/baiyuze/copysync">GitHub</a>
<a href="../en/server/" hreflang="en" lang="en" data-lang="en">English</a>
<a href="../ja/server/" hreflang="ja" lang="ja" data-lang="ja">日本語</a>
@@ -44,9 +44,10 @@
<main id="main">
<section class="hero guide-hero">
<div class="wrap">
- <p class="crumb"><a href=".././">CopySync</a> / <a href="../start/#server">部署服务器</a></p>
+ <p class="crumb"><a href=".././">CopySync</a> / <a href="../start/#server">连接方式</a></p>
<h1 class="display">在局域网里部署服务器</h1>
<p class="lede">家里或办公室的电脑在同一个网络里,就不需要云服务器。找一台常开的电脑,下载、运行一个脚本,再把它显示的地址填进每台电脑的 CopySync 里。</p>
+ <p class="notice"><strong>同一个网络里,现在不需要服务器了:</strong>装好 App 直接配对就能用,见<a href="../lan/">同一网络教程</a>。这篇仍然适用于两个网段之间互相访问不到、要经一台两边都能访问的电脑中转的情况。</p>
<ol class="guide-toc">
<li><a href="#prepare">准备</a></li>
<li><a href="#install">安装服务器</a></li>
@@ -350,7 +351,7 @@ sudo ./install.sh</code></pre>
</details>
<details>
<summary>离开局域网以后还能同步吗?</summary>
- <div class="answer"><p>不能,服务器只在局域网里访问得到。要在别的网络里也能同步,换成另外两种部署方式之一:<a href="../cloud/">公网服务器</a>,或者<a href="../tailscale/">局域网 + Tailscale</a>。</p></div>
+ <div class="answer"><p>不能,服务器只在局域网里访问得到。要在别的网络里也能同步,换成<a href="../cloud/">公网服务器</a>,或者<a href="../tailscale/">Tailscale</a>。</p></div>
</details>
<details>
<summary>服务器所在的那台电脑也要用 CopySync,地址填什么?</summary>
diff --git a/docs/sitemap.xml b/docs/sitemap.xml
index 8d09818..b5692dd 100644
--- a/docs/sitemap.xml
+++ b/docs/sitemap.xml
@@ -46,6 +46,27 @@
<xhtml:link rel="alternate" hreflang="en" href="https://baiyuze.github.io/copysync/en/start/"/>
<xhtml:link rel="alternate" hreflang="ja" href="https://baiyuze.github.io/copysync/ja/start/"/>
</url>
+ <url>
+ <loc>https://baiyuze.github.io/copysync/lan/</loc>
+ <lastmod>2026-10-11</lastmod>
+ <xhtml:link rel="alternate" hreflang="zh-CN" href="https://baiyuze.github.io/copysync/lan/"/>
+ <xhtml:link rel="alternate" hreflang="en" href="https://baiyuze.github.io/copysync/en/lan/"/>
+ <xhtml:link rel="alternate" hreflang="ja" href="https://baiyuze.github.io/copysync/ja/lan/"/>
+ </url>
+ <url>
+ <loc>https://baiyuze.github.io/copysync/en/lan/</loc>
+ <lastmod>2026-10-11</lastmod>
+ <xhtml:link rel="alternate" hreflang="zh-CN" href="https://baiyuze.github.io/copysync/lan/"/>
+ <xhtml:link rel="alternate" hreflang="en" href="https://baiyuze.github.io/copysync/en/lan/"/>
+ <xhtml:link rel="alternate" hreflang="ja" href="https://baiyuze.github.io/copysync/ja/lan/"/>
+ </url>
+ <url>
+ <loc>https://baiyuze.github.io/copysync/ja/lan/</loc>
+ <lastmod>2026-10-11</lastmod>
+ <xhtml:link rel="alternate" hreflang="zh-CN" href="https://baiyuze.github.io/copysync/lan/"/>
+ <xhtml:link rel="alternate" hreflang="en" href="https://baiyuze.github.io/copysync/en/lan/"/>
+ <xhtml:link rel="alternate" hreflang="ja" href="https://baiyuze.github.io/copysync/ja/lan/"/>
+ </url>
<url>
<loc>https://baiyuze.github.io/copysync/cloud/</loc>
<lastmod>2026-10-11</lastmod>
@@ -117,4 +138,8 @@
<loc>https://baiyuze.github.io/copysync/design/windows-client.html</loc>
<lastmod>2026-10-11</lastmod>
</url>
+ <url>
+ <loc>https://baiyuze.github.io/copysync/design/lan-mode.html</loc>
+ <lastmod>2026-10-11</lastmod>
+ </url>
</urlset>
diff --git a/docs/start/index.html b/docs/start/index.html
index 575b683..395bf28 100644
--- a/docs/start/index.html
+++ b/docs/start/index.html
@@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>快速开始:三步用上 CopySync</title>
- <meta name="description" content="第一次用 CopySync?在每台电脑上安装 App,选一种方式部署服务器(局域网、Tailscale 或云服务器),填好地址再配对,就能在 Mac 与 Windows 之间复制粘贴。不需要公网 IP。">
+ <meta name="description" content="第一次用 CopySync?在每台电脑上安装 App;两台在同一个网络里就直接配对,不需要服务器;跨网络时选公网服务器或 Tailscale。之后就能在 Mac 与 Windows 之间复制粘贴。">
<link rel="canonical" href="https://baiyuze.github.io/copysync/start/">
<link rel="alternate" hreflang="zh-CN" href="https://baiyuze.github.io/copysync/start/">
<link rel="alternate" hreflang="en" href="https://baiyuze.github.io/copysync/en/start/">
@@ -13,7 +13,7 @@
<meta property="og:type" content="article">
<meta property="og:site_name" content="CopySync">
<meta property="og:title" content="快速开始:三步用上 CopySync">
- <meta property="og:description" content="第一次用 CopySync?在每台电脑上安装 App,选一种方式部署服务器(局域网、Tailscale 或云服务器),填好地址再配对,就能在 Mac 与 Windows 之间复制粘贴。不需要公网 IP。">
+ <meta property="og:description" content="第一次用 CopySync?在每台电脑上安装 App;两台在同一个网络里就直接配对,不需要服务器;跨网络时选公网服务器或 Tailscale。之后就能在 Mac 与 Windows 之间复制粘贴。">
<meta property="og:url" content="https://baiyuze.github.io/copysync/start/">
<meta property="og:image" content="https://baiyuze.github.io/copysync/assets/og.png">
<meta property="og:locale" content="zh_CN">
@@ -33,7 +33,7 @@
<a href="./" aria-current="page">快速开始</a>
<a class="wide" href=".././#how">工作原理</a>
<a class="wide" href=".././#faq">常见问题</a>
- <a href="#server">部署服务器</a>
+ <a href="#server">连接方式</a>
<a class="wide" href="https://github.com/baiyuze/copysync">GitHub</a>
<a href="../en/start/" hreflang="en" lang="en" data-lang="en">English</a>
<a href="../ja/start/" hreflang="ja" lang="ja" data-lang="ja">日本語</a>
@@ -46,11 +46,10 @@
<div class="wrap">
<p class="crumb"><a href=".././">CopySync</a> / 快速开始</p>
<h1 class="display">快速开始</h1>
- <p class="lede">装好 App,准备一台服务器,再把两台电脑配对。第一次大约十分钟,之后复制就会自动同步。</p>
+ <p class="lede">装好 App,选一种连接方式,再把两台电脑配对。同一个网络里几分钟就好,之后复制就会自动同步。</p>
<ol class="guide-toc">
<li><a href="#app">安装 App</a></li>
- <li><a href="#server">准备服务器</a></li>
- <li><a href="#connect">填服务器地址</a></li>
+ <li><a href="#server">选连接方式</a></li>
<li><a href="#pair">配对</a></li>
</ol>
</div>
@@ -68,7 +67,7 @@
<ol class="steps">
<li>下载 CopySync.dmg,打开后把 CopySync 拖进「应用程序」。</li>
<li>从「应用程序」里打开。<span class="aside">第一次会提示「无法验证开发者」:到「系统设置 → 隐私与安全性」,点页面下方的「仍要打开」。</span></li>
- <li>点「启用后台同步」。系统询问是否允许读取剪贴板时,选择允许。</li>
+ <li>点「启用后台同步」。系统询问是否允许读取剪贴板、能否查找本地网络上的设备时,都选择允许。</li>
</ol>
<a class="button" href="https://github.com/baiyuze/copysync/releases/latest/download/CopySync.dmg"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>下载 Mac 版</a>
</div>
@@ -76,7 +75,7 @@
<h3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="4" width="18" height="12" rx="1.5"/><path d="M9 20h6M12 16v4"/></svg>Windows</h3>
<ol class="steps">
<li>运行 CopySync-Setup.exe,不需要管理员权限。<span class="aside">提示「Windows 已保护你的电脑」时,点「更多信息」,再点「仍要运行」。</span></li>
- <li>打开 CopySync,点「启用后台同步」。关掉窗口后它在右下角的托盘里继续运行。</li>
+ <li>打开 CopySync,点「启用后台同步」。防火墙询问时选择允许。关掉窗口后它在右下角的托盘里继续运行。</li>
</ol>
<a class="button" href="https://github.com/baiyuze/copysync/releases/latest/download/CopySync-Setup.exe"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>下载 Windows 版</a>
</div>
@@ -91,79 +90,79 @@
<section class="section" id="server" aria-labelledby="server-title">
<div class="wrap">
<p class="eyebrow">第 2 步</p>
- <h2 id="server-title">准备一台服务器</h2>
- <p class="intro">两台电脑靠它找到彼此,复制的内容不会存在上面。CopySync 不提供公共服务器,有三种部署方式,选一种适合你的。</p>
+ <h2 id="server-title">选一种连接方式</h2>
+ <p class="intro">两台电脑在同一个网络里时,什么都不用部署。跨网络时,要靠公网服务器或 Tailscale 找到彼此,复制的内容不会存在上面。</p>
<div class="os-tabs" data-tabs="plan">
- <div class="tablist" role="tablist" aria-label="部署方式" hidden>
+ <div class="tablist" role="tablist" aria-label="连接方式" hidden>
+ <button type="button" role="tab" id="tab-plan-lan" aria-controls="plan-lan">同一网络</button>
<button type="button" role="tab" id="tab-plan-cloud" aria-controls="plan-cloud">公网服务器</button>
- <button type="button" role="tab" id="tab-plan-lan" aria-controls="plan-lan">局域网</button>
- <button type="button" role="tab" id="tab-plan-ts" aria-controls="plan-ts">局域网 + Tailscale</button>
+ <button type="button" role="tab" id="tab-plan-ts" aria-controls="plan-ts">Tailscale</button>
</div>
- <section class="os" id="plan-cloud" role="tabpanel" aria-labelledby="tab-plan-cloud">
- <h3 class="os-title">公网服务器</h3>
+ <section class="os" id="plan-lan" role="tabpanel" aria-labelledby="tab-plan-lan">
+ <h3 class="os-title">同一网络</h3>
<div class="plan-grid">
<div>
<ol class="steps">
- <li>在云厂商的安全组里放行 TCP 8787、UDP 3478 和 UDP 32768–60999。</li>
- <li>ssh 登录服务器,下载并运行安装脚本,带上它的公网 IP:<code>sudo ./install.sh 公网IP</code>。</li>
- <li>在浏览器里打开 <code>http://公网IP:8787/healthz</code>,能看到 ok 就装好了。</li>
+ <li>每台电脑装好 App,点「启用后台同步」。</li>
+ <li>Windows 防火墙询问时选择允许;macOS 询问能否查找本地网络上的设备时,也选择允许。</li>
+ <li>一台显示配对码,另一台输入它,核对指纹。不在同一网段时,再输入配对码下面显示的地址,见<a href="../lan/#subnet">同一网络教程</a>。</li>
</ol>
- <p class="plan-address">每台电脑要填的地址:<code>ws://公网IP:8787/signal</code></p>
- <a class="button quiet" href="../cloud/">公网服务器部署教程 →</a>
+ <p class="plan-address">不需要填服务器地址。</p>
+ <a class="button quiet" href="../lan/">同一网络教程 →</a>
</div>
<div class="plan-card">
- <svg viewBox="0 0 240 112" aria-hidden="true"><rect class="p-dev" x="98" y="8" width="44" height="12" rx="3"/><rect class="p-dev" x="98" y="23" width="44" height="12" rx="3"/><rect class="p-net" x="6" y="50" width="100" height="56" rx="10"/><rect class="p-net" x="134" y="50" width="100" height="56" rx="10"/><path class="p-sig" d="M56 64V22h42M184 64V22h-42"/><path class="p-data" d="M80 80h80"/><rect class="p-dev" x="37" y="64" width="38" height="24" rx="3"/><path class="p-dev" d="M32 93h48"/><rect class="p-dev" x="165" y="64" width="38" height="24" rx="3"/><path class="p-dev" d="M160 93h48"/></svg>
+ <svg viewBox="0 0 240 112" aria-hidden="true"><rect class="p-net" x="6" y="6" width="228" height="100" rx="14"/><path class="p-data" d="M82 52h76"/><rect class="p-dev" x="39" y="40" width="38" height="24" rx="3"/><path class="p-dev" d="M34 69h48"/><rect class="p-dev" x="163" y="40" width="38" height="24" rx="3"/><path class="p-dev" d="M158 69h48"/></svg>
<dl>
- <div><dt>适合</dt><dd>电脑分散在不同的网络里,想在哪儿都能同步。跨网络时最省心。</dd></div>
- <div><dt>要准备</dt><dd>一台有公网 IP 的 Linux 云主机,最低配置就够,需要 root。</dd></div>
- <div><dt>要注意</dt><dd>云主机要花钱。打不通直连时走中转,速度受服务器带宽限制。国内域名没有备案时,客户端要填 IP。</dd></div>
+ <div><dt>适合</dt><dd>电脑都在同一个 Wi‑Fi 或有线网络里,比如家里或办公室。</dd></div>
+ <div><dt>要准备</dt><dd>什么都不用。每台电脑装好 App 就行。</dd></div>
+ <div><dt>要注意</dt><dd>离开这个网络就不同步,回来后自动恢复。公司里有线和无线不在同一网段时,配对时多输一个地址。</dd></div>
</dl>
</div>
</div>
</section>
- <section class="os" id="plan-lan" role="tabpanel" aria-labelledby="tab-plan-lan">
- <h3 class="os-title">局域网</h3>
+ <section class="os" id="plan-cloud" role="tabpanel" aria-labelledby="tab-plan-cloud">
+ <h3 class="os-title">公网服务器</h3>
<div class="plan-grid">
<div>
<ol class="steps">
- <li>在路由器里给当服务器的电脑固定一个地址。</li>
- <li>下载对应系统的服务器,运行安装脚本:<a href="../server/#windows">Windows</a> 上双击 <code>install.cmd</code>,<a href="../server/#macos">macOS</a> 与 <a href="../server/#linux">Linux</a> 上运行 <code>./install.sh</code>。</li>
- <li>脚本会找到本机的局域网地址,最后显示客户端要填的地址。</li>
+ <li>在云厂商的安全组里放行 TCP 8787、UDP 3478 和 UDP 32768–60999。</li>
+ <li>ssh 登录服务器,下载并运行安装脚本,带上它的公网 IP:<code>sudo ./install.sh 公网IP</code>。</li>
+ <li>在每台电脑的「设置」里填服务器地址 <code>ws://公网IP:8787/signal</code>,按回车,再配对。</li>
</ol>
- <p class="plan-address">每台电脑要填的地址:<code>ws://局域网地址:8787/signal</code>,比如 <code>ws://192.168.1.20:8787/signal</code></p>
- <a class="button quiet" href="../server/">局域网部署教程 →</a>
+ <p class="plan-address">在浏览器里打开 <code>http://公网IP:8787/healthz</code>,能看到 ok 就装好了。</p>
+ <a class="button quiet" href="../cloud/">公网服务器部署教程 →</a>
</div>
<div class="plan-card">
- <svg viewBox="0 0 240 112" aria-hidden="true"><rect class="p-net" x="6" y="6" width="228" height="100" rx="14"/><rect class="p-dev" x="98" y="16" width="44" height="12" rx="3"/><rect class="p-dev" x="98" y="31" width="44" height="12" rx="3"/><path class="p-sig" d="M58 66V30h40M182 66V30h-40"/><path class="p-data" d="M82 82h76"/><rect class="p-dev" x="39" y="66" width="38" height="24" rx="3"/><path class="p-dev" d="M34 95h48"/><rect class="p-dev" x="163" y="66" width="38" height="24" rx="3"/><path class="p-dev" d="M158 95h48"/></svg>
+ <svg viewBox="0 0 240 112" aria-hidden="true"><rect class="p-dev" x="98" y="8" width="44" height="12" rx="3"/><rect class="p-dev" x="98" y="23" width="44" height="12" rx="3"/><rect class="p-net" x="6" y="50" width="100" height="56" rx="10"/><rect class="p-net" x="134" y="50" width="100" height="56" rx="10"/><path class="p-sig" d="M56 64V22h42M184 64V22h-42"/><path class="p-data" d="M80 80h80"/><rect class="p-dev" x="37" y="64" width="38" height="24" rx="3"/><path class="p-dev" d="M32 93h48"/><rect class="p-dev" x="165" y="64" width="38" height="24" rx="3"/><path class="p-dev" d="M160 93h48"/></svg>
<dl>
- <div><dt>适合</dt><dd>电脑都在同一个 Wi‑Fi 或有线网络里,比如家里或办公室。</dd></div>
- <div><dt>要准备</dt><dd>一台常开的 Windows、Mac 或 Linux 电脑,要同步的电脑之一也行。</dd></div>
- <div><dt>要注意</dt><dd>离开这个网络就不同步,回来后自动恢复。那台电脑关机或睡眠时同步也会暂停。</dd></div>
+ <div><dt>适合</dt><dd>电脑分散在不同的网络里,想在哪儿都能同步。跨网络时最省心。</dd></div>
+ <div><dt>要准备</dt><dd>一台有公网 IP 的 Linux 云主机,最低配置就够,需要 root。</dd></div>
+ <div><dt>要注意</dt><dd>云主机要花钱。打不通直连时走中转,速度受服务器带宽限制。国内域名没有备案时,客户端要填 IP。</dd></div>
</dl>
</div>
</div>
</section>
<section class="os" id="plan-ts" role="tabpanel" aria-labelledby="tab-plan-ts">
- <h3 class="os-title">局域网 + Tailscale</h3>
+ <h3 class="os-title">Tailscale</h3>
<div class="plan-grid">
<div>
<ol class="steps">
<li>每台电脑装上 Tailscale,登录同一个账号。</li>
- <li>在当服务器的电脑上运行 <code>tailscale ip -4</code>,记下 100 开头的地址。</li>
- <li>带上这个地址安装服务器,比如 <code>install.cmd 100.101.102.103</code> 或 <code>./install.sh 100.101.102.103</code>。</li>
+ <li>在要配对的那台电脑上运行 <code>tailscale ip -4</code>,记下 100 开头的地址。</li>
+ <li>配对时,输入配对码的那台点「不在同一网段?」,填上这个地址。</li>
</ol>
- <p class="plan-address">每台电脑要填的地址:<code>ws://Tailscale 地址:8787/signal</code></p>
+ <p class="plan-address">不需要服务器。Tailscale 地址不会变,只在配对时输入一次。</p>
<a class="button quiet" href="../tailscale/">Tailscale 教程 →</a>
</div>
<div class="plan-card">
- <svg viewBox="0 0 240 112" aria-hidden="true"><rect class="p-ts" x="2" y="2" width="236" height="108" rx="16"/><rect class="p-net" x="12" y="12" width="98" height="88" rx="10"/><rect class="p-net" x="130" y="12" width="98" height="88" rx="10"/><rect class="p-dev" x="39" y="20" width="44" height="12" rx="3"/><rect class="p-dev" x="39" y="35" width="44" height="12" rx="3"/><path class="p-sig" d="M180 64V54H61v-7M61 64V54"/><path class="p-data" d="M85 80h71"/><rect class="p-dev" x="42" y="64" width="38" height="24" rx="3"/><path class="p-dev" d="M37 93h48"/><rect class="p-dev" x="161" y="64" width="38" height="24" rx="3"/><path class="p-dev" d="M156 93h48"/></svg>
+ <svg viewBox="0 0 240 112" aria-hidden="true"><rect class="p-ts" x="2" y="2" width="236" height="108" rx="16"/><rect class="p-net" x="12" y="12" width="98" height="88" rx="10"/><rect class="p-net" x="130" y="12" width="98" height="88" rx="10"/><path class="p-data" d="M85 52h71"/><rect class="p-dev" x="42" y="40" width="38" height="24" rx="3"/><path class="p-dev" d="M37 69h48"/><rect class="p-dev" x="161" y="40" width="38" height="24" rx="3"/><path class="p-dev" d="M156 69h48"/></svg>
<dl>
<div><dt>适合</dt><dd>电脑在不同的网络里,又没有公网服务器。</dd></div>
- <div><dt>要准备</dt><dd>一台常开的电脑当服务器;每台电脑都装 Tailscale,登录同一个账号。</dd></div>
- <div><dt>要注意</dt><dd>所有用 CopySync 的电脑都要装 Tailscale,家里那台要一直开着。Tailscale 自己打不通时经境外中转,在国内会慢。</dd></div>
+ <div><dt>要准备</dt><dd>每台电脑都装 Tailscale,登录同一个账号。</dd></div>
+ <div><dt>要注意</dt><dd>所有用 CopySync 的电脑都要装 Tailscale 并保持连接。Tailscale 自己打不通时经境外中转,在国内会慢。</dd></div>
</dl>
</div>
</div>
@@ -172,32 +171,16 @@
</div>
</section>
- <section class="section" id="connect" aria-labelledby="connect-title">
- <div class="wrap">
- <p class="eyebrow">第 3 步</p>
- <h2 id="connect-title">在每台电脑上填服务器地址</h2>
- <ol class="flow">
- <li><h3>打开设置</h3><p>在每台电脑上打开 CopySync,进入「设置」。服务器所在的那台电脑也一样。</p></li>
- <li><h3>填入地址</h3><p>在「信令服务器地址」里填上一步显示的地址,按回车保存。</p></li>
- <li><h3>看连接状态</h3><p>「连接状态」变成绿色的「已连接」,这台电脑就准备好了。</p></li>
- </ol>
- <figure class="shot">
- <img src="../assets/screenshots/settings-lan-dark.png" width="2112" height="1472" loading="lazy" alt="CopySync 的设置页:信令服务器地址填着 ws://192.168.1.20:8787/signal,连接状态显示已连接">
- </figure>
- <p class="note">一直是「未连接」?看<a href="../server/#faq">常见问题</a>。</p>
- </div>
- </section>
-
<section class="section" id="pair" aria-labelledby="pair-title">
<div class="wrap">
- <p class="eyebrow">第 4 步</p>
+ <p class="eyebrow">第 3 步</p>
<h2 id="pair-title">把两台电脑配对</h2>
<p class="intro">每两台电脑之间配对一次,之后就不用再管了。</p>
<div class="os-grid qs-grid">
<div>
<ol class="steps">
- <li>在一台电脑上打开「设备」,点「添加设备」,会显示一个 6 位配对码,5 分钟内有效。</li>
- <li>在另一台电脑上同样点「添加设备」,切到「输入配对码」,输入它。</li>
+ <li>在一台电脑上打开「设备」,点「添加设备」,会显示一个 6 位配对码,5 分钟内有效,下面是这台电脑的地址。</li>
+ <li>在另一台电脑上同样点「添加设备」,切到「输入配对码」,输入它。<span class="aside">不在同一网段、或者用 Tailscale 时,点「不在同一网段?」,再填上对方的地址。</span></li>
<li>两块屏幕会显示同样的两行安全指纹。逐字核对一致后,再点确认。<span class="aside">这一步防止有人在中间冒充你的设备,不要跳过。</span></li>
</ol>
<figure class="figure-card qs-verify">
@@ -205,7 +188,7 @@
</figure>
</div>
<figure class="shot">
- <img src="../assets/screenshots/pairing-dark.png" width="2112" height="1472" loading="lazy" alt="添加设备:显示配对码 K7MP2X,在另一台设备上输入它">
+ <img src="../assets/screenshots/pairing-dark.png" width="2112" height="1472" loading="lazy" alt="添加设备:显示配对码 K7MP2X,下面是本机地址 192.168.1.20">
</figure>
</div>
</div>
@@ -215,7 +198,7 @@
<div class="wrap">
<h2 class="display" id="closing-title">复制试试。</h2>
<p class="lede">在一台电脑上复制文字、图片或文件,到另一台按 ⌘V 或 Ctrl+V。两边复制过的内容都在「复制记录」里。</p>
- <p class="note">遇到问题:<a href="../server/#faq">局域网部署的常见问题</a> · <a href="../tailscale/#faq">Tailscale 的常见问题</a> · <a href="https://github.com/baiyuze/copysync/issues">反馈问题</a></p>
+ <p class="note">遇到问题:<a href="../lan/#faq">同一网络的常见问题</a> · <a href="../tailscale/#faq">Tailscale 的常见问题</a> · <a href="../cloud/#faq">公网服务器的常见问题</a> · <a href="https://github.com/baiyuze/copysync/issues">反馈问题</a></p>
</div>
</section>
</main>
diff --git a/docs/tailscale/index.html b/docs/tailscale/index.html
index 28e6fc8..cc2e000 100644
--- a/docs/tailscale/index.html
+++ b/docs/tailscale/index.html
@@ -3,8 +3,8 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
- <title>用 Tailscale 跨网络使用 CopySync:没有公网 IP 也能在家和公司之间同步</title>
- <meta name="description" content="服务器放在家里一台常开的电脑上,每台电脑装上 Tailscale,就像在同一个局域网里:不需要公网 IP,也不用改路由器,在公司、在外面都能同步剪贴板。Windows、Mac、Linux 图文教程。">
+ <title>用 Tailscale 跨网络使用 CopySync:不用服务器,在家和公司之间同步</title>
+ <meta name="description" content="每台电脑装上 Tailscale、登录同一个账号,配对时输入对方的 Tailscale 地址:不需要公网 IP,不需要服务器,也不需要一直开着的电脑,在公司、在外面都能同步剪贴板。">
<link rel="canonical" href="https://baiyuze.github.io/copysync/tailscale/">
<link rel="alternate" hreflang="zh-CN" href="https://baiyuze.github.io/copysync/tailscale/">
<link rel="alternate" hreflang="en" href="https://baiyuze.github.io/copysync/en/tailscale/">
@@ -12,8 +12,8 @@
<meta name="theme-color" content="#141416">
<meta property="og:type" content="article">
<meta property="og:site_name" content="CopySync">
- <meta property="og:title" content="用 Tailscale 跨网络使用 CopySync:没有公网 IP 也能在家和公司之间同步">
- <meta property="og:description" content="服务器放在家里一台常开的电脑上,每台电脑装上 Tailscale,就像在同一个局域网里:不需要公网 IP,也不用改路由器,在公司、在外面都能同步剪贴板。Windows、Mac、Linux 图文教程。">
+ <meta property="og:title" content="用 Tailscale 跨网络使用 CopySync:不用服务器,在家和公司之间同步">
+ <meta property="og:description" content="每台电脑装上 Tailscale、登录同一个账号,配对时输入对方的 Tailscale 地址:不需要公网 IP,不需要服务器,也不需要一直开着的电脑,在公司、在外面都能同步剪贴板。">
<meta property="og:url" content="https://baiyuze.github.io/copysync/tailscale/">
<meta property="og:image" content="https://baiyuze.github.io/copysync/assets/og.png">
<meta property="og:locale" content="zh_CN">
@@ -33,7 +33,7 @@
<a href="../start/">快速开始</a>
<a class="wide" href=".././#how">工作原理</a>
<a class="wide" href=".././#faq">常见问题</a>
- <a href="../start/#server" aria-current="true">部署服务器</a>
+ <a href="../start/#server" aria-current="true">连接方式</a>
<a class="wide" href="https://github.com/baiyuze/copysync">GitHub</a>
<a href="../en/tailscale/" hreflang="en" lang="en" data-lang="en">English</a>
<a href="../ja/tailscale/" hreflang="ja" lang="ja" data-lang="ja">日本語</a>
@@ -44,15 +44,13 @@
<main id="main">
<section class="hero guide-hero">
<div class="wrap">
- <p class="crumb"><a href=".././">CopySync</a> / <a href="../start/#server">部署服务器</a></p>
+ <p class="crumb"><a href=".././">CopySync</a> / <a href="../start/#server">连接方式</a></p>
<h1 class="display">用 Tailscale 跨网络使用</h1>
- <p class="lede">没有公网 IP,也能在家和公司之间同步。服务器照样放在家里,每台电脑装上 Tailscale,它们就像在同一个局域网里,不用改路由器,也不用买云服务器。</p>
+ <p class="lede">没有公网 IP,也不想部署服务器?每台电脑装上 Tailscale,配对时输入对方的 Tailscale 地址,在家、在公司都能同步。</p>
<ol class="guide-toc">
<li><a href="#join">装 Tailscale</a></li>
<li><a href="#address">查地址</a></li>
- <li><a href="#install">安装服务器</a></li>
- <li><a href="#check">检查</a></li>
- <li><a href="#clients">填地址</a></li>
+ <li><a href="#pair">配对</a></li>
<li><a href="#faq">常见问题</a></li>
</ol>
</div>
@@ -61,45 +59,30 @@
<section class="section" id="overview" aria-labelledby="overview-title">
<div class="wrap">
<h2 id="overview-title">像在同一个局域网里</h2>
- <p class="intro">Tailscale 是一个组网工具:装了它、登录同一个账号的设备,各自分到一个固定的 100 开头的地址,不管实际在哪个网络里,都能用这个地址互相访问。CopySync 的服务器用这个地址安装,客户端也填这个地址,其余和局域网部署一样。</p>
+ <p class="intro">Tailscale 是一个组网工具:装了它、登录同一个账号的设备,各自分到一个固定的 100 开头的地址,不管实际在哪个网络里,都能用这个地址互相访问。CopySync 配对时记住对方的这个地址,之后就像在同一个网络里一样直接连接。</p>
<figure class="diagram">
- <svg viewBox="0 0 960 460" role="img" aria-labelledby="ts-title ts-desc">
+ <svg viewBox="0 0 960 330" role="img" aria-labelledby="ts-title ts-desc">
<title id="ts-title">通过 Tailscale 使用 CopySync</title>
- <desc id="ts-desc">服务器在家里,Mac 在公司,Windows 在家里,三台设备都装了 Tailscale,在同一个虚拟局域网里各有一个 100 开头的地址。两台电脑通过信令连接到服务器 100.101.102.103,复制的内容在两台电脑之间直连传输,直连不通时经服务器中转。</desc>
- <rect class="d-ts" x="8" y="8" width="944" height="404" rx="22"/>
+ <desc id="ts-desc">Mac 在公司,Windows 在家里,两台都装了 Tailscale,在同一个虚拟局域网里各有一个 100 开头的地址。复制的内容在两台电脑之间直接传输,没有服务器。</desc>
+ <rect class="d-ts" x="8" y="8" width="944" height="314" rx="22"/>
<text class="d-ts-label" x="32" y="42">Tailscale 虚拟局域网:每台设备一个 100 开头的地址</text>
- <rect class="d-box" x="340" y="64" width="280" height="122" rx="14"/>
- <text class="d-title" x="480" y="102" text-anchor="middle">服务器</text>
- <text class="d-sub" x="480" y="130" text-anchor="middle">在家里,一直开着</text>
- <text class="d-ip" x="480" y="164" text-anchor="middle">100.101.102.103</text>
- <path class="d-sig" d="M150 266V96H340"/>
- <path class="d-sig" d="M810 266V96H620"/>
- <path class="d-relay" d="M206 266V154H340"/>
- <path class="d-relay" d="M754 266V154H620"/>
- <text class="d-note" x="164" y="86">信令 TCP 8787</text>
- <text class="d-note" x="220" y="214">中转 UDP 3478,直连不通时</text>
- <rect class="d-box" x="40" y="266" width="240" height="126" rx="14"/>
- <text class="d-title" x="160" y="306" text-anchor="middle">Mac</text>
- <text class="d-sub" x="160" y="334" text-anchor="middle">在公司</text>
- <text class="d-ip" x="160" y="368" text-anchor="middle">100.88.20.5</text>
- <rect class="d-box" x="680" y="266" width="240" height="126" rx="14"/>
- <text class="d-title" x="800" y="306" text-anchor="middle">Windows</text>
- <text class="d-sub" x="800" y="334" text-anchor="middle">在家里</text>
- <text class="d-ip" x="800" y="368" text-anchor="middle">100.92.41.17</text>
- <path class="d-direct" d="M280 330H680"/>
- <text class="d-label" x="480" y="316" text-anchor="middle">直连,两层加密</text>
- <text class="d-note" x="480" y="358" text-anchor="middle">复制的内容只在两台电脑之间传输</text>
- <g class="d-legend" transform="translate(40 444)">
- <path class="d-direct" d="M0 0H28"/><text x="38" y="5">数据(直连)</text>
- <path class="d-relay" d="M250 0H278"/><text x="288" y="5">数据(中转,备用)</text>
- <path class="d-sig" d="M560 0H588"/><text x="598" y="5">信令</text>
- </g>
+ <rect class="d-box" x="40" y="100" width="240" height="160" rx="14"/>
+ <text class="d-title" x="160" y="146" text-anchor="middle">Mac</text>
+ <text class="d-sub" x="160" y="174" text-anchor="middle">在公司</text>
+ <text class="d-ip" x="160" y="226" text-anchor="middle">100.88.20.5</text>
+ <rect class="d-box" x="680" y="100" width="240" height="160" rx="14"/>
+ <text class="d-title" x="800" y="146" text-anchor="middle">Windows</text>
+ <text class="d-sub" x="800" y="174" text-anchor="middle">在家里</text>
+ <text class="d-ip" x="800" y="226" text-anchor="middle">100.92.41.17</text>
+ <path class="d-direct" d="M280 190H680"/>
+ <text class="d-label" x="480" y="176" text-anchor="middle">直连,两层加密</text>
+ <text class="d-note" x="480" y="218" text-anchor="middle">复制的内容只在两台电脑之间传输</text>
</svg>
</figure>
<ul class="points ports">
- <li><strong>服务器还在家里。</strong>任意一台常开的 Windows、Mac 或 Linux 电脑,和局域网部署一样。</li>
- <li><strong>每台电脑都装 Tailscale,</strong>登录同一个账号。服务器所在的那台也要装。</li>
- <li><strong>两层加密。</strong>Tailscale 的 WireGuard 隧道里,跑的是 CopySync 自己端到端加密的连接,Tailscale 和你的服务器都看不到内容。</li>
+ <li><strong>不需要服务器,</strong>也不需要一直开着的电脑:两台电脑开着、连着 Tailscale,就能同步。</li>
+ <li><strong>地址只输入一次。</strong>Tailscale 地址不会变,配对时输入一次,之后两台会自动找到彼此。</li>
+ <li><strong>两层加密。</strong>Tailscale 的 WireGuard 隧道里,跑的是 CopySync 自己端到端加密的连接,Tailscale 看不到内容。</li>
</ul>
</div>
</section>
@@ -108,10 +91,10 @@
<div class="wrap">
<h2 id="prepare-title">开始之前</h2>
<dl class="fallbacks">
- <div><dt>一台常开的电脑</dt><dd>当服务器用,要求和<a href="../server/#prepare">局域网部署</a>一样,关机或睡眠时同步会暂停。它的 Tailscale 地址不会变,不需要在路由器里固定地址。</dd></div>
<div><dt>一个 Tailscale 账号</dt><dd>个人使用免费,用 Google、Microsoft、GitHub 或 Apple 账号就能登录。所有设备登录同一个账号。</dd></div>
- <div><dt>每台电脑都装 Tailscale</dt><dd>Windows、macOS、Linux 都有客户端。用 CopySync 的电脑都要装,一直待在家里的那台也一样。</dd></div>
- <div><dt>用 ZeroTier 也行</dt><dd>其他能给每台设备分配固定虚拟地址的组网工具,做法相同:服务器用它分配的地址安装,客户端填这个地址。下面以 Tailscale 为例。</dd></div>
+ <div><dt>每台电脑都装 Tailscale</dt><dd>Windows、macOS、Linux 都有客户端。用 CopySync 的电脑都要装,并保持连接。</dd></div>
+ <div><dt>CopySync 已经装好</dt><dd>每台电脑装好 App、启用了后台同步,见<a href="../start/#app">快速开始</a>。服务器地址留空就行。</dd></div>
+ <div><dt>用 ZeroTier 也行</dt><dd>其他能给每台设备分配固定虚拟地址的组网工具,做法相同:配对时输入它分配的地址。下面以 Tailscale 为例。</dd></div>
</dl>
</div>
</section>
@@ -120,7 +103,7 @@
<div class="wrap">
<p class="eyebrow">第 1 步</p>
<h2 id="join-title">在每台电脑上装 Tailscale</h2>
- <p class="intro">服务器所在的电脑和每台要同步的电脑,都装上并登录同一个账号。</p>
+ <p class="intro">每台要同步的电脑,都装上并登录同一个账号。</p>
<div class="os-grid qs-grid">
<div class="os-steps">
<ol class="steps">
@@ -131,12 +114,11 @@
<a class="button" href="https://tailscale.com/download"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>下载 Tailscale</a>
</div>
<div class="os-figures">
- <figure class="browser listing" role="img" aria-label="Tailscale 管理后台的设备列表(示意):mac-mini 是服务器,地址 100.101.102.103;macbook-pro 是 100.88.20.5;home-pc 是 100.92.41.17">
+ <figure class="browser listing" role="img" aria-label="Tailscale 管理后台的设备列表(示意):macbook-pro 的地址是 100.88.20.5,home-pc 是 100.92.41.17">
<div class="b-bar"><span class="t-lights" aria-hidden="true"><i></i><i></i><i></i></span><span class="b-url">login.tailscale.com/admin/machines</span></div>
<table>
<thead><tr><th scope="col">设备</th><th scope="col">Tailscale 地址</th><th scope="col">系统</th></tr></thead>
<tbody>
- <tr class="hl"><td>mac-mini <em>服务器</em></td><td>100.101.102.103</td><td>macOS</td></tr>
<tr><td>macbook-pro</td><td>100.88.20.5</td><td>macOS</td></tr>
<tr><td>home-pc</td><td>100.92.41.17</td><td>Windows</td></tr>
</tbody>
@@ -145,11 +127,11 @@
</div>
</div>
<div class="server-notes">
- <h3>服务器所在的那台电脑,再多做一步</h3>
+ <h3>让 Tailscale 一直连着</h3>
<ul class="points">
- <li><strong>Windows:</strong>在任务栏右下角的 Tailscale 图标上右键,在「Preferences」里勾选「Run unattended」。不然注销之后 Tailscale 会断开,外面的电脑就连不上服务器了。</li>
- <li><strong>Mac:</strong>保持登录、不睡眠,确认 Tailscale 登录后会自动打开。CopySync 的服务器也是登录后才运行。</li>
- <li><strong>关掉密钥过期:</strong>Tailscale 默认每 180 天要求设备重新登录一次。在管理后台的 Machines 页面,点服务器那一行最右边的菜单,选「Disable key expiry」。</li>
+ <li><strong>Windows:</strong>在任务栏右下角的 Tailscale 图标上右键,在「Preferences」里勾选「Run unattended」,注销之后也保持连接。</li>
+ <li><strong>Mac:</strong>确认 Tailscale 登录后会自动打开。</li>
+ <li><strong>关掉密钥过期:</strong>Tailscale 默认每 180 天要求设备重新登录一次。常年不动的电脑,可以在管理后台的 Machines 页面,点那一行最右边的菜单,选「Disable key expiry」。</li>
</ul>
</div>
</div>
@@ -158,197 +140,37 @@
<section class="section" id="address" aria-labelledby="address-title">
<div class="wrap">
<p class="eyebrow">第 2 步</p>
- <h2 id="address-title">查服务器的 Tailscale 地址</h2>
- <p class="intro">在服务器所在的电脑上点菜单栏(Windows 上是任务栏右下角)的 Tailscale 图标,菜单里能看到本机的地址;或者在终端里运行 <code>tailscale ip -4</code>。</p>
+ <h2 id="address-title">查对方的 Tailscale 地址</h2>
+ <p class="intro">在要配对的另一台电脑上点 Tailscale 的图标(Mac 在菜单栏,Windows 在任务栏右下角),菜单里能看到本机的地址;或者在终端里运行 <code>tailscale ip -4</code>。</p>
<div class="address-term">
- <figure class="term" role="img" aria-label="在终端里运行 tailscale ip -4,输出本机的 Tailscale 地址 100.101.102.103">
- <div class="t-bar mac"><span class="t-lights" aria-hidden="true"><i></i><i></i><i></i></span><span class="t-title">mac-mini — zsh</span></div>
-<pre class="t-body"><span class="t-prompt">%</span> tailscale ip -4
-<span class="t-url">100.101.102.103</span></pre>
+ <figure class="term" role="img" aria-label="在 PowerShell 里运行 tailscale ip -4,输出本机的 Tailscale 地址 100.92.41.17">
+ <div class="t-bar mac"><span class="t-lights" aria-hidden="true"><i></i><i></i><i></i></span><span class="t-title">home-pc — PowerShell</span></div>
+<pre class="t-body"><span class="t-prompt">&gt;</span> tailscale ip -4
+<span class="t-url">100.92.41.17</span></pre>
</figure>
</div>
- <p class="note">下面都以 <code>100.101.102.103</code> 为例,换成你的地址。</p>
+ <p class="note">下面以家里那台 Windows 的 <code>100.92.41.17</code> 为例,换成你的地址。</p>
</div>
</section>
- <section class="section" id="install" aria-labelledby="install-title">
+ <section class="section" id="pair" aria-labelledby="pair-title">
<div class="wrap">
<p class="eyebrow">第 3 步</p>
- <h2 id="install-title">用这个地址安装服务器</h2>
- <p class="intro">安装脚本默认用局域网地址,这里要带上 Tailscale 地址,外面的电脑才用得到服务器的中转。已经照<a href="../server/">局域网教程</a>装过的,带上地址再运行一次即可,原来的设置保留。</p>
- <div class="os-tabs" data-tabs="os">
- <div class="tablist" role="tablist" aria-label="服务器所在电脑的系统" hidden>
- <button type="button" role="tab" id="tab-windows" aria-controls="windows">Windows</button>
- <button type="button" role="tab" id="tab-macos" aria-controls="macos">macOS</button>
- <button type="button" role="tab" id="tab-linux" aria-controls="linux">Linux</button>
+ <h2 id="pair-title">配对时输入这个地址</h2>
+ <p class="intro">和在同一网络里配对一样,只是多输入一个地址。</p>
+ <div class="os-grid qs-grid">
+ <div>
+ <ol class="steps">
+ <li>在家里那台 Windows 上打开「设备」,点「添加设备」,记下 6 位配对码。</li>
+ <li>在公司的 Mac 上点「添加设备」,切到「输入配对码」,输入它;再点「不在同一网段?」,填上 <code>100.92.41.17</code>,点「继续」。</li>
+ <li>两块屏幕会显示同样的两行安全指纹,逐字核对一致后确认。之后两台在哪儿都能同步。</li>
+ </ol>
</div>
-
- <section class="os" id="windows" role="tabpanel" aria-labelledby="tab-windows">
- <h3 class="os-title"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="4" width="18" height="12" rx="1.5"/><path d="M9 20h6M12 16v4"/></svg>Windows</h3>
- <div class="os-grid">
- <div class="os-steps">
- <ol class="steps">
- <li>下载 copysync-server-windows-amd64.zip,右键选「全部解压缩」。已经装过的,用原来解压出的文件夹。</li>
- <li>打开解压出的文件夹,在窗口顶部的地址栏里输入 <code>cmd</code>,按回车,打开命令提示符。</li>
- <li>运行 <code>install.cmd 100.101.102.103</code>(换成你的地址),弹出用户账户控制时点「是」。</li>
- <li>安装在新打开的窗口里进行。最后显示的地址应当是 <code>ws://100.101.102.103:8787/signal</code>。</li>
- </ol>
- <a class="button" href="https://github.com/baiyuze/copysync/releases/latest/download/copysync-server-windows-amd64.zip"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>下载 Windows 版服务器</a>
- <ul class="points">
- <li><strong>防火墙已经放行:</strong>脚本添加的入站规则对所有网络生效,Tailscale 的网卡也包括在内。</li>
- <li>提示「Windows 已保护你的电脑」时,点「更多信息」,再点「仍要运行」。</li>
- </ul>
- </div>
- <div class="os-figures">
- <figure class="term" role="img" aria-label="在解压出的文件夹里打开命令提示符,运行 install.cmd 100.101.102.103">
- <div class="t-bar win"><span class="t-tab"><svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M3 5.5 10.5 4.5v7H3zM11.5 4.4 21 3v8.5h-9.5zM3 12.5h7.5v7L3 18.5zM11.5 12.5H21V21l-9.5-1.4z"/></svg>命令提示符</span><span class="t-ctl" aria-hidden="true"><i></i><i></i><i></i></span></div>
-<pre class="t-body"><span class="t-prompt">C:\Users\me\Downloads\copysync-server-windows-amd64&gt;</span>install.cmd 100.101.102.103</pre>
- </figure>
- <figure class="term" role="img" aria-label="install.cmd 运行完的窗口:最后显示客户端要填的地址 ws://100.101.102.103:8787/signal">
- <div class="t-bar win"><span class="t-tab"><svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M3 5.5 10.5 4.5v7H3zM11.5 4.4 21 3v8.5h-9.5zM3 12.5h7.5v7L3 18.5zM11.5 12.5H21V21l-9.5-1.4z"/></svg>管理员: Windows PowerShell</span><span class="t-ctl" aria-hidden="true"><i></i><i></i><i></i></span></div>
-<pre class="t-body"><span class="t-step">&gt; 停止旧版本</span>
-<span class="t-step">&gt; 安装到 C:\Program Files\CopySync Server</span>
-<span class="t-step">&gt; 注册服务 CopySyncServer(中转地址 100.101.102.103)</span>
-<span class="t-step">&gt; 在 Windows 防火墙里放行</span>
-<span class="t-step">&gt; 启动</span>
- √ 已启动
-
-安装完成:copysync-server 1.3.4,作为 Windows 服务开机自动运行
-在每台电脑的 CopySync「设置 → 信令服务器地址」填:
-
- <span class="t-url">ws://100.101.102.103:8787/signal</span>
-
- 程序 C:\Program Files\CopySync Server
- 日志 C:\ProgramData\CopySync Server\server.log
- 重启 Restart-Service CopySyncServer(管理员 PowerShell)
- 卸载 双击 uninstall.cmd</pre>
- </figure>
- </div>
- </div>
- </section>
-
- <section class="os" id="macos" role="tabpanel" aria-labelledby="tab-macos">
- <h3 class="os-title"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="4" y="5" width="16" height="11" rx="1.5"/><path d="M2 19h20"/></svg>macOS</h3>
- <div class="os-grid">
- <div class="os-steps">
- <ol class="steps">
- <li>打开「终端」,逐行运行,最后一行换成你的地址:
- <div class="code">
- <button class="copy" type="button" data-done="已复制">复制</button>
-<pre><code>curl -LO https://github.com/baiyuze/copysync/releases/latest/download/copysync-server-macos.tar.gz
-tar xzf copysync-server-macos.tar.gz
-cd copysync-server-macos
-./install.sh 100.101.102.103</code></pre>
- </div></li>
- <li>最后显示的地址应当是 <code>ws://100.101.102.103:8787/signal</code>。</li>
- </ol>
- <ul class="points">
- <li>已经装过的,在原来的文件夹里运行 <code>./install.sh 100.101.102.103</code> 即可,原来的设置保留。</li>
- <li><strong>开着系统防火墙的话,</strong>脚本最后会给出放行 copysync-server 的命令。</li>
- </ul>
- </div>
- <div class="os-figures">
- <figure class="term" role="img" aria-label="在终端里运行 ./install.sh 100.101.102.103 的输出,最后显示客户端要填的地址 ws://100.101.102.103:8787/signal">
- <div class="t-bar mac"><span class="t-lights" aria-hidden="true"><i></i><i></i><i></i></span><span class="t-title">copysync-server-macos — zsh</span></div>
-<pre class="t-body"><span class="t-prompt">%</span> ./install.sh 100.101.102.103
-<span class="t-step">▶ 停止旧版本</span>
-<span class="t-step">▶ 安装到 /Users/me/Library/Application Support/CopySync Server</span>
-<span class="t-step">▶ 写入 LaunchAgent(中转地址 100.101.102.103)</span>
-<span class="t-step">▶ 启动</span>
- ✓ 已启动
-
-安装完成:copysync-server 1.3.4,登录这台 Mac 后自动运行
-在每台电脑的 CopySync「设置 → 信令服务器地址」填:
-
- <span class="t-url">ws://100.101.102.103:8787/signal</span>
-
- 日志 /Users/me/Library/Logs/CopySync/server.log
- 重启 launchctl kickstart -k gui/501/com.copysync.server
- 卸载 ./install.sh uninstall</pre>
- </figure>
- </div>
- </div>
- </section>
-
- <section class="os" id="linux" role="tabpanel" aria-labelledby="tab-linux">
- <h3 class="os-title"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="4" y="4" width="16" height="7" rx="1.5"/><rect x="4" y="13" width="16" height="7" rx="1.5"/><path d="M8 7.5h.01M8 16.5h.01"/></svg>Linux</h3>
- <div class="os-grid">
- <div class="os-steps">
- <ol class="steps">
- <li>逐行运行,最后一行换成你的地址:<span class="aside">ARM 设备把 <code>amd64</code> 换成 <code>arm64</code>。</span>
- <div class="code">
- <button class="copy" type="button" data-done="已复制">复制</button>
-<pre><code>curl -LO https://github.com/baiyuze/copysync/releases/latest/download/copysync-server-linux-amd64.tar.gz
-tar xzf copysync-server-linux-amd64.tar.gz
-cd copysync-server-linux-amd64
-sudo ./install.sh 100.101.102.103</code></pre>
- </div></li>
- <li>最后显示的地址应当是 <code>ws://100.101.102.103:8787/signal</code>。</li>
- </ol>
- <div class="switch">
- <p><strong>已经装过的:</strong>Linux 的安装脚本不会改动已有的配置。把配置里原来的地址换成 Tailscale 地址(下面的 <code>192.168.1.20</code> 换成你原来的地址),再重启服务:</p>
- <div class="code">
- <button class="copy" type="button" data-done="已复制">复制</button>
-<pre><code>sudo sed -i 's/192.168.1.20/100.101.102.103/g' /etc/copysync/server.env
-sudo systemctl restart copysync-server</code></pre>
- </div>
- </div>
- </div>
- <div class="os-figures">
- <figure class="term" role="img" aria-label="运行 sudo ./install.sh 100.101.102.103 的输出,最后显示客户端要填的地址 ws://100.101.102.103:8787/signal">
- <div class="t-bar mac"><span class="t-lights" aria-hidden="true"><i></i><i></i><i></i></span><span class="t-title">ssh 100.101.102.103</span></div>
-<pre class="t-body"><span class="t-prompt">$</span> sudo ./install.sh 100.101.102.103
-<span class="t-step">▶ 安装二进制到 /usr/local/bin</span>
-<span class="t-step">▶ 写入 systemd 单元</span>
-<span class="t-step">▶ 生成配置 /etc/copysync/server.env(中转地址 100.101.102.103)</span>
-<span class="t-step">▶ 启动</span>
- ✓ 已启动
-
-安装完成:copysync-server 1.3.4
-在每台电脑的 CopySync「设置 → 信令服务器地址」填:
-
- <span class="t-url">ws://100.101.102.103:8787/signal</span>
-
- 配置 /etc/copysync/server.env
- 日志 journalctl -u copysync-server -f
- 重启 systemctl restart copysync-server
- 卸载 sudo ./install.sh uninstall
-
-防火墙需放行:TCP 8787(信令)、UDP 3478(STUN 与 TURN)、UDP 32768-60999(中转端口,系统随机分配)</pre>
- </figure>
- </div>
- </div>
- </section>
+ <figure class="shot">
+ <img src="../assets/screenshots/pairing-join-ts-dark.png" width="2112" height="1472" loading="lazy" alt="输入配对码:填好配对码 K7MP2X,地址框里填着 Tailscale 地址 100.92.41.17">
+ </figure>
</div>
- </div>
- </section>
-
- <section class="section" id="check" aria-labelledby="check-title">
- <div class="wrap">
- <p class="eyebrow">第 4 步</p>
- <h2 id="check-title">从外面检查一下</h2>
- <p class="intro">找一台不在家里网络的电脑,或者让笔记本连上手机热点,确认 Tailscale 已连接,在浏览器里打开 <code>http://100.101.102.103:8787/healthz</code>。看到下面这一行,在外面也能访问到服务器了。</p>
- <figure class="browser" role="img" aria-label="浏览器打开 http://100.101.102.103:8787/healthz,页面显示服务器的状态 ok 与版本号">
- <div class="b-bar"><span class="t-lights" aria-hidden="true"><i></i><i></i><i></i></span><span class="b-url">http://100.101.102.103:8787/healthz</span></div>
- <pre class="b-body">{"status":"ok","version":"1.3.4"}</pre>
- </figure>
- <p class="note">打不开的话,看下面的<a href="#faq">常见问题</a>。</p>
- </div>
- </section>
-
- <section class="section" id="clients" aria-labelledby="clients-title">
- <div class="wrap">
- <p class="eyebrow">第 5 步</p>
- <h2 id="clients-title">在每台电脑上填地址</h2>
- <ol class="flow">
- <li><h3>打开设置</h3><p>在每台电脑上打开 CopySync,进入「设置」。服务器所在的那台电脑也一样。</p></li>
- <li><h3>填 Tailscale 地址</h3><p>在「信令服务器地址」里填 <code>ws://100.101.102.103:8787/signal</code>(换成你的地址),按回车保存。</p></li>
- <li><h3>看连接状态</h3><p>「连接状态」变成绿色的「已连接」就好了。还没配对的话,在「设备」里配对。</p></li>
- </ol>
- <figure class="shot">
- <img src="../assets/screenshots/settings-tailscale-dark.png" width="2112" height="1472" loading="lazy" alt="CopySync 的设置页:信令服务器地址填着 ws://100.101.102.103:8787/signal,连接状态显示已连接">
- </figure>
- <p class="note">家里的电脑也填 Tailscale 地址,不要填局域网地址:这样电脑在家、在外面,地址都不用改。都在家时,数据照样只在家里的网络里走。</p>
+ <p class="note">两台都在家里时,CopySync 也会在局域网里直接找到对方,数据不会绕道。</p>
</div>
</section>
@@ -361,28 +183,28 @@ sudo systemctl restart copysync-server</code></pre>
<div class="answer"><p>CopySync 显示的「直连」,指两台电脑在 Tailscale 的虚拟网里直接相连。Tailscale 自己打不通两台电脑时,会经它在境外的中转服务器(DERP)转发,在国内用就会慢。</p><p>在终端里运行 <code>tailscale ping 对方的地址</code>:显示 via DERP,说明 Tailscale 在中转;显示 via 一个 IP 和端口,就是点对点。公司网络、校园网比较容易遇到中转,可以自建 DERP 中转服务器,或者换一种组网工具。</p></div>
</details>
<details>
- <summary>连接状态一直是「未连接」?</summary>
- <div class="answer"><p>先确认这台电脑的 Tailscale 已连接,再在浏览器里打开 <code>http://服务器的 Tailscale 地址:8787/healthz</code>。</p><p>打不开的话,看服务器那台电脑是不是睡眠了、Tailscale 是否在线(Windows 上要勾选 Run unattended,Mac 上要保持登录),服务器是不是还用着局域网地址,以及 Mac、Linux 上的防火墙有没有放行。</p></div>
+ <summary>配对时找不到对方?</summary>
+ <div class="answer"><p>先确认两台的 Tailscale 都已连接:在终端里运行 <code>tailscale ping 对方的地址</code>,能 ping 通再试。</p><p>能 ping 通还找不到,多半是对方的防火墙挡住了:对方是 Windows 的话,在它的 CopySync「设置 → 局域网」里点「放行」;是 Mac 的话,确认「系统设置 → 隐私与安全性 → 本地网络」里打开了 CopySync Daemon。</p></div>
</details>
<details>
<summary>一定要每台电脑都装 Tailscale 吗?</summary>
- <div class="answer"><p>是的。没装的电脑访问不到 100 开头的地址,在外面的电脑也找不到它。一直待在家里的那台也要装。</p></div>
+ <div class="answer"><p>是的,没装的电脑访问不到 100 开头的地址。两台在同一个网络里时,不装也能用,见<a href="../lan/">同一网络教程</a>。</p></div>
</details>
<details>
- <summary>已经照局域网教程装好了,要从头来吗?</summary>
- <div class="answer"><p>不用。带上 Tailscale 地址把安装脚本再运行一次(Linux 上改一下配置),然后在每台电脑上把服务器地址改成 Tailscale 地址。已经配对的设备不用重新配对。</p></div>
+ <summary>以前照教程在家里装过服务器,还要它吗?</summary>
+ <div class="answer"><p>不需要了。在每台电脑的「设置」里清空服务器地址,再在家里那台电脑上卸载服务器即可,已经配对的设备不用重新配对。留着也没关系,服务器和 Tailscale 可以同时用。</p></div>
</details>
<details>
<summary>Tailscale 能看到我复制的内容吗?</summary>
<div class="answer"><p>不能。Tailscale 的连接用 WireGuard 端到端加密,里面跑的又是 CopySync 自己的 DTLS 加密连接,两层都只有两台电脑能解开。Tailscale 的服务器只交换设备的公钥和地址,中转服务器也只转发加密后的数据包。</p></div>
</details>
<details>
- <summary>服务器的 Tailscale 地址会变吗?</summary>
- <div class="answer"><p>一般不会。地址跟着设备走,重启、换网络都不变;只有把设备从 Tailscale 里删掉再重新加入,才会换一个。</p></div>
+ <summary>Tailscale 地址会变吗?</summary>
+ <div class="answer"><p>一般不会。地址跟着设备走,重启、换网络都不变;只有把设备从 Tailscale 里删掉再重新加入,才会换一个。换了的话,在「设备」里给那台设备重新输入一次地址。</p></div>
</details>
<details>
- <summary>我有公网 IP,还需要 Tailscale 吗?</summary>
- <div class="answer"><p>不需要。把服务器部署在有公网 IP 的机器上,所有电脑填它的公网地址就行,见<a href="../cloud/">公网服务器部署教程</a>。</p></div>
+ <summary>我有公网服务器,还需要 Tailscale 吗?</summary>
+ <div class="answer"><p>不需要。把服务器部署在有公网 IP 的机器上,所有电脑填它的地址就行,见<a href="../cloud/">公网服务器部署教程</a>。</p></div>
</details>
</div>
</div>
@@ -390,13 +212,13 @@ sudo systemctl restart copysync-server</code></pre>
<section class="closing" aria-labelledby="closing-title">
<div class="wrap">
- <h2 class="display" id="closing-title">服务器在家里,<br>复制跟着你走。</h2>
+ <h2 class="display" id="closing-title">不用服务器,<br>复制跟着你走。</h2>
<div class="cta">
<a class="button" href="https://github.com/baiyuze/copysync/releases/latest/download/CopySync.dmg"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>下载 Mac 版</a>
<a class="button quiet" href="https://github.com/baiyuze/copysync/releases/latest/download/CopySync-Setup.exe"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>下载 Windows 版</a>
</div>
<p class="note">版本 1.3.4,免费开源。macOS 13 及以上,Intel 与 Apple 芯片通用;Windows 10、11。</p>
- <a class="source" href="../server/">回到局域网部署教程</a>
+ <a class="source" href="../lan/">回到同一网络教程</a>
</div>
</section>
</main>
diff --git a/tools/site/build.py b/tools/site/build.py
index dc9b78b..9664bdd 100644
--- a/tools/site/build.py
+++ b/tools/site/build.py
@@ -1,5 +1,6 @@
-"""生成官网:docs/index.html(简体中文)、docs/en/、docs/ja/,每种语言下还有快速开始(start/)与三种部署方式的教程——
-公网服务器(cloud/)、局域网(server/)、局域网 + Tailscale(tailscale/),以及 docs/design/ 下的技术方案页面。
+"""生成官网:docs/index.html(简体中文)、docs/en/、docs/ja/,每种语言下还有快速开始(start/)与三种连接方式的教程——
+同一网络(lan/,不需要服务器)、公网服务器(cloud/)、Tailscale(tailscale/),
+在局域网里自建服务器的教程(server/),以及 docs/design/ 下的技术方案页面。
python3 tools/site/build.py
@@ -35,17 +36,20 @@ LANGS = {
ANALYTICS = (" <script type=\"module\" src=\"https://static.cloudflareinsights.com/beacon.min.js\" "
"data-cf-beacon='{\"token\": \"7ee226baf4a949a397c4bfd69a9e7461\"}'></script>\n")
-# 教程页面,每种语言目录下各一份:快速开始,以及三种部署方式各一篇——
-# 公网服务器、局域网、局域网 + Tailscale。三种方式地位相同,在快速开始里由用户自己选
+# 教程页面,每种语言目录下各一份:快速开始,以及三种连接方式各一篇——
+# 同一网络(不需要服务器)、公网服务器、Tailscale。三种方式地位相同,在快速开始里由用户自己选。
+# 在局域网里自建服务器(server/)不再是一种推荐的方式,页面保留:两个网段互相访问不到时还用得上
START = "start/"
+LAN = "lan/"
CLOUD = "cloud/"
GUIDE = "server/"
TAILSCALE = "tailscale/"
-SUBPAGES = [START, CLOUD, GUIDE, TAILSCALE]
-DEPLOY_PAGES = [CLOUD, GUIDE, TAILSCALE]
+SUBPAGES = [START, LAN, CLOUD, GUIDE, TAILSCALE]
+DEPLOY_PAGES = [LAN, CLOUD, GUIDE, TAILSCALE]
# 放到网站上的技术方案:文件名 → 网页名。其他 design/*.md 链接到 GitHub
-DESIGN_DOCS = {"nat-traversal.md": "nat-traversal", "windows-client.md": "windows-client"}
+DESIGN_DOCS = {"nat-traversal.md": "nat-traversal", "windows-client.md": "windows-client",
+ "lan-mode.md": "lan-mode"}
DOWN = ('<svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" '
'stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">'
@@ -146,7 +150,7 @@ def cta(c: dict, start: str = "") -> str:
def header(c: dict, code: str, up: str, sub: str = "") -> str:
"""顶栏。sub 是当前的教程页面(START、GUIDE 等),首页为空。窄屏只留不带 wide 的几项。
- 「部署服务器」指向快速开始里三种部署方式的选择,在三篇部署教程里显示为当前所在的栏目。"""
+ 「连接方式」指向快速开始里三种方式的选择,在各篇教程里显示为当前所在的栏目。"""
path = LANGS[code][0]
if sub:
home = up + (path or "./")
@@ -176,7 +180,7 @@ def header(c: dict, code: str, up: str, sub: str = "") -> str:
</header>"""
-# 三种部署方式的小插图:设备是笔记本与服务器的轮廓,虚线框是一个网络,蓝线是复制的内容走的路
+# 三种连接方式的小插图:设备是笔记本与服务器的轮廓,虚线框是一个网络,蓝线是复制的内容走的路
def _laptop(x: int, y: int) -> str:
return (f'<rect class="p-dev" x="{x + 5}" y="{y}" width="38" height="24" rx="3"/>'
f'<path class="p-dev" d="M{x} {y + 29}h48"/>')
@@ -187,8 +191,12 @@ def _server(x: int, y: int) -> str:
f'<rect class="p-dev" x="{x}" y="{y + 15}" width="44" height="12" rx="3"/>')
-# 三种部署方式,按这个顺序出现在首页、快速开始与安装一节:(文案里的键, 教程页面, 插图)
+# 三种连接方式,按这个顺序出现在首页、快速开始与安装一节:(文案里的键, 教程页面, 插图)
PLANS = [
+ # 同一网络:一个网络里只有两台电脑,没有服务器
+ ("lan", LAN, '<rect class="p-net" x="6" y="6" width="228" height="100" rx="14"/>'
+ + '<path class="p-data" d="M82 52h76"/>'
+ + _laptop(34, 40) + _laptop(158, 40)),
# 公网服务器:服务器在两个网络之外,两边都直接连它
("cloud", CLOUD, _server(98, 8)
+ '<rect class="p-net" x="6" y="50" width="100" height="56" rx="10"/>'
@@ -196,25 +204,17 @@ PLANS = [
+ '<path class="p-sig" d="M56 64V22h42M184 64V22h-42"/>'
+ '<path class="p-data" d="M80 80h80"/>'
+ _laptop(32, 64) + _laptop(160, 64)),
- # 局域网:一个网络里,服务器在上,两台电脑在下
- ("lan", GUIDE, '<rect class="p-net" x="6" y="6" width="228" height="100" rx="14"/>'
- + _server(98, 16)
- + '<path class="p-sig" d="M58 66V30h40M182 66V30h-40"/>'
- + '<path class="p-data" d="M82 82h76"/>'
- + _laptop(34, 66) + _laptop(158, 66)),
- # 局域网 + Tailscale:家与公司是两个网络,外面一圈点线把它们连成一个虚拟局域网
+ # Tailscale:家与公司是两个网络,外面一圈点线把它们连成一个虚拟局域网,不需要服务器
("ts", TAILSCALE, '<rect class="p-ts" x="2" y="2" width="236" height="108" rx="16"/>'
'<rect class="p-net" x="12" y="12" width="98" height="88" rx="10"/>'
'<rect class="p-net" x="130" y="12" width="98" height="88" rx="10"/>'
- + _server(39, 20)
- + '<path class="p-sig" d="M180 64V54H61v-7M61 64V54"/>'
- + '<path class="p-data" d="M85 80h71"/>'
- + _laptop(37, 64) + _laptop(156, 64)),
+ + '<path class="p-data" d="M85 52h71"/>'
+ + _laptop(37, 40) + _laptop(156, 40)),
]
def paths(c: dict, base: str) -> str:
- """首页上三种部署方式的卡片,样式相同、不分主次。base 是语言根目录(教程页面在它下面)。"""
+ """首页上三种连接方式的卡片,样式相同、不分主次。base 是语言根目录(教程页面在它下面)。"""
cards = []
for key, page, art in PLANS:
p = c["plans"][key]
@@ -229,9 +229,9 @@ def paths(c: dict, base: str) -> str:
def plan_tabs(c: dict, base: str) -> str:
- """快速开始第 2 步:三种部署方式分页,由用户自己选。每页是适合谁、要准备什么、要注意什么,
- 精简的步骤,最后要填的地址,以及完整教程的链接。"""
- links = {"cloud": base + CLOUD, "server": base + GUIDE, "ts": base + TAILSCALE}
+ """快速开始第 2 步:三种连接方式分页,由用户自己选。每页是适合谁、要准备什么、要注意什么,
+ 精简的步骤,最后一句要点,以及完整教程的链接。"""
+ links = {"lan": base + LAN, "cloud": base + CLOUD, "server": base + GUIDE, "ts": base + TAILSCALE}
tabs, panels = [], []
for key, page, art in PLANS:
p = c["plans"][key]
@@ -245,7 +245,7 @@ def plan_tabs(c: dict, base: str) -> str:
<ol class="steps">
{steps}
</ol>
- <p class="plan-address">{p["address"]}</p>
+ <p class="plan-address">{fill(p["address"], links)}</p>
<a class="button quiet" href="{base}{page}">{p["go"]}</a>
</div>
<div class="plan-card">
@@ -331,7 +331,7 @@ def home(code: str) -> str:
f' <li><a href="{page}">{c["plans"][key]["name"]}</a><span>{c["plans"][key]["fit"]}</span></li>'
for key, page, _ in PLANS)
specs = "\n".join(f' <tr><th scope="row">{k}</th><td>{v}</td></tr>' for k, v in c["specs"])
- links = {"cloud": CLOUD, "server": GUIDE, "ts": TAILSCALE, "start": START}
+ links = {"lan": LAN, "cloud": CLOUD, "server": GUIDE, "ts": TAILSCALE, "start": START}
faq = faq_list(c["faq"], links)
d = c["diagram"]
@@ -791,7 +791,7 @@ def toc_list(toc: list[tuple[str, str]]) -> str:
def crumb(c: dict, home: str, base: str) -> str:
- """部署教程顶部的面包屑:CopySync / 部署服务器,后者回到快速开始里三种方式的选择。"""
+ """教程顶部的面包屑:CopySync / 连接方式,后者回到快速开始里三种方式的选择。"""
return f'<p class="crumb"><a href="{home}">CopySync</a> / <a href="{base}{START}#server">{c["nav_server"]}</a></p>'
@@ -872,7 +872,7 @@ cd copysync-server-macos
explorer.append(f' <li{cls}><span class="f-icon {kind}" aria-hidden="true"></span>'
f'<span class="f-name">{name}</span>{mark}</li>')
explorer = "\n".join(explorer)
- links = {"home": home_href, "cloud": base + CLOUD, "ts": base + TAILSCALE, "start": base + START}
+ links = {"home": home_href, "lan": base + LAN, "cloud": base + CLOUD, "ts": base + TAILSCALE, "start": base + START}
prep = "\n".join(f" <div><dt>{h}</dt><dd>{fill(p, links)}</dd></div>" for h, p in g["prep"])
d = g["diagram"]
@@ -883,6 +883,7 @@ cd copysync-server-macos
{crumb(c, home_href, base)}
<h1 class="display">{g["h1"]}</h1>
<p class="lede">{g["lede"]}</p>
+ <p class="notice">{fill(g["notice"], links)}</p>
<ol class="guide-toc">
{toc_list(g["toc"])}
</ol>
@@ -1078,8 +1079,8 @@ def cloud_page(code: str) -> str:
base = up + path
shots = up + "assets/screenshots/" + ("" if code == "zh" else code + "/")
t = TRANSCRIPTS["zh" if code == "zh" else "en"]
- links = {"home": home_href, "server": base + GUIDE, "ts": base + TAILSCALE, "start": base + START,
- "deploy": f"{REPO}/blob/main/server/deploy/README.md"}
+ links = {"home": home_href, "lan": base + LAN, "server": base + GUIDE, "ts": base + TAILSCALE,
+ "start": base + START, "deploy": f"{REPO}/blob/main/server/deploy/README.md"}
d = cl["diagram"]
install = f"""curl -LO {DL}copysync-server-linux-amd64.tar.gz
tar xzf copysync-server-linux-amd64.tar.gz
@@ -1263,8 +1264,8 @@ def start_page(code: str) -> str:
home_href = up + (path or "./")
base = up + path
shots = up + "assets/screenshots/" + ("" if code == "zh" else code + "/")
- links = {"home": home_href, "cloud": base + CLOUD, "server": base + GUIDE, "ts": base + TAILSCALE,
- "issues": REPO + "/issues"}
+ links = {"home": home_href, "lan": base + LAN, "cloud": base + CLOUD, "server": base + GUIDE,
+ "ts": base + TAILSCALE, "issues": REPO + "/issues"}
def step(n: int) -> str:
return f'<p class="eyebrow">{s["step"].format(n=n)}</p>'
@@ -1320,29 +1321,15 @@ def start_page(code: str) -> str:
</div>
</section>
- <section class="section" id="connect" aria-labelledby="connect-title">
- <div class="wrap">
- {step(3)}
- <h2 id="connect-title">{s["connect_h2"]}</h2>
- <ol class="flow">
-{chr(10).join(f" <li><h3>{h}</h3><p>{p}</p></li>" for h, p in s["connect_steps"])}
- </ol>
- <figure class="shot">
- <img src="{shots}settings-lan-dark.png" width="2112" height="1472" loading="lazy" alt="{esc(s["connect_alt"])}">
- </figure>
- <p class="note">{fill(s["connect_after"], links)}</p>
- </div>
- </section>
-
<section class="section" id="pair" aria-labelledby="pair-title">
<div class="wrap">
- {step(4)}
+ {step(3)}
<h2 id="pair-title">{s["pair_h2"]}</h2>
<p class="intro">{s["pair_intro"]}</p>
<div class="os-grid qs-grid">
<div>
<ol class="steps">
-{items(s["pair_steps"], " ")}
+{items([fill(x, links) for x in s["pair_steps"]], " ")}
</ol>
<figure class="figure-card qs-verify">
<img src="{shots}card-verify-dark.png" width="1120" height="800" loading="lazy" alt="{esc(c["verify_alt"])}">
@@ -1366,14 +1353,148 @@ def start_page(code: str) -> str:
""" + page_bottom(c, code, START)
+# ─────────────────────────── 同一网络(不需要服务器) ───────────────────────────
+
+# 教程里的两台电脑在同一个局域网里的地址
+LAN_MAC = "192.168.1.20"
+LAN_WIN = "192.168.1.35"
+
+
+def lan_page(code: str) -> str:
+ c = load(code)
+ g = c["guide"]
+ ln = c["lan"]
+ path = LANGS[code][0]
+ up = "../" * (path + LAN).count("/")
+ home_href = up + (path or "./")
+ base = up + path
+ shots = up + "assets/screenshots/" + ("" if code == "zh" else code + "/")
+ links = {"home": home_href, "cloud": base + CLOUD, "server": base + GUIDE, "ts": base + TAILSCALE,
+ "start": base + START, "design": up + "design/lan-mode.html"}
+ d = ln["diagram"]
+
+ def step(n: int) -> str:
+ return f'<p class="eyebrow">{ln["step"].format(n=n)}</p>'
+
+ return page_top(c, code, LAN, ln["title"], ln["description"]) + f"""
+ <main id="main">
+ <section class="hero guide-hero">
+ <div class="wrap">
+ {crumb(c, home_href, base)}
+ <h1 class="display">{ln["h1"]}</h1>
+ <p class="lede">{ln["lede"]}</p>
+ <ol class="guide-toc">
+{toc_list(ln["toc"])}
+ </ol>
+ </div>
+ </section>
+
+ <section class="section" id="overview" aria-labelledby="overview-title">
+ <div class="wrap">
+ <h2 id="overview-title">{ln["overview_h2"]}</h2>
+ <p class="intro">{ln["overview_intro"]}</p>
+ <figure class="diagram">
+ <svg viewBox="0 0 960 330" role="img" aria-labelledby="lan-title lan-desc">
+ <title id="lan-title">{d["title"]}</title>
+ <desc id="lan-desc">{d["desc"]}</desc>
+ <rect class="d-lan" x="8" y="8" width="944" height="314" rx="22"/>
+ <text class="d-lan-label" x="32" y="42">{d["lan"]}</text>
+ <rect class="d-box" x="40" y="120" width="240" height="140" rx="14"/>
+ <text class="d-title" x="160" y="170" text-anchor="middle">Mac</text>
+ <text class="d-sub" x="160" y="198" text-anchor="middle">{d["client"]}</text>
+ <text class="d-ip" x="160" y="234" text-anchor="middle">{LAN_MAC}</text>
+ <rect class="d-box" x="680" y="120" width="240" height="140" rx="14"/>
+ <text class="d-title" x="800" y="170" text-anchor="middle">Windows</text>
+ <text class="d-sub" x="800" y="198" text-anchor="middle">{d["client"]}</text>
+ <text class="d-ip" x="800" y="234" text-anchor="middle">{LAN_WIN}</text>
+ <path class="d-sig" d="M280 150H680"/>
+ <text class="d-note" x="480" y="138" text-anchor="middle">{d["find_note"]}</text>
+ <path class="d-direct" d="M280 214H680"/>
+ <text class="d-label" x="480" y="200" text-anchor="middle">{d["direct"]}</text>
+ <text class="d-note" x="480" y="242" text-anchor="middle">{d["direct_note"]}</text>
+ </svg>
+ </figure>
+ <ul class="points ports">
+{items(ln["overview_points"], " ")}
+ </ul>
+ </div>
+ </section>
+
+ <section class="section" id="prepare" aria-labelledby="prepare-title">
+ <div class="wrap">
+ <h2 id="prepare-title">{g["prep_h2"]}</h2>
+ <dl class="fallbacks">
+{chr(10).join(f" <div><dt>{h}</dt><dd>{fill(p, links)}</dd></div>" for h, p in ln["prep"])}
+ </dl>
+ </div>
+ </section>
+
+ <section class="section" id="pair" aria-labelledby="pair-title">
+ <div class="wrap">
+ {step(1)}
+ <h2 id="pair-title">{ln["pair_h2"]}</h2>
+ <p class="intro">{fill(ln["pair_intro"], links)}</p>
+ <div class="os-grid qs-grid">
+ <div>
+ <ol class="steps">
+{items(ln["pair_steps"], " ")}
+ </ol>
+ <figure class="figure-card qs-verify">
+ <img src="{shots}card-verify-dark.png" width="1120" height="800" loading="lazy" alt="{esc(c["verify_alt"])}">
+ </figure>
+ </div>
+ <figure class="shot">
+ <img src="{shots}pairing-dark.png" width="2112" height="1472" loading="lazy" alt="{esc(ln["pair_alt"])}">
+ </figure>
+ </div>
+ </div>
+ </section>
+
+ <section class="section" id="subnet" aria-labelledby="subnet-title">
+ <div class="wrap">
+ {step(2)}
+ <h2 id="subnet-title">{ln["subnet_h2"]}</h2>
+ <p class="intro">{ln["subnet_intro"]}</p>
+ <div class="os-grid qs-grid">
+ <div>
+ <ol class="steps">
+{items(ln["subnet_steps"], " ")}
+ </ol>
+ </div>
+ <figure class="shot">
+ <img src="{shots}pairing-join-dark.png" width="2112" height="1472" loading="lazy" alt="{esc(ln["subnet_alt"])}">
+ </figure>
+ </div>
+ <p class="note">{fill(ln["subnet_after"], links)}</p>
+ </div>
+ </section>
+
+ <section class="section" id="faq" aria-labelledby="faq-title">
+ <div class="wrap">
+ <h2 id="faq-title">{g["faq_h2"]}</h2>
+ <div class="faq">
+{faq_list(ln["faq"], links)}
+ </div>
+ </div>
+ </section>
+
+ <section class="closing" aria-labelledby="closing-title">
+ <div class="wrap">
+ <h2 class="display" id="closing-title">{ln["closing"]}</h2>{cta(c)}
+ <a class="source" href="{links["design"]}">{ln["source"]}</a>
+ </div>
+ </section>
+ </main>
+""" + page_bottom(c, code, LAN)
+
+
# ─────────────────────────── 用 Tailscale 跨网络使用 ───────────────────────────
-# 教程里的 Tailscale 地址:服务器一个,两台电脑各一个。都在 Tailscale 用的 100.64.0.0/10 里
-TS_IP = "100.101.102.103"
+# 教程里的 Tailscale 地址:两台电脑各一个,都在 Tailscale 用的 100.64.0.0/10 里
TS_MAC = "100.88.20.5"
TS_WIN = "100.92.41.17"
-# 管理后台设备列表里的示例:主机名、地址、系统,第一台是服务器
-TS_MACHINES = [("mac-mini", TS_IP, "macOS"), ("macbook-pro", TS_MAC, "macOS"), ("home-pc", TS_WIN, "Windows")]
+# 管理后台设备列表里的示例:主机名、地址、系统
+TS_MACHINES = [("macbook-pro", TS_MAC, "macOS"), ("home-pc", TS_WIN, "Windows")]
def tailscale_page(code: str) -> str:
@@ -1385,31 +1506,12 @@ def tailscale_page(code: str) -> str:
home_href = up + (path or "./")
base = up + path
shots = up + "assets/screenshots/" + ("" if code == "zh" else code + "/")
- t = TRANSCRIPTS["zh" if code == "zh" else "en"]
- links = {"home": home_href, "cloud": base + CLOUD, "server": base + GUIDE, "start": base + START}
+ links = {"home": home_href, "lan": base + LAN, "cloud": base + CLOUD, "server": base + GUIDE,
+ "start": base + START}
d = ts["diagram"]
- w, m, l = ts["win"], ts["mac"], ts["linux"]
- mac_dl = f"""curl -LO {DL}copysync-server-macos.tar.gz
-tar xzf copysync-server-macos.tar.gz
-cd copysync-server-macos
-./install.sh {TS_IP}"""
- linux_dl = f"""curl -LO {DL}copysync-server-linux-amd64.tar.gz
-tar xzf copysync-server-linux-amd64.tar.gz
-cd copysync-server-linux-amd64
-sudo ./install.sh {TS_IP}"""
- # Linux 的安装脚本不会改已有配置里的地址,装过的要自己换:-turn-ip 与 -stun 两处
- linux_switch = f"""sudo sed -i 's/{LAN_IP}/{TS_IP}/g' /etc/copysync/server.env
-sudo systemctl restart copysync-server"""
- cmd_line = (f'<span class="t-prompt">C:\\Users\\me\\Downloads\\copysync-server-windows-amd64&gt;</span>'
- f"install.cmd {TS_IP}")
-
- rows = []
- for i, (name, ip, system) in enumerate(TS_MACHINES):
- tag = f' <em>{ts["machines_server"]}</em>' if i == 0 else ""
- cls = ' class="hl"' if i == 0 else ""
- rows.append(f" <tr{cls}><td>{name}{tag}</td><td>{ip}</td><td>{system}</td></tr>")
- machines = "\n".join(rows)
+ rows = "\n".join(f" <tr><td>{name}</td><td>{ip}</td><td>{system}</td></tr>"
+ for name, ip, system in TS_MACHINES)
cols = "".join(f'<th scope="col">{h}</th>' for h in ts["machines_cols"])
return page_top(c, code, TAILSCALE, ts["title"], ts["description"]) + f"""
@@ -1430,37 +1532,22 @@ sudo systemctl restart copysync-server"""
<h2 id="overview-title">{ts["overview_h2"]}</h2>
<p class="intro">{ts["overview_intro"]}</p>
<figure class="diagram">
- <svg viewBox="0 0 960 460" role="img" aria-labelledby="ts-title ts-desc">
+ <svg viewBox="0 0 960 330" role="img" aria-labelledby="ts-title ts-desc">
<title id="ts-title">{d["title"]}</title>
<desc id="ts-desc">{d["desc"]}</desc>
- <rect class="d-ts" x="8" y="8" width="944" height="404" rx="22"/>
+ <rect class="d-ts" x="8" y="8" width="944" height="314" rx="22"/>
<text class="d-ts-label" x="32" y="42">{d["net"]}</text>
- <rect class="d-box" x="340" y="64" width="280" height="122" rx="14"/>
- <text class="d-title" x="480" y="102" text-anchor="middle">{d["server"]}</text>
- <text class="d-sub" x="480" y="130" text-anchor="middle">{d["server_place"]}</text>
- <text class="d-ip" x="480" y="164" text-anchor="middle">{TS_IP}</text>
- <path class="d-sig" d="M150 266V96H340"/>
- <path class="d-sig" d="M810 266V96H620"/>
- <path class="d-relay" d="M206 266V154H340"/>
- <path class="d-relay" d="M754 266V154H620"/>
- <text class="d-note" x="164" y="86">{d["sig_note"]}</text>
- <text class="d-note" x="220" y="214">{d["relay_note"]}</text>
- <rect class="d-box" x="40" y="266" width="240" height="126" rx="14"/>
- <text class="d-title" x="160" y="306" text-anchor="middle">Mac</text>
- <text class="d-sub" x="160" y="334" text-anchor="middle">{d["mac_place"]}</text>
- <text class="d-ip" x="160" y="368" text-anchor="middle">{TS_MAC}</text>
- <rect class="d-box" x="680" y="266" width="240" height="126" rx="14"/>
- <text class="d-title" x="800" y="306" text-anchor="middle">Windows</text>
- <text class="d-sub" x="800" y="334" text-anchor="middle">{d["win_place"]}</text>
- <text class="d-ip" x="800" y="368" text-anchor="middle">{TS_WIN}</text>
- <path class="d-direct" d="M280 330H680"/>
- <text class="d-label" x="480" y="316" text-anchor="middle">{d["direct"]}</text>
- <text class="d-note" x="480" y="358" text-anchor="middle">{d["direct_note"]}</text>
- <g class="d-legend" transform="translate(40 444)">
- <path class="d-direct" d="M0 0H28"/><text x="38" y="5">{g["diagram"]["legend_direct"]}</text>
- <path class="d-relay" d="M250 0H278"/><text x="288" y="5">{g["diagram"]["legend_relay"]}</text>
- <path class="d-sig" d="M560 0H588"/><text x="598" y="5">{g["diagram"]["legend_sig"]}</text>
- </g>
+ <rect class="d-box" x="40" y="100" width="240" height="160" rx="14"/>
+ <text class="d-title" x="160" y="146" text-anchor="middle">Mac</text>
+ <text class="d-sub" x="160" y="174" text-anchor="middle">{d["mac_place"]}</text>
+ <text class="d-ip" x="160" y="226" text-anchor="middle">{TS_MAC}</text>
+ <rect class="d-box" x="680" y="100" width="240" height="160" rx="14"/>
+ <text class="d-title" x="800" y="146" text-anchor="middle">Windows</text>
+ <text class="d-sub" x="800" y="174" text-anchor="middle">{d["win_place"]}</text>
+ <text class="d-ip" x="800" y="226" text-anchor="middle">{TS_WIN}</text>
+ <path class="d-direct" d="M280 190H680"/>
+ <text class="d-label" x="480" y="176" text-anchor="middle">{d["direct"]}</text>
+ <text class="d-note" x="480" y="218" text-anchor="middle">{d["direct_note"]}</text>
</svg>
</figure>
<ul class="points ports">
@@ -1496,16 +1583,16 @@ sudo systemctl restart copysync-server"""
<table>
<thead><tr>{cols}</tr></thead>
<tbody>
-{machines}
+{rows}
</tbody>
</table>
</figure>
</div>
</div>
<div class="server-notes">
- <h3>{ts["server_notes_h3"]}</h3>
+ <h3>{ts["join_notes_h3"]}</h3>
<ul class="points">
-{items(ts["server_notes"], " ")}
+{items(ts["join_notes"], " ")}
</ul>
</div>
</div>
@@ -1517,109 +1604,28 @@ sudo systemctl restart copysync-server"""
<h2 id="address-title">{ts["address_h2"]}</h2>
<p class="intro">{ts["address_intro"]}</p>
<div class="address-term">
- {term("mac", "mac-mini — zsh", f'<span class="t-prompt">%</span> tailscale ip -4{chr(10)}<span class="t-url">{TS_IP}</span>', ts["address_label"])}
+ {term("mac", "home-pc — PowerShell", f'<span class="t-prompt">&gt;</span> tailscale ip -4{chr(10)}<span class="t-url">{TS_WIN}</span>', ts["address_label"])}
</div>
<p class="note">{ts["address_after"]}</p>
</div>
</section>
- <section class="section" id="install" aria-labelledby="install-title">
+ <section class="section" id="pair" aria-labelledby="pair-title">
<div class="wrap">
<p class="eyebrow">{ts["step"].format(n=3)}</p>
- <h2 id="install-title">{ts["install_h2"]}</h2>
- <p class="intro">{fill(ts["install_intro"], links)}</p>
- <div class="os-tabs" data-tabs="os">
- <div class="tablist" role="tablist" aria-label="{g["os_label"]}" hidden>
- <button type="button" role="tab" id="tab-windows" aria-controls="windows">Windows</button>
- <button type="button" role="tab" id="tab-macos" aria-controls="macos">macOS</button>
- <button type="button" role="tab" id="tab-linux" aria-controls="linux">Linux</button>
+ <h2 id="pair-title">{ts["pair_h2"]}</h2>
+ <p class="intro">{ts["pair_intro"]}</p>
+ <div class="os-grid qs-grid">
+ <div>
+ <ol class="steps">
+{items(ts["pair_steps"], " ")}
+ </ol>
</div>
-
- <section class="os" id="windows" role="tabpanel" aria-labelledby="tab-windows">
- <h3 class="os-title">{DESKTOP}Windows</h3>
- <div class="os-grid">
- <div class="os-steps">
- <ol class="steps">
-{items(w["steps"])}
- </ol>
- <a class="button" href="{DL}copysync-server-windows-amd64.zip">{DOWN}{g["win"]["download"]}</a>
- <ul class="points">
-{items(w["notes"])}
- </ul>
- </div>
- <div class="os-figures">
- {term("win", w["cmd_title"], cmd_line, w["cmd_label"])}
- {term("win", g["win"]["term_title"], transcript(t["win"], "", "", TS_IP), w["term_label"])}
- </div>
- </div>
- </section>
-
- <section class="os" id="macos" role="tabpanel" aria-labelledby="tab-macos">
- <h3 class="os-title">{LAPTOP}macOS</h3>
- <div class="os-grid">
- <div class="os-steps">
- <ol class="steps">
- <li>{m["steps"][0]}
- {code_block(c, mac_dl)}</li>
-{items(m["steps"][1:])}
- </ol>
- <ul class="points">
-{items(m["notes"])}
- </ul>
- </div>
- <div class="os-figures">
- {term("mac", "copysync-server-macos — zsh", transcript(t["mac"], "%", f"./install.sh {TS_IP}", TS_IP), m["term_label"])}
- </div>
- </div>
- </section>
-
- <section class="os" id="linux" role="tabpanel" aria-labelledby="tab-linux">
- <h3 class="os-title">{SERVER}Linux</h3>
- <div class="os-grid">
- <div class="os-steps">
- <ol class="steps">
- <li>{l["steps"][0]}
- {code_block(c, linux_dl)}</li>
-{items(l["steps"][1:])}
- </ol>
- <div class="switch">
- <p>{l["switch"]}</p>
- {code_block(c, linux_switch)}
- </div>
- </div>
- <div class="os-figures">
- {term("mac", f"ssh {TS_IP}", transcript(t["linux"], "$", f"sudo ./install.sh {TS_IP}", TS_IP), l["term_label"])}
- </div>
- </div>
- </section>
+ <figure class="shot">
+ <img src="{shots}pairing-join-ts-dark.png" width="2112" height="1472" loading="lazy" alt="{esc(ts["pair_alt"])}">
+ </figure>
</div>
- </div>
- </section>
-
- <section class="section" id="check" aria-labelledby="check-title">
- <div class="wrap">
- <p class="eyebrow">{ts["step"].format(n=4)}</p>
- <h2 id="check-title">{ts["check_h2"]}</h2>
- <p class="intro">{ts["check_intro"]}</p>
- <figure class="browser" role="img" aria-label="{esc(ts["check_label"])}">
- <div class="b-bar"><span class="t-lights" aria-hidden="true"><i></i><i></i><i></i></span><span class="b-url">http://{TS_IP}:8787/healthz</span></div>
- <pre class="b-body">{{"status":"ok","version":"{VERSION}"}}</pre>
- </figure>
- <p class="note">{ts["check_after"]}</p>
- </div>
- </section>
-
- <section class="section" id="clients" aria-labelledby="clients-title">
- <div class="wrap">
- <p class="eyebrow">{ts["step"].format(n=5)}</p>
- <h2 id="clients-title">{ts["clients_h2"]}</h2>
- <ol class="flow">
-{chr(10).join(f" <li><h3>{h}</h3><p>{p}</p></li>" for h, p in ts["clients_steps"])}
- </ol>
- <figure class="shot">
- <img src="{shots}settings-tailscale-dark.png" width="2112" height="1472" loading="lazy" alt="{esc(ts["clients_alt"])}">
- </figure>
- <p class="note">{fill(ts["clients_after"], links)}</p>
+ <p class="note">{fill(ts["pair_after"], links)}</p>
</div>
</section>
@@ -1635,7 +1641,7 @@ sudo systemctl restart copysync-server"""
<section class="closing" aria-labelledby="closing-title">
<div class="wrap">
<h2 class="display" id="closing-title">{ts["closing"]}</h2>{cta(c)}
- <a class="source" href="{links["server"]}">{ts["source"]}</a>
+ <a class="source" href="{links["lan"]}">{ts["source"]}</a>
</div>
</section>
</main>
@@ -1917,6 +1923,7 @@ def main() -> None:
write(DOCS / path / "index.html", home(code))
write(DOCS / path / GUIDE / "index.html", server_page(code))
write(DOCS / path / START / "index.html", start_page(code))
+ write(DOCS / path / LAN / "index.html", lan_page(code))
write(DOCS / path / CLOUD / "index.html", cloud_page(code))
write(DOCS / path / TAILSCALE / "index.html", tailscale_page(code))
for md_name, page in DESIGN_DOCS.items():
diff --git a/tools/site/content/en.py b/tools/site/content/en.py
index 38a39ee..660fbff 100644
--- a/tools/site/content/en.py
+++ b/tools/site/content/en.py
@@ -6,11 +6,11 @@ SITE = "https://baiyuze.github.io/copysync/"
C = {
"title": "CopySync: sync the clipboard and files between Mac and Windows, across accounts and networks",
"description": "CopySync lets you copy on one computer and paste on another, Mac or Windows: text, images, files and folders. "
- "No shared account or network required. Peer-to-peer, end-to-end encrypted, with a server you host that "
- "can't see your content. Free and open source.",
+ "No shared account required. On the same network it works with no server at all; across networks, use a server "
+ "you host or Tailscale. Peer-to-peer and end-to-end encrypted. Free and open source.",
"og_title": "CopySync: copy on this computer, paste on that one",
"og_description": "Mac and Windows. Text, images, files and folders across accounts and networks; peer-to-peer, end-to-end "
- "encrypted, self-hosted server. Free and open source.",
+ "encrypted, no server needed on the same network. Free and open source.",
"og_image": "og-en.png",
"skip": "Skip to content",
"home_label": "CopySync home",
@@ -18,12 +18,12 @@ C = {
"nav_start": "Quick start",
"nav_how": "How it works",
"nav_faq": "FAQ",
- "nav_server": "Self-host",
+ "nav_server": "Ways to connect",
"lang_label": "Language",
"h1": "Copy on this computer.<br>Paste on that one.",
- "lede": "Mac and Windows. Text, images, files, whole folders. No shared account required, no shared network required. "
- "Data moves directly between your devices, and stays encrypted even when it passes through your own server.",
+ "lede": "Mac and Windows. Text, images, files, whole folders. No shared account required. On the same network it works "
+ "with no server at all, and it works across networks too. Data moves directly between your devices, end-to-end encrypted.",
"dl_mac": "Download for Mac",
"dl_win": "Download for Windows",
"dl_note": "Version 1.3.4, free and open source. macOS 13 or later, Intel and Apple silicon; Windows 10 and 11.",
@@ -35,15 +35,35 @@ C = {
"stage_arc": "Direct, end-to-end encrypted",
"replay": "Play again",
- # Three ways to run the server, on equal footing; the reader picks one. Home cards use name, fit, summary, go;
+ # Three ways to connect, on equal footing; the reader picks one. Home cards use name, fit, summary, go;
# the quick start tabs use name, facts, steps, address, go; the install section uses name, fit.
- # {cloud}, {server} and {ts} in steps become links to the matching guide.
- "paths_h2": "Where to run the server",
- "paths_intro": "Your computers find each other through a server; nothing you copy is stored on it. There's no public server, "
- "so pick one of three ways to run your own.",
+ # {lan}, {cloud}, {server} and {ts} in steps and address become links to the matching guide.
+ "paths_h2": "How your computers connect",
+ "paths_intro": "On the same network, install the app and pair; no server needed. Across networks, your computers find each "
+ "other through a server or Tailscale, and nothing you copy is stored there. Pick the way that fits.",
"paths_after": "Not sure? The <a href=\"{start}#server\">quick start</a> compares all three.",
- "plans_label": "Ways to run the server",
+ "plans_label": "Ways to connect",
"plans": {
+ "lan": {
+ "name": "Same network",
+ "fit": "Nothing to set up",
+ "summary": "At home or in the office, behind the same router. Install the app on both computers and enter a pairing code. "
+ "No server, and no computer that has to stay on.",
+ "go": "Same network guide →",
+ "facts": [
+ ("Best for", "Computers on the same Wi‑Fi or wired network, such as at home or in the office."),
+ ("You need", "Nothing. Just the app on each computer."),
+ ("Keep in mind", "No sync away from that network; it resumes when you're back. If wired and Wi‑Fi are on "
+ "different subnets, as in many offices, you also enter an address when pairing."),
+ ],
+ "steps": [
+ "Install the app on each computer and click Turn on background sync.",
+ "Allow CopySync if Windows Firewall asks, and allow it to find devices on your local network if macOS asks.",
+ "Show a code on one, enter it on the other and compare fingerprints. On a different subnet, also enter the address "
+ "shown under the code; see the <a href=\"{lan}#subnet\">same network guide</a>.",
+ ],
+ "address": "No server address to enter.",
+ },
"cloud": {
"name": "Public server",
"fit": "Syncs from anywhere",
@@ -59,49 +79,28 @@ C = {
"steps": [
"In your cloud provider's security group, open TCP 8787, UDP 3478 and UDP 32768–60999.",
"Log in with ssh, download the install script and run it with the public IP: <code>sudo ./install.sh PUBLIC_IP</code>.",
- "Open <code>http://PUBLIC_IP:8787/healthz</code> in a browser; ok means it's running.",
+ "In Settings on each computer, enter <code>ws://PUBLIC_IP:8787/signal</code>, press Return, then pair.",
],
- "address": "Address for every computer: <code>ws://PUBLIC_IP:8787/signal</code>",
- },
- "lan": {
- "name": "LAN",
- "fit": "All computers on one network",
- "summary": "At home or in the office, on the same Wi‑Fi or wired network. Run the server on one of your always-on "
- "Windows, Mac or Linux computers with one script. Free.",
- "go": "LAN guide →",
- "facts": [
- ("Best for", "Computers on the same Wi‑Fi or wired network, such as at home or in the office."),
- ("You need", "An always-on Windows, Mac or Linux computer; one of the computers you sync is fine."),
- ("Keep in mind", "No sync away from that network; it resumes when you're back. Sync also pauses while the "
- "server computer is off or asleep."),
- ],
- "steps": [
- "Reserve an address for the server computer in your router.",
- "Download the server for its system and run the install script: double-click <code>install.cmd</code> on "
- "<a href=\"{server}#windows\">Windows</a>, run <code>./install.sh</code> on <a href=\"{server}#macos\">macOS</a> "
- "or <a href=\"{server}#linux\">Linux</a>.",
- "The script finds the computer's LAN address and prints the address for the apps.",
- ],
- "address": "Address for every computer: <code>ws://LAN_ADDRESS:8787/signal</code>, for example <code>ws://192.168.1.20:8787/signal</code>",
+ "address": "Open <code>http://PUBLIC_IP:8787/healthz</code> in a browser; ok means it's running.",
},
"ts": {
- "name": "LAN + Tailscale",
- "fit": "Across networks, no public server",
- "summary": "Run the server on an always-on computer at home, then install Tailscale on each computer under the same "
- "account. They act as if they shared a LAN.",
+ "name": "Tailscale",
+ "fit": "Across networks, no server",
+ "summary": "Install Tailscale on each computer under one account and enter the other computer's Tailscale address when "
+ "pairing. Syncs at home and at the office, with no server and no computer that has to stay on.",
"go": "Tailscale guide →",
"facts": [
("Best for", "Computers on different networks, without a public server."),
- ("You need", "An always-on computer for the server, and Tailscale on every computer under one account."),
- ("Keep in mind", "Every computer that runs CopySync needs Tailscale, and the one at home stays on. When "
- "Tailscale can't connect peer to peer it relays through DERP servers, which can be slow."),
+ ("You need", "Tailscale on every computer, signed in to one account."),
+ ("Keep in mind", "Every computer that runs CopySync needs Tailscale, connected. When Tailscale can't connect "
+ "peer to peer it relays through DERP servers, which can be slow."),
],
"steps": [
"Install Tailscale on each computer and sign in to the same account.",
- "On the server computer, run <code>tailscale ip -4</code> and note the address starting with 100.",
- "Install the server with that address, as in <code>install.cmd 100.101.102.103</code> or <code>./install.sh 100.101.102.103</code>.",
+ "On the computer you'll pair with, run <code>tailscale ip -4</code> and note the address starting with 100.",
+ "When pairing, on the computer entering the code, click On a different subnet? and enter that address.",
],
- "address": "Address for every computer: <code>ws://TAILSCALE_ADDRESS:8787/signal</code>",
+ "address": "No server. A Tailscale address doesn't change, so you enter it once, when pairing.",
},
},
@@ -139,8 +138,9 @@ C = {
],
"how_h2": "How it works",
- "how_intro": "Your two computers open an encrypted connection to each other. Your server only helps them find one "
- "another, and relays traffic when a direct path can't be made.",
+ "how_intro": "Your two computers open an encrypted connection to each other. On the same network they find each other "
+ "on their own; across networks your server introduces them, and relays traffic when a direct path can't be "
+ "made. The diagram shows the cross-network case.",
"diagram": {
"title": "How CopySync connects",
"desc": "Computer A and computer B (Mac or Windows) connect directly over WebRTC. Both connect to your server for "
@@ -188,6 +188,11 @@ C = {
("Blocked at first, network recovers later", "Relay, then direct"),
("Office router locks a port for unsolicited packets", "Direct"),
("Home router locks a port for unsolicited packets", "Relay, then direct after one retry"),
+ ("No server, same subnet, found over mDNS", "Direct"),
+ ("No server, two subnets, one side remembers the address", "Direct"),
+ ("No server, both block inbound, both remember", "Direct"),
+ ("No server, both block inbound, only one remembers", "No connection (known limit)"),
+ ("No server, subnets isolated from each other", "No connection"),
],
"uplink_measured": "Measured: a Mac on a 4-uplink office network and one at home could only relay before, capped at "
"0.6 MB/s by the server's bandwidth. Now they connect directly, about 3 seconds after reaching the server.",
@@ -199,17 +204,20 @@ C = {
("You compare fingerprints when pairing.", " Both screens show the same two lines: the fingerprint of each device's key. The server could swap keys in transit, but then the two screens would no longer match. That check is what stops a man in the middle."),
("Every message after that is signed,", " so the server can't impersonate your device. The direct channel's certificate is checked again after the handshake; a mismatch drops the connection."),
("The relay only forwards ciphertext.", " TURN carries encrypted packets, and relay credentials are issued per device and expire after 12 hours."),
+ ("Same on the local network.", " What a device broadcasts on the LAN is an anonymous token that changes daily, not its name. Pairing still means comparing fingerprints, and every message is still signed."),
],
"verify_alt": "The fingerprint check during pairing shows R8NF-2WTC-QL5J and asks you to confirm it matches the other computer exactly",
"fallback_h2": "When things go wrong",
"fallback_intro": "Every network is different. Each of these cases was considered, and each has a test.",
"fallbacks": [
+ ("Can't find the other computer on the network", "Different subnets, guest networks and Wi‑Fi with client isolation block local discovery. Enter the address shown under the other computer's code when pairing; it's remembered afterwards, and if both computers change addresses you enter it once more in the device list."),
+ ("The system blocks the local network", "From macOS 15, the background service needs your permission to reach devices on the local network; Windows asks about the firewall on first run. If either isn't allowed, the app says so and links straight to the fix."),
("No direct path between the computers", "Common behind symmetric NAT and corporate firewalls. Traffic switches to the TURN relay on your server, still encrypted, and the device list shows \"Relay\"."),
("Public STUN servers unreachable", "Public STUN is unreliable in some regions, including mainland China. Your server runs its own STUN, and clients prefer it."),
("Connected through the relay first", "The relay handshake is fast and sometimes beats the direct path. Once connected, the side that started the connection punches again while idle and switches to direct when that works, never in the middle of a transfer."),
("The other computer sleeps, drops off or restarts", "A connection that dies silently is noticed, closed and reconnected. Anything you copy meanwhile is kept and added to the other computer's history once it's back, without overwriting what's on its clipboard now."),
- ("Server connection drops", "Reconnects automatically: the delay starts at 1 second and doubles up to 30, with jitter so devices don't all reconnect at once. The app shows the status live."),
+ ("Server connection drops", "Reconnects automatically: the delay starts at 1 second and doubles up to 30, with jitter so devices don't all reconnect at once. Devices on the same network keep syncing."),
("File too large", "Above the limit only a record is synced, pulled when you need it. If the source file is gone by then, you get a clear message instead of a vague failure."),
("Pasting into plain-text fields", "Rich text copied from the web is written as both HTML and plain text, so no markup leaks into what you paste."),
("A file name Windows doesn't allow", "Colons, question marks and a few other characters that are fine on a Mac arrive as the matching full-width characters, so the name still reads the same. Two names that differ only in case never overwrite each other."),
@@ -220,41 +228,44 @@ C = {
],
"install_h2": "Install",
- "install_intro": "Install the app on each computer, and set up a server both of them can reach. First time? Follow the "
- "<a href=\"{start}\">quick start</a>.",
+ "install_intro": "Install the app on each computer. On the same network you can pair right away; across networks, pick a way "
+ "for them to find each other. First time? Follow the <a href=\"{start}\">quick start</a>.",
"mac_steps": [
"Download CopySync.dmg, open it and drag CopySync into Applications.",
"Open it from Applications.<span class=\"aside\">The first time, macOS says it can't verify the developer: CopySync "
"isn't notarized by Apple yet. Go to System Settings → Privacy &amp; Security and click Open Anyway near the bottom. "
"You only do this once.</span>",
- "Click Turn on background sync. In Settings, enter your server as <code>ws://server-address:8787/signal</code> and press Return.",
- "When macOS asks whether CopySync may read the clipboard, allow it.",
+ "Click Turn on background sync. When macOS asks whether CopySync may read the clipboard or find devices on your local "
+ "network, allow both.",
+ "To sync across networks, enter your server in Settings as <code>ws://server-address:8787/signal</code> and press "
+ "Return. On the same network, leave it empty.",
],
"win_steps": [
"Run CopySync-Setup.exe. It installs for the current user, no administrator rights needed."
"<span class=\"aside\">CopySync isn't code-signed yet, so Windows says \"Windows protected your PC\": click More info, "
f"then Run anyway. To skip the installer, get the <a href=\"{REPO}/releases/latest/download/CopySync-windows-x64.zip\">portable zip</a>.</span>",
- "Open CopySync and click Turn on background sync. After you close the window it keeps running in the notification area.",
- "In Settings, enter your server address and press Enter. Allow it if Windows Firewall asks.",
+ "Open CopySync and click Turn on background sync. Allow it if Windows Firewall asks. After you close the window it "
+ "keeps running in the notification area.",
+ "To sync across networks, enter your server address in Settings and press Enter. On the same network, leave it empty.",
],
- "server_h3": "Server",
- "server_intro": "Three ways to run it; pick the one that fits. Each has a step-by-step guide:",
+ "server_h3": "Ways to connect",
+ "server_intro": "No server on the same network. Pick the way that fits; each has a step-by-step guide:",
"server_compare": "Compare the three",
"copy": "Copy",
"copied": "Copied",
"pairing": "<strong>Pairing:</strong> on one computer, choose Devices → Add device to show a 6-character code; enter it on "
- "the other, and confirm once both screens show the same two fingerprints. Mac with Windows, or two Windows PCs, "
- "works the same way.",
+ "the other, and confirm once both screens show the same two fingerprints. On a different subnet, also enter the "
+ "address shown under the code. Mac with Windows, or two Windows PCs, works the same way.",
"specs_h2": "Specifications",
"specs": [
("Version", '1.3.4, released <time datetime="2026-10-11">October 11, 2026</time>'),
("Mac app", "macOS 13 Ventura or later; universal binary for Intel and Apple silicon, no Rosetta; about 47 MB download"),
("Windows app", "Windows 10 (21H2 or later) and Windows 11, x64; installs per user, no administrator rights; about 23 MB download"),
- ("Server", "Linux on x86_64 or ARM64 (systemd or Docker), macOS (Intel and Apple silicon), Windows 10 and 11 x64 (as a service); about 15 MB of RAM"),
+ ("Server", "Optional, only for syncing across networks. Linux on x86_64 or ARM64 (systemd or Docker), macOS (Intel and Apple silicon), Windows 10 and 11 x64 (as a service); about 15 MB of RAM"),
("Languages", "English, Simplified Chinese and Japanese; follows the system by default, switchable in Settings"),
("Content", "Plain text, rich text, images and screenshots, files, folders; each type can be turned off"),
- ("Transport", "WebRTC data channels, direct first with TURN relay fallback; every uplink probed on multi-uplink networks; files streamed as tar + zstd"),
+ ("Transport", "WebRTC data channels, direct first with TURN relay fallback; on the same network, mDNS discovery and connection details over UDP 8788; every uplink probed on multi-uplink networks; files streamed as tar + zstd"),
("Encryption and identity", "End-to-end DTLS; Ed25519 device keys; every signaling message signed"),
("Pairing", "6-character code valid for 5 minutes, using an alphabet without look-alikes such as 0/O and 1/I; fingerprints compared by you"),
("Auto-sync limit", "50 MB by default, adjustable from 1 MB to 1 GB"),
@@ -271,9 +282,9 @@ C = {
]),
("How is this different from Universal Clipboard?", [
"Universal Clipboard needs both devices on the same Apple ID, with Bluetooth and Wi‑Fi on, close to each other, and "
- "works only between Apple devices. CopySync only needs both computers to reach your server, so different Apple IDs "
- "work, one Mac and one Windows PC work, and so does one at home and one at the office. It also keeps a history and "
- "lets you pull large files on demand.",
+ "works only between Apple devices. CopySync works on the same network as soon as it's installed; across networks, both "
+ "computers reach your server or run Tailscale. So different Apple IDs work, one Mac and one Windows PC work, and so "
+ "does one at home and one at the office. It also keeps a history and lets you pull large files on demand.",
"If your Macs share an Apple ID, sit side by side, and you mostly copy text, the built-in feature is already enough.",
]),
("Can the server see what I copy?", [
@@ -287,16 +298,25 @@ C = {
"back to the relay.",
]),
("Do I need my own server?", [
- "Yes. There is no public server, so nobody's data passes through anyone else's machine. There are three ways to run it: "
- "a <a href=\"{cloud}\">public server</a>, where the smallest VM is enough and sync works from anywhere; "
- "your <a href=\"{server}\">LAN</a>, on an always-on computer when all your computers share a network; "
- "or <a href=\"{ts}\">LAN + Tailscale</a>, across networks without a public server.",
+ "Not necessarily. When your computers are on the <a href=\"{lan}\">same network</a>, install the app and pair; "
+ "there's no server.",
+ "Across networks there are two ways: a <a href=\"{cloud}\">public server</a>, where the smallest VM is enough and "
+ "sync works from anywhere; or <a href=\"{ts}\">Tailscale</a> on each computer, entering the other computer's "
+ "Tailscale address when pairing, with no server at all. There's no public CopySync server, so nobody's data passes "
+ "through anyone else's machine.",
]),
("No public IP at home. Can I sync between home and the office?", [
"Yes, in two ways. With a public server, run CopySync's server there and connect both computers to it; see the "
- "<a href=\"{cloud}\">public server guide</a>. Without one, run the server on an always-on computer at home, install "
- "Tailscale on every computer under the same account, and use the server's Tailscale address; see "
- "<a href=\"{ts}\">LAN + Tailscale</a>.",
+ "<a href=\"{cloud}\">public server guide</a>. Without one, install Tailscale on every computer under the same "
+ "account and enter the other computer's Tailscale address when pairing; see the <a href=\"{ts}\">Tailscale guide</a>.",
+ ]),
+ ("Both computers are on the same network. Why can't they find each other?", [
+ "Check that they're really on the same subnet: wired and Wi‑Fi in many offices, guest networks, and Wi‑Fi with client "
+ "isolation don't let devices see each other. In that case, on the computer entering the code, click On a different "
+ "subnet? and enter the address shown under the other computer's code.",
+ "On Windows, allow CopySync when the firewall asks on first run; if you clicked Cancel, click Allow under Settings → "
+ "Local network. On a Mac, turn on CopySync Daemon in System Settings → Privacy &amp; Security → Local Network. More in "
+ "the <a href=\"{lan}#faq\">same network guide</a>.",
]),
("Windows? iPhone?", [
"Windows 10 and 11 (x64) are supported and work together with Macs. Files you paste on Windows are real files you "
@@ -341,6 +361,9 @@ C = {
"h1": "Run the server on your LAN",
"lede": "If your computers are on the same home or office network, you don't need a cloud server. Pick a computer that stays on, "
"download and run one script, then enter the address it prints into CopySync on each computer.",
+ "notice": "<strong>On the same network you no longer need a server:</strong> install the app and pair; see the "
+ "<a href=\"{lan}\">same network guide</a>. This guide still helps when two subnets can't reach each other and "
+ "traffic has to go through a computer both can reach.",
"toc": [("prepare", "Before you start"), ("install", "Install"), ("check", "Check"), ("clients", "Set up the apps"), ("faq", "Questions")],
"overview_h2": "The server only introduces devices",
@@ -491,8 +514,8 @@ C = {
"Reserving the address in your router avoids this.",
]),
("Does it sync away from the LAN?", [
- "No, the server is only reachable on your LAN. To sync from other networks, switch to one of the other two ways: "
- "a <a href=\"{cloud}\">public server</a>, or <a href=\"{ts}\">LAN + Tailscale</a>.",
+ "No, the server is only reachable on your LAN. To sync from other networks, use a <a href=\"{cloud}\">public "
+ "server</a> or <a href=\"{ts}\">Tailscale</a>.",
]),
("The server computer also runs CopySync. Which address?", [
"The same LAN address works, and so does <code>ws://127.0.0.1:8787/signal</code>. The server and the app don't interfere.",
@@ -611,8 +634,8 @@ C = {
]),
("My home connection has a public IP. Can I use that?", [
"Yes, but it's more work than a VM: forward TCP 8787, UDP 3478 and a large range of UDP relay ports to that computer, "
- "and a home IP may change. If all your computers are at home, the <a href=\"{server}\">LAN</a> setup is simpler; to sync "
- "across networks without port forwarding, see <a href=\"{ts}\">LAN + Tailscale</a>.",
+ "and a home IP may change. If all your computers are at home, they need no server at all on the "
+ "<a href=\"{lan}\">same network</a>; to sync across networks without port forwarding, see <a href=\"{ts}\">Tailscale</a>.",
]),
],
@@ -623,13 +646,12 @@ C = {
# ── Quick start (start/ page) ──
"start": {
"title": "Quick start: set up CopySync in three steps",
- "description": "New to CopySync? Install the app on each computer, pick a way to run the server (on your LAN, with "
- "Tailscale, or in the cloud), enter its address and pair, then copy and paste between Mac and Windows. "
- "No public IP needed.",
+ "description": "New to CopySync? Install the app on each computer. On the same network, just pair, with no server; across "
+ "networks, use a public server or Tailscale. Then copy and paste between Mac and Windows.",
"h1": "Quick start",
- "lede": "Install the app, set up a server, and pair your computers. The first time takes about ten minutes; "
+ "lede": "Install the app, pick a way to connect, and pair your computers. On the same network it takes a few minutes; "
"after that, copying just syncs.",
- "toc": [("app", "Install the app"), ("server", "Set up a server"), ("connect", "Enter the address"), ("pair", "Pair")],
+ "toc": [("app", "Install the app"), ("server", "Pick a way to connect"), ("pair", "Pair")],
"step": "Step {n}",
"app_h2": "Install the app on each computer",
@@ -638,98 +660,188 @@ C = {
"Download CopySync.dmg, open it and drag CopySync into Applications.",
"Open it from Applications.<span class=\"aside\">The first time, macOS says it can't verify the developer: go to "
"System Settings → Privacy &amp; Security and click Open Anyway near the bottom.</span>",
- "Click Turn on background sync, and allow clipboard access when macOS asks.",
+ "Click Turn on background sync. When macOS asks about clipboard access and finding devices on your local network, "
+ "allow both.",
],
"win": [
"Run CopySync-Setup.exe; no administrator rights needed.<span class=\"aside\">If you see \"Windows protected your PC\", "
"click More info, then Run anyway.</span>",
- "Open CopySync and click Turn on background sync. After you close the window it keeps running in the notification area.",
+ "Open CopySync and click Turn on background sync. Allow it if Windows Firewall asks. After you close the window it "
+ "keeps running in the notification area.",
],
"app_alt": "CopySync the first time it opens, asking you to turn on background sync",
- "server_h2": "Set up a server",
- "server_intro": "Your computers find each other through it; nothing you copy is stored there. There's no public server, "
- "and there are three ways to run your own. Pick the one that fits.",
-
- "connect_h2": "Enter the server address on each computer",
- "connect_steps": [
- ("Open Settings", "Open CopySync on each computer, including the one running the server, and go to Settings."),
- ("Enter the address", "Under Signaling server, enter the address from the previous step and press Return or Enter."),
- ("Check the status", "When Connection shows a green Connected, that computer is ready."),
- ],
- "connect_alt": "CopySync Settings: the signaling server is ws://192.168.1.20:8787/signal and the connection status shows Connected",
- "connect_after": "Stuck at Not connected? See the <a href=\"{server}#faq\">questions</a>.",
+ "server_h2": "Pick a way to connect",
+ "server_intro": "On the same network there's nothing to set up. Across networks, your computers find each other through "
+ "a public server or Tailscale, and nothing you copy is stored there.",
"pair_h2": "Pair your computers",
"pair_intro": "Pair each two computers once, and you're done.",
"pair_steps": [
- "On one computer, open Devices and click Add device. It shows a 6-character code, valid for 5 minutes.",
- "On the other, click Add device too, switch to Enter a code and type it in.",
+ "On one computer, open Devices and click Add device. It shows a 6-character code, valid for 5 minutes, and this "
+ "computer's address below it.",
+ "On the other, click Add device too, switch to Enter a code and type it in."
+ "<span class=\"aside\">On a different subnet, or with Tailscale, click On a different subnet? and enter the other "
+ "computer's address as well.</span>",
"Both screens show the same two fingerprint lines. Check them character by character, then confirm."
"<span class=\"aside\">This stops anyone in the middle from posing as your device. Don't skip it.</span>",
],
- "pair_alt": "Add device: the pairing code K7MP2X, to be entered on the other device",
+ "pair_alt": "Add device: the pairing code K7MP2X, with this computer's address 192.168.1.20 below it",
"done_h2": "Now copy something.",
"done_text": "Copy text, an image or a file on one computer and press ⌘V or Ctrl+V on the other. Everything copied on "
"either side is in the history.",
- "help": "Need help? <a href=\"{server}#faq\">LAN questions</a> · <a href=\"{ts}#faq\">Tailscale questions</a> · "
- "<a href=\"{issues}\">Report an issue</a>",
+ "help": "Need help? <a href=\"{lan}#faq\">Same network questions</a> · <a href=\"{ts}#faq\">Tailscale questions</a> · "
+ "<a href=\"{cloud}#faq\">Public server questions</a> · <a href=\"{issues}\">Report an issue</a>",
+ },
+
+ # ── Same network (lan/ page), no server ──
+ "lan": {
+ "title": "Use CopySync on one network: no server, just pair",
+ "description": "When your computers share a Wi‑Fi or wired network, CopySync needs no server: install the app, enter a "
+ "6-character pairing code, and sync the clipboard and files between Mac and Windows. On a different "
+ "subnet, you enter one address when pairing.",
+ "h1": "On the same network",
+ "lede": "Computers behind the same router don't need a server. Install the app, enter a pairing code, and copying syncs from then on.",
+ "toc": [("prepare", "Before you start"), ("pair", "Pair"), ("subnet", "Different subnets"), ("faq", "Questions")],
+ "step": "Step {n}",
+
+ "overview_h2": "No server",
+ "overview_intro": "Two computers on the same network find each other over mDNS, exchange connection details directly, "
+ "and open an encrypted direct connection. No server, and no computer that has to stay on.",
+ "diagram": {
+ "title": "CopySync on one network",
+ "desc": "On one LAN, a Mac (192.168.1.20) and a Windows PC (192.168.1.35) find each other over mDNS and exchange "
+ "connection details over UDP 8788. Copied content goes directly between them; there is no server.",
+ "lan": "LAN: the same Wi‑Fi or wired network",
+ "client": "Running CopySync",
+ "find_note": "Found over mDNS, connection details over UDP 8788",
+ "direct": "Direct, end-to-end encrypted",
+ "direct_note": "Content stays between the two computers",
+ },
+ "overview_points": [
+ "<strong>Found automatically.</strong> Each computer announces itself on the LAN over mDNS, with only an anonymous "
+ "token that changes daily, so nobody can tell whose computer it is.",
+ "<strong>Direct.</strong> Content goes straight between the two computers, at the speed of your network.",
+ "<strong>Same security.</strong> You compare two fingerprint lines when pairing, and every message after that is "
+ "signed, so others on the network can't pose as your device.",
+ ],
+ "prep": [
+ ("The same network", "Both computers behind the same router; Wi‑Fi and wired can mix. Guest networks and Wi‑Fi with "
+ "client isolation keep devices apart, and in many offices wired and Wi‑Fi are separate subnets: "
+ "see <a href=\"#subnet\">different subnets</a> below."),
+ ("Windows Firewall", "On first run, Windows asks whether CopySync may get through the firewall; allow it. If you "
+ "clicked Cancel, click Allow under Settings → Local network in CopySync, which asks for "
+ "administrator approval once."),
+ ("Local Network on macOS", "From macOS 15, the first time it reaches a device on your network, macOS asks whether "
+ "CopySync Daemon may find devices on your local network; allow it. If you declined, turn "
+ "it on in System Settings → Privacy &amp; Security → Local Network."),
+ ("No server address", "Leave the server field in Settings empty. To sync across networks later, add a server or use "
+ "Tailscale; paired devices stay paired."),
+ ],
+
+ "pair_h2": "Pair your computers",
+ "pair_intro": "Pair each two computers once. If the app isn't installed yet, see the <a href=\"{start}#app\">quick start</a>.",
+ "pair_steps": [
+ "On one computer, open Devices and click Add device. It shows a 6-character code, valid for 5 minutes.",
+ "On the other, click Add device too, switch to Enter a code, type it in and click Continue.",
+ "Both screens show the same two fingerprint lines. Check them character by character, then confirm. Copying syncs from now on.",
+ ],
+ "pair_alt": "Add device: the pairing code K7MP2X, with this computer's address 192.168.1.20 below it",
+
+ "subnet_h2": "Different subnets",
+ "subnet_intro": "Local discovery only reaches one subnet. When your computers are on different subnets that can still "
+ "reach each other, as in many offices, you enter one address when pairing.",
+ "subnet_steps": [
+ "The computer showing the code lists its address below it, such as <code>192.168.1.20</code>.",
+ "On the computer entering the code, click On a different subnet?, enter that address, and click Continue.",
+ "After pairing, each computer remembers the other's address. If one changes address, the other finds it again on its "
+ "own; if both change, open the device's … menu under Devices and choose Enter its address.",
+ ],
+ "subnet_alt": "Enter a code: the code K7MP2X, with the address field opened below it holding 192.168.1.20",
+ "subnet_after": "If the subnets can't reach each other at all, such as a guest network kept apart from the office network, "
+ "traffic has to go through a computer both can reach: see <a href=\"{server}\">run a server on your LAN</a>.",
+
+ "faq": [
+ ("The other computer can't be found", [
+ "Make sure both are on the network with background sync on. Then try entering the other computer's address on the "
+ "one entering the code: if that works, they're on different subnets, or the network blocks mDNS.",
+ "Still nothing? Check the other computer's firewall. On Windows, click Allow under Settings → Local network; on a "
+ "Mac, make sure CopySync Daemon is on under System Settings → Privacy &amp; Security → Local Network and the "
+ "macOS firewall isn't blocking it.",
+ ]),
+ ("Does it sync away from this network?", [
+ "No. It resumes when you're back, and anything copied in between is added to the other computer's history. To sync "
+ "across networks, add a <a href=\"{cloud}\">public server</a> or use <a href=\"{ts}\">Tailscale</a>; paired "
+ "devices stay paired.",
+ ]),
+ ("What if an address changes?", [
+ "Usually nothing to do. On one subnet, mDNS finds the computer again at any time; across subnets, it reconnects as "
+ "long as one of the two keeps its address. If both change, enter the address once more under Devices.",
+ "For a desktop that never moves, you can reserve its address in your router's DHCP settings.",
+ ]),
+ ("Can others on the network see my computer?", [
+ "They can see that a CopySync device is there, but not whose: the broadcast carries an anonymous token that changes "
+ "daily, with no device name or ID. Messages from devices you haven't paired with are dropped, and pairing requires "
+ "comparing fingerprints on both screens.",
+ ]),
+ ("Which ports does it use?", [
+ "UDP 8788 for connection details (a random port if that's taken), UDP 5353 for mDNS, and another random UDP port "
+ "for the data once connected. Nothing to configure on your router.",
+ ]),
+ ],
+
+ "closing": "One network,<br>nothing to set up.",
+ "source": "Design notes on local network mode (in Chinese)",
},
- # ── Use it across networks with Tailscale (tailscale/ page) ──
+ # ── Use it across networks with Tailscale (tailscale/ page), no server ──
"ts": {
- "title": "Use CopySync across networks with Tailscale: sync home and office without a public IP",
- "description": "Run the server on an always-on computer at home and install Tailscale on each computer: they act as if "
- "they shared a LAN, so the clipboard syncs from the office or anywhere else. No public IP, no router "
- "settings. Step-by-step for Windows, Mac and Linux.",
+ "title": "Use CopySync across networks with Tailscale: no server, home and office in sync",
+ "description": "Install Tailscale on each computer under one account and enter the other computer's Tailscale address "
+ "when pairing: no public IP, no server and no computer that has to stay on. The clipboard syncs from "
+ "the office or anywhere else.",
"h1": "Across networks with Tailscale",
- "lede": "Sync between home and the office without a public IP. The server stays at home; with Tailscale on each "
- "computer, they act as if they shared a LAN. No router settings, no cloud server.",
- "toc": [("join", "Install Tailscale"), ("address", "Find the address"), ("install", "Install the server"),
- ("check", "Check"), ("clients", "Set up the apps"), ("faq", "Questions")],
+ "lede": "No public IP, and no wish to run a server? Install Tailscale on each computer and enter the other computer's "
+ "Tailscale address when pairing. Syncs at home and at the office.",
+ "toc": [("join", "Install Tailscale"), ("address", "Find the address"), ("pair", "Pair"), ("faq", "Questions")],
"step": "Step {n}",
"overview_h2": "As if on one LAN",
"overview_intro": "Tailscale connects your devices into a private network: every device signed in to the same account "
- "gets a fixed address starting with 100, reachable from the others wherever they are. Install the "
- "CopySync server on that address and enter it in the apps; everything else works as on a LAN.",
+ "gets a fixed address starting with 100, reachable from the others wherever they are. CopySync "
+ "remembers the other computer's address when you pair, and connects as if both were on one network.",
"diagram": {
"title": "CopySync over Tailscale",
- "desc": "The server and a Windows PC are at home, a Mac is at the office. All three run Tailscale and each has an "
- "address starting with 100 on the same private network. Both computers connect to the server at "
- "100.101.102.103 for signaling; copied content goes directly between them, and through the server's relay "
- "only if that fails.",
+ "desc": "A Mac at the office and a Windows PC at home both run Tailscale and each has an address starting with 100 "
+ "on the same private network. Copied content goes directly between them; there is no server.",
"net": "Tailscale network: every device has a 100.x address",
- "server": "Server",
- "server_place": "At home, always on",
"mac_place": "At the office",
"win_place": "At home",
- "sig_note": "Signaling, TCP 8787",
- "relay_note": "Relay, UDP 3478, if direct fails",
"direct": "Direct, encrypted twice",
"direct_note": "Content stays between the two computers",
},
"overview_points": [
- "<strong>The server stays at home</strong> on any always-on Windows, Mac or Linux computer, just like on a LAN.",
- "<strong>Every computer runs Tailscale,</strong> signed in to the same account, including the server computer.",
+ "<strong>No server,</strong> and no computer that has to stay on: two computers that are on and connected to "
+ "Tailscale sync.",
+ "<strong>Enter the address once.</strong> A Tailscale address doesn't change; you enter it when pairing and the two "
+ "computers find each other from then on.",
"<strong>Encrypted twice.</strong> Inside Tailscale's WireGuard tunnel runs CopySync's own end-to-end encrypted "
- "connection. Neither Tailscale nor your server can see the content.",
+ "connection. Tailscale can't see the content.",
],
"prep": [
- ("A computer that stays on", "It runs the server, with the same requirements as <a href=\"{server}#prepare\">on a LAN</a>; "
- "sync pauses while it's off or asleep. Its Tailscale address doesn't change, so there's "
- "nothing to reserve in the router."),
("A Tailscale account", "Free for personal use; sign in with Google, Microsoft, GitHub or Apple. Use the same account on every device."),
- ("Tailscale on every computer", "There are clients for Windows, macOS and Linux. Every computer that runs CopySync needs "
- "it, including one that never leaves home."),
- ("ZeroTier works too", "So does any tool that gives each device a fixed virtual address: install the server on that "
- "address and enter it in the apps. This guide uses Tailscale."),
+ ("Tailscale on every computer", "There are clients for Windows, macOS and Linux. Every computer that runs CopySync "
+ "needs it, connected."),
+ ("CopySync installed", "The app on each computer with background sync on; see the <a href=\"{start}#app\">quick start</a>. "
+ "Leave the server address empty."),
+ ("ZeroTier works too", "So does any tool that gives each device a fixed virtual address: enter that address when "
+ "pairing. This guide uses Tailscale."),
],
"join_h2": "Install Tailscale on each computer",
- "join_intro": "On the server computer and every computer you sync, install it and sign in to the same account.",
+ "join_intro": "On every computer you sync, install it and sign in to the same account.",
"join_steps": [
"Download the client for your system from the Tailscale website and install it."
"<span class=\"aside\">On Linux, run <code>curl -fsSL https://tailscale.com/install.sh | sh</code>, then "
@@ -739,82 +851,32 @@ C = {
],
"join_download": "Download Tailscale",
"machines_cols": ["Machine", "Tailscale address", "OS"],
- "machines_server": "Server",
- "machines_label": "The machine list in the Tailscale admin console (illustration): mac-mini is the server at 100.101.102.103, "
- "macbook-pro is 100.88.20.5 and home-pc is 100.92.41.17",
- "server_notes_h3": "One more thing on the server computer",
- "server_notes": [
- "<strong>Windows:</strong> right-click the Tailscale icon in the notification area and turn on Run unattended under "
- "Preferences. Otherwise Tailscale disconnects when you sign out, and computers elsewhere lose the server.",
- "<strong>Mac:</strong> stay logged in, keep it awake, and make sure Tailscale opens at login. The CopySync server "
- "also only runs while you're logged in.",
- "<strong>Turn off key expiry:</strong> by default Tailscale asks devices to sign in again every 180 days. On the "
- "Machines page of the admin console, open the menu at the end of the server's row and choose Disable key expiry.",
+ "machines_label": "The Tailscale admin console's machine list (illustration): macbook-pro is 100.88.20.5 and home-pc is 100.92.41.17",
+ "join_notes_h3": "Keep Tailscale connected",
+ "join_notes": [
+ "<strong>Windows:</strong> right-click the Tailscale icon in the notification area and check Run unattended under "
+ "Preferences, so it stays connected after you sign out.",
+ "<strong>Mac:</strong> make sure Tailscale opens at login.",
+ "<strong>Disable key expiry:</strong> by default Tailscale asks devices to sign in again every 180 days. For a computer "
+ "that rarely changes, open the menu at the end of its row on the Machines page and choose Disable key expiry.",
],
- "address_h2": "Find the server's Tailscale address",
- "address_intro": "On the server computer, click the Tailscale icon in the menu bar (the notification area on Windows); "
- "the menu shows this device's address. Or run <code>tailscale ip -4</code> in a terminal.",
- "address_label": "tailscale ip -4 in a terminal prints this device's Tailscale address, 100.101.102.103",
- "address_after": "The steps below use <code>100.101.102.103</code>; use your own address.",
-
- "install_h2": "Install the server on that address",
- "install_intro": "The install scripts use the LAN address by default. Pass the Tailscale address instead so computers "
- "elsewhere can use the server's relay. Already installed it with the <a href=\"{server}\">LAN guide</a>? "
- "Run the script again with the address; your settings are kept.",
- "win": {
- "steps": [
- "Download copysync-server-windows-amd64.zip and choose Extract All. If it's already installed, use the folder you extracted before.",
- "Open the extracted folder, type <code>cmd</code> in the address bar at the top and press Enter to open a Command Prompt.",
- "Run <code>install.cmd 100.101.102.103</code> with your address, and click Yes when User Account Control asks.",
- "Installation continues in a new window. The address at the end should be <code>ws://100.101.102.103:8787/signal</code>.",
- ],
- "notes": [
- "<strong>Firewall already allowed:</strong> the script's inbound rule applies to every network, Tailscale's adapter included.",
- "If you see \"Windows protected your PC\", click More info, then Run anyway.",
- ],
- "cmd_title": "Command Prompt",
- "cmd_label": "A Command Prompt opened in the extracted folder runs install.cmd 100.101.102.103",
- "term_label": "The window after install.cmd finishes, ending with the address ws://100.101.102.103:8787/signal",
- },
- "mac": {
- "steps": [
- "Open Terminal and run these lines, with your address on the last one:",
- "The address at the end should be <code>ws://100.101.102.103:8787/signal</code>.",
- ],
- "notes": [
- "Already installed? Run <code>./install.sh 100.101.102.103</code> in the same folder; your settings are kept.",
- "<strong>If the macOS firewall is on,</strong> the script ends with the command to allow copysync-server.",
- ],
- "term_label": "Output of ./install.sh 100.101.102.103 in Terminal, ending with the address ws://100.101.102.103:8787/signal",
- },
- "linux": {
- "steps": [
- "Run these lines, with your address on the last one:<span class=\"aside\">On ARM, replace <code>amd64</code> with <code>arm64</code>.</span>",
- "The address at the end should be <code>ws://100.101.102.103:8787/signal</code>.",
- ],
- "switch": "<strong>Already installed?</strong> The Linux script leaves an existing config alone. Replace the old "
- "address in it with the Tailscale address (put your old address in place of <code>192.168.1.20</code>) "
- "and restart the service:",
- "term_label": "Output of sudo ./install.sh 100.101.102.103, ending with the address ws://100.101.102.103:8787/signal",
- },
-
- "check_h2": "Check from outside",
- "check_intro": "On a computer outside your home network, or a laptop on your phone's hotspot, make sure Tailscale is "
- "connected and open <code>http://100.101.102.103:8787/healthz</code> in a browser. If you see this line, "
- "the server is reachable from outside.",
- "check_label": "A browser showing http://100.101.102.103:8787/healthz, with the server's status ok and its version",
- "check_after": "If it doesn't load, see the <a href=\"#faq\">questions</a> below.",
+ "address_h2": "Find the other computer's Tailscale address",
+ "address_intro": "On the computer you'll pair with, click the Tailscale icon (in the menu bar on a Mac, in the notification "
+ "area on Windows) to see its address, or run <code>tailscale ip -4</code> in a terminal.",
+ "address_label": "Running tailscale ip -4 in PowerShell prints the computer's Tailscale address, 100.92.41.17",
+ "address_after": "The steps below use <code>100.92.41.17</code>, the Windows PC at home. Use your own address.",
- "clients_h2": "Enter the address on each computer",
- "clients_steps": [
- ("Open Settings", "Open CopySync on each computer, including the one running the server, and go to Settings."),
- ("Enter the Tailscale address", "Under Signaling server, enter <code>ws://100.101.102.103:8787/signal</code> with your address and press Return or Enter."),
- ("Check the status", "When Connection shows a green Connected, you're set. If you haven't paired yet, pair under Devices."),
+ "pair_h2": "Enter the address when pairing",
+ "pair_intro": "Just like pairing on one network, with one extra address.",
+ "pair_steps": [
+ "On the Windows PC at home, open Devices, click Add device and note the 6-character code.",
+ "On the Mac at the office, click Add device, switch to Enter a code and type it in; then click On a different "
+ "subnet?, enter <code>100.92.41.17</code> and click Continue.",
+ "Both screens show the same two fingerprint lines. Check them, then confirm. The two computers now sync wherever they are.",
],
- "clients_alt": "CopySync Settings: the signaling server is ws://100.101.102.103:8787/signal and the connection status shows Connected",
- "clients_after": "Use the Tailscale address on your home computers too, not the LAN address, so nothing changes when a "
- "computer leaves the house. When they're all at home, the data still stays on your home network.",
+ "pair_alt": "Enter a code: the code K7MP2X, with the Tailscale address 100.92.41.17 in the address field",
+ "pair_after": "When both computers are at home, CopySync also finds the other one on the LAN directly, so data takes no detour.",
"faq": [
("Devices show Direct, but it's slow", [
@@ -824,47 +886,50 @@ C = {
"and port means it's peer to peer. Office and campus networks relay more often; you can run your own DERP "
"server or try another mesh VPN.",
]),
- ("The status stays at Not connected", [
- "First make sure Tailscale is connected on that computer, then open <code>http://server-tailscale-address:8787/healthz</code> in a browser.",
- "If it doesn't load, check whether the server computer is asleep, whether Tailscale is online there (Run unattended "
- "on Windows, staying logged in on a Mac), whether the server still uses its LAN address, and whether a firewall on "
- "a Mac or Linux server blocks it.",
+ ("Pairing can't find the other computer", [
+ "First make sure Tailscale is connected on both: run <code>tailscale ping other-address</code> and try again once "
+ "it answers.",
+ "If ping works but pairing doesn't, the other computer's firewall is likely blocking it. On Windows, click Allow "
+ "under Settings → Local network in CopySync; on a Mac, turn on CopySync Daemon under System Settings → Privacy "
+ "&amp; Security → Local Network.",
]),
("Does every computer need Tailscale?", [
- "Yes. A computer without it can't reach the 100.x addresses, and computers elsewhere can't reach it. That includes "
- "one that never leaves home.",
+ "Yes, a computer without it can't reach the 100.x addresses. Computers on the same network don't need it; see "
+ "the <a href=\"{lan}\">same network guide</a>.",
]),
- ("I already followed the LAN guide. Start over?", [
- "No. Run the install script again with the Tailscale address (on Linux, edit the config), then change the server "
- "address on each computer to the Tailscale one. Paired devices stay paired.",
+ ("I set up a server at home with the old guide. Do I still need it?", [
+ "No. Clear the server address in Settings on each computer and uninstall the server at home; paired devices stay "
+ "paired. Keeping it doesn't hurt either: a server and Tailscale work together.",
]),
("Can Tailscale see what I copy?", [
"No. Tailscale connections are end-to-end encrypted with WireGuard, and inside runs CopySync's own DTLS-encrypted "
"connection; only your two computers can open either layer. Tailscale's servers only exchange device keys and "
"addresses, and its relays forward encrypted packets.",
]),
- ("Will the server's Tailscale address change?", [
+ ("Will a Tailscale address change?", [
"Usually not. The address belongs to the device and survives restarts and network changes; it only changes if you "
- "remove the device from Tailscale and add it again.",
+ "remove the device from Tailscale and add it again. If it does, enter it once more under Devices.",
]),
- ("I have a public IP. Do I need Tailscale?", [
+ ("I have a public server. Do I need Tailscale?", [
"No. Run the server on the machine with the public IP and enter that address on every computer; see the "
"<a href=\"{cloud}\">public server guide</a>.",
]),
],
- "closing": "The server stays home.<br>Your clipboard comes with you.",
- "source": "Back to the LAN guide",
+ "closing": "No server.<br>Your clipboard comes with you.",
+ "source": "Back to the same network guide",
},
"ld_description": "Open-source app that syncs the clipboard and files between Mac and Windows computers. Copy text, "
- "images, files or folders on one computer and paste on the other. Devices connect directly over "
- "WebRTC with end-to-end DTLS encryption, falling back to a TURN relay on a server the user hosts.",
+ "images, files or folders on one computer and paste on the other. No server is needed on the same "
+ "network. Devices connect directly over WebRTC with end-to-end DTLS encryption; across networks, a "
+ "server the user hosts introduces them and relays over TURN when needed.",
"ld_os": "macOS 13 or later (Intel and Apple silicon); Windows 10, Windows 11 (x64)",
"ld_currency": "USD",
"ld_features": [
"Syncs plain text, rich text, images, files and folders",
"Works between Mac and Windows, across accounts and networks",
+ "No server needed on the same network, with automatic mDNS discovery",
"Direct WebRTC connection with automatic TURN relay fallback",
"End-to-end DTLS encryption with human-verified fingerprints at pairing",
"Items under 50 MB pushed on copy, larger files pulled on demand",
diff --git a/tools/site/content/ja.py b/tools/site/content/ja.py
index bf3d884..37ada58 100644
--- a/tools/site/content/ja.py
+++ b/tools/site/content/ja.py
@@ -6,11 +6,12 @@ SITE = "https://baiyuze.github.io/copysync/"
C = {
"title": "CopySync:Mac と Windows のあいだでクリップボードとファイルを同期。アカウントもネットワークも別々で OK",
"description": "CopySync は、一台でコピーしたものをもう一台でそのまま貼り付けられるアプリです。Mac と Windows の両方に対応し、"
- "テキスト、画像、ファイル、フォルダを同期します。同じアカウントや同じネットワークは不要。デバイス間は P2P で直接つながり、"
- "エンドツーエンドで暗号化。サーバーは自分で用意し、内容は見えません。無料・オープンソース。",
+ "テキスト、画像、ファイル、フォルダを同期します。同じアカウントは不要。同じネットワークならサーバーなしで使え、"
+ "ネットワークをまたぐときは自分で用意したサーバーか Tailscale を使います。デバイス間は P2P で直接つながり、"
+ "エンドツーエンドで暗号化。無料・オープンソース。",
"og_title": "CopySync:このコンピューターでコピーして、あのコンピューターで貼り付け",
"og_description": "Mac と Windows に対応。テキスト、画像、ファイル、フォルダを、アカウントやネットワークをまたいで同期。"
- "P2P 直接接続、エンドツーエンド暗号化、サーバーはセルフホスト。無料・オープンソース。",
+ "P2P 直接接続、エンドツーエンド暗号化、同じネットワークならサーバー不要。無料・オープンソース。",
"og_image": "og-en.png",
"skip": "本文へ移動",
"home_label": "CopySync ホーム",
@@ -18,12 +19,12 @@ C = {
"nav_start": "はじめかた",
"nav_how": "しくみ",
"nav_faq": "よくある質問",
- "nav_server": "サーバーの設置",
+ "nav_server": "接続方法",
"lang_label": "言語",
"h1": "こっちでコピーして、<br>あっちで貼り付け。",
- "lede": "Mac と Windows に対応。テキスト、画像、ファイル、フォルダまるごと。同じアカウントも、同じネットワークも要りません。"
- "データはデバイス間を直接流れ、自分のサーバーを経由するときも暗号化されたままです。",
+ "lede": "Mac と Windows に対応。テキスト、画像、ファイル、フォルダまるごと。同じアカウントは要りません。"
+ "同じネットワークならサーバーなしで使え、ネットワークをまたいでも使えます。データはデバイス間を直接流れ、エンドツーエンドで暗号化されます。",
"dl_mac": "Mac 版をダウンロード",
"dl_win": "Windows 版をダウンロード",
"dl_note": "バージョン 1.3.4、無料・オープンソース。macOS 13 以降(Intel と Apple シリコン)、Windows 10・11。",
@@ -34,15 +35,32 @@ C = {
"stage_arc": "直接接続、エンドツーエンド暗号化",
"replay": "もう一度再生",
- # サーバーの置き方 3 通り。どれも同じ扱いで、ユーザーが選ぶ。トップページのカードは name、fit、summary、go、
+ # 接続方法 3 通り。どれも同じ扱いで、ユーザーが選ぶ。トップページのカードは name、fit、summary、go、
# はじめかたのタブは name、facts、steps、address、go、インストール欄は name、fit を使う。
- # steps の {cloud}、{server}、{ts} はそれぞれの手順ページへのリンクに置き換わる
- "paths_h2": "サーバーをどこに置くか",
- "paths_intro": "2 台はサーバーを通じてお互いを見つけます。コピーした内容がそこに保存されることはありません。公開サーバーはないので、"
- "3 通りの置き方から状況に合うものを選んでください。",
+ # steps と address の {lan}、{cloud}、{server}、{ts} はそれぞれの手順ページへのリンクに置き換わる
+ "paths_h2": "2 台をどうつなぐか",
+ "paths_intro": "同じネットワークなら、アプリを入れてペアリングするだけで、サーバーは要りません。ネットワークをまたぐときは、"
+ "サーバーか Tailscale を通じてお互いを見つけます。コピーした内容がそこに保存されることはありません。状況に合うものを選んでください。",
"paths_after": "迷ったら<a href=\"{start}#server\">はじめかた</a>で 3 通りを比べられます。",
- "plans_label": "サーバーの置き方",
+ "plans_label": "接続方法",
"plans": {
+ "lan": {
+ "name": "同じネットワーク",
+ "fit": "準備は何も要らない",
+ "summary": "家や会社で、同じルーターにつながっている場合。2 台にアプリを入れてペアリングコードを入力するだけ。サーバーも、電源を入れたままのコンピューターも要りません。",
+ "go": "同じネットワークでの手順 →",
+ "facts": [
+ ("向いている", "コンピューターがすべて同じ Wi‑Fi か有線ネットワークにある場合(家や会社など)。"),
+ ("必要なもの", "何もありません。各コンピューターにアプリを入れるだけです。"),
+ ("注意", "そのネットワークの外では同期せず、戻ると再開します。会社などで有線と Wi‑Fi のサブネットが分かれている場合は、ペアリング時にアドレスもひとつ入力します。"),
+ ],
+ "steps": [
+ "各コンピューターにアプリを入れ、「バックグラウンド同期を有効にする」をクリックします。",
+ "Windows ファイアウォールに聞かれたら許可し、macOS にローカルネットワーク上のデバイスを探してよいか聞かれたら、それも許可します。",
+ "一台でコードを表示し、もう一台で入力して指紋を照合します。別のサブネットにある場合は、コードの下に表示されたアドレスも入力します(<a href=\"{lan}#subnet\">同じネットワークでの手順</a>)。",
+ ],
+ "address": "サーバーのアドレスを入力する必要はありません。",
+ },
"cloud": {
"name": "公開サーバー",
"fit": "どこからでも同期",
@@ -56,44 +74,26 @@ C = {
"steps": [
"クラウドのセキュリティグループで TCP 8787、UDP 3478、UDP 32768–60999 を開けます。",
"ssh でログインし、インストールスクリプトをダウンロードして、グローバル IP を付けて実行します:<code>sudo ./install.sh グローバルIP</code>。",
- "ブラウザーで <code>http://グローバルIP:8787/healthz</code> を開き、ok と表示されれば完了です。",
+ "各コンピューターの「設定」にサーバーのアドレス <code>ws://グローバルIP:8787/signal</code> を入力して Return を押し、ペアリングします。",
],
- "address": "各コンピューターに入力するアドレス:<code>ws://グローバルIP:8787/signal</code>",
- },
- "lan": {
- "name": "LAN",
- "fit": "全部が同じネットワークにある",
- "summary": "家や会社で、同じ Wi‑Fi か有線ネットワークにつながっている場合。電源を入れたままの Windows・Mac・Linux のどれか 1 台で、スクリプトをひとつ実行するだけ。費用はかかりません。",
- "go": "LAN での設置手順 →",
- "facts": [
- ("向いている", "コンピューターがすべて同じ Wi‑Fi か有線ネットワークにある場合(家や会社など)。"),
- ("必要なもの", "電源を入れたままの Windows・Mac・Linux。同期するコンピューターの 1 台でもかまいません。"),
- ("注意", "そのネットワークの外では同期せず、戻ると再開します。そのコンピューターの電源が切れたりスリープしたりしているあいだも止まります。"),
- ],
- "steps": [
- "サーバーにするコンピューターのアドレスをルーターで固定します。",
- "OS に合ったサーバーをダウンロードしてインストールスクリプトを実行します。<a href=\"{server}#windows\">Windows</a> は "
- "<code>install.cmd</code> をダブルクリック、<a href=\"{server}#macos\">macOS</a> と <a href=\"{server}#linux\">Linux</a> は <code>./install.sh</code> を実行します。",
- "スクリプトが LAN のアドレスを見つけ、最後にアプリに入力するアドレスを表示します。",
- ],
- "address": "各コンピューターに入力するアドレス:<code>ws://LANのアドレス:8787/signal</code>(例:<code>ws://192.168.1.20:8787/signal</code>)",
+ "address": "ブラウザーで <code>http://グローバルIP:8787/healthz</code> を開き、ok と表示されれば完了です。",
},
"ts": {
- "name": "LAN + Tailscale",
- "fit": "ネットワークをまたぐ、公開サーバーなし",
- "summary": "サーバーは自宅で電源を入れたままのコンピューターに置き、各コンピューターに Tailscale を入れて同じアカウントでサインインします。同じ LAN にあるのと同じように扱えます。",
+ "name": "Tailscale",
+ "fit": "ネットワークをまたぐ、サーバーなし",
+ "summary": "各コンピューターに Tailscale を入れて同じアカウントでサインインし、ペアリング時に相手の Tailscale アドレスを入力します。自宅でも会社でも同期でき、サーバーも電源を入れたままのコンピューターも要りません。",
"go": "Tailscale での手順 →",
"facts": [
("向いている", "コンピューターが別々のネットワークにあり、公開サーバーがない場合。"),
- ("必要なもの", "サーバー用に電源を入れたままのコンピューター 1 台と、すべてのコンピューターに同じアカウントの Tailscale。"),
- ("注意", "CopySync を使うコンピューターすべてに Tailscale が必要で、自宅の 1 台は電源を入れたままにします。Tailscale が P2P でつなげないときは DERP サーバーで中継され、遅くなることがあります。"),
+ ("必要なもの", "すべてのコンピューターに、同じアカウントでサインインした Tailscale。"),
+ ("注意", "CopySync を使うコンピューターすべてに Tailscale が必要で、接続したままにします。Tailscale が P2P でつなげないときは DERP サーバーで中継され、遅くなることがあります。"),
],
"steps": [
"各コンピューターに Tailscale を入れ、同じアカウントでサインインします。",
- "サーバーにするコンピューターで <code>tailscale ip -4</code> を実行し、100 で始まるアドレスを控えます。",
- "そのアドレスを付けてサーバーをインストールします(例:<code>install.cmd 100.101.102.103</code>、<code>./install.sh 100.101.102.103</code>)。",
+ "ペアリングする相手のコンピューターで <code>tailscale ip -4</code> を実行し、100 で始まるアドレスを控えます。",
+ "ペアリングのとき、コードを入力する側で「別のサブネットにありますか?」をクリックし、そのアドレスを入力します。",
],
- "address": "各コンピューターに入力するアドレス:<code>ws://Tailscaleのアドレス:8787/signal</code>",
+ "address": "サーバーは要りません。Tailscale のアドレスは変わらないので、入力はペアリングのときの一度だけです。",
},
},
@@ -129,8 +129,8 @@ C = {
],
"how_h2": "しくみ",
- "how_intro": "2 台のコンピューターは、暗号化された接続で直接つながります。サーバーの役目はお互いを見つけさせることと、"
- "直接つながらないときに中継することだけです。",
+ "how_intro": "2 台のコンピューターは、暗号化された接続で直接つながります。同じネットワークなら自分たちでお互いを見つけます。"
+ "ネットワークをまたぐときはサーバーが引き合わせ、直接つながらないときだけ中継します。下の図はネットワークをまたぐ場合です。",
"diagram": {
"title": "CopySync の接続のしかた",
"desc": "コンピューター A と B(Mac または Windows)は WebRTC で直接つながります。どちらもシグナリングのためにあなたのサーバーへ接続し、"
@@ -176,6 +176,11 @@ C = {
("最初はつながらず、あとでネットワークが回復", "中継のあと直接"),
("会社のルーターが外からのパケットでポートをふさぐ", "直接"),
("家庭用ルーターが外からのパケットでポートをふさぐ", "中継のあと、1 回の再試行で直接"),
+ ("サーバーなし、同じサブネット、mDNS で発見", "直接"),
+ ("サーバーなし、別のサブネット、片方が相手のアドレスを覚えている", "直接"),
+ ("サーバーなし、両方が受信をブロック、両方がアドレスを覚えている", "直接"),
+ ("サーバーなし、両方が受信をブロック、片方だけが覚えている", "つながらない(既知の制限)"),
+ ("サーバーなし、サブネット同士が遮断されている", "つながらない"),
],
"uplink_measured": "実測:出口が 4 つある会社の Mac と自宅の Mac は、以前は中継しかできず、サーバーの帯域で 0.6 MB/s に抑えられていました。"
"いまは直接つながり、サーバーに接続してから約 3 秒で確立します。",
@@ -187,17 +192,20 @@ C = {
("ペアリングでは指紋をあなたが照合する。", "両方の画面に同じ 2 行、つまりお互いの公開鍵の指紋が表示されます。サーバーは転送中の公開鍵をすり替えられますが、すり替えれば 2 つの画面が一致しなくなります。この照合が中間者攻撃を防ぐ関門です。"),
("その後のメッセージはすべて署名付き。", "サーバーがあなたのデバイスになりすますことはできません。直接接続の証明書もハンドシェイク後にもう一度照合し、食い違えばすぐ切断します。"),
("中継も暗号文を転送するだけ。", "TURN が運ぶのは暗号化済みのパケットです。中継用の認証情報はデバイスごとに発行され、12 時間で失効します。"),
+ ("ローカルネットワークでも同じ。", "デバイスが LAN に流すのは毎日変わる匿名の識別子だけで、誰のコンピューターかはわかりません。ペアリングでは同じく指紋を照合し、その後のメッセージも署名付きです。"),
],
"verify_alt": "ペアリング時の「セキュリティ指紋を確認」ダイアログ。R8NF-2WTC-QL5J が表示され、もう一台の表示と完全に一致するか確かめるよう求めている",
"fallback_h2": "うまくいかないときに起きること",
"fallback_intro": "ネットワークの事情は人それぞれです。ここに挙げたケースはどれも想定済みで、テストがあります。",
"fallbacks": [
+ ("同じネットワークなのに相手が見つからない", "サブネットが違う、ゲストネットワーク、クライアント分離(AP アイソレーション)が有効な Wi‑Fi では、LAN 内の検出が届きません。ペアリング時に相手のコードの下に表示されたアドレスを入力してください。アドレスはその後も記憶され、両方のアドレスが変わったときはデバイス一覧からもう一度入力します。"),
+ ("システムがローカルネットワークを止めている", "macOS 15 以降、バックグラウンドサービスが LAN 上のデバイスに接続するにはあなたの許可が要ります。Windows は初回起動時にファイアウォールについて聞いてきます。許可されていないときはアプリが知らせ、設定へ直接飛べるボタンを出します。"),
("2 台が直接つながらない", "対称型 NAT や会社のファイアウォールでよく起きます。自動であなたのサーバーの TURN 中継に切り替わり、内容は暗号化されたまま。デバイス一覧には「中継」と表示されます。"),
("公開 STUN サーバーにつながらない", "中国本土などでは公開 STUN が不安定です。サーバーは STUN を内蔵していて、クライアントはそちらを優先します。"),
("先に中継でつながった", "中継のハンドシェイクは速く、直接接続より先に決まることがあります。接続後、接続を始めた側がアイドル時にもう一度穴あけを試み、成功すれば直接接続に切り替えます。転送中は邪魔しません。"),
("相手がスリープ、切断、再起動した", "黙って切れた接続にも気づき、すぐに閉じて再接続します。そのあいだにコピーしたものは記録しておき、つながったら相手の履歴に追加します。相手のいまのクリップボードは上書きしません。"),
- ("サーバーとの接続が切れた", "自動で再接続します。間隔は 1 秒から倍々で最大 30 秒、ランダムな揺らぎ付きで、たくさんのデバイスが一斉に再接続しないようにしています。接続状態はアプリにリアルタイムで表示されます。"),
+ ("サーバーとの接続が切れた", "自動で再接続します。間隔は 1 秒から倍々で最大 30 秒、ランダムな揺らぎ付きで、たくさんのデバイスが一斉に再接続しないようにしています。同じネットワークのデバイスは影響を受けず、そのまま同期します。"),
("ファイルが大きすぎる", "上限を超えるものは記録だけを同期し、必要なときに取り込みます。そのとき元のファイルが消えていれば、あいまいな失敗ではなく、はっきりそう伝えます。"),
("プレーンテキストしか受け付けない場所に貼り付ける", "Web からコピーした書式付きテキストは HTML とプレーンテキストの両方で書き込むので、どこに貼り付けてもタグが混ざりません。"),
("Windows では使えないファイル名", "Mac では使えるコロンや疑問符などは、対応する全角文字に置き換えて受け取るので、名前はそのまま読めます。大文字と小文字だけが違う 2 つのファイルが上書きし合うこともありません。"),
@@ -208,38 +216,39 @@ C = {
],
"install_h2": "インストール",
- "install_intro": "それぞれのコンピューターにアプリを入れ、両方からアクセスできるサーバーを 1 台用意します。はじめての方は<a href=\"{start}\">はじめかた</a>をどうぞ。",
+ "install_intro": "それぞれのコンピューターにアプリを入れます。同じネットワークならそのままペアリングでき、ネットワークをまたぐときは 2 台がお互いを見つける方法をひとつ選びます。はじめての方は<a href=\"{start}\">はじめかた</a>をどうぞ。",
"mac_steps": [
"CopySync.dmg をダウンロードして開き、CopySync を「アプリケーション」にドラッグします。",
"「アプリケーション」から開きます。<span class=\"aside\">初回は「開発元を検証できません」と表示されます。CopySync はまだ Apple の公証を受けていないためです。"
"「システム設定 → プライバシーとセキュリティ」を開き、ページ下部の「このまま開く」をクリックします。必要なのは一度だけです。</span>",
- "「バックグラウンド同期を有効にする」をクリックし、「設定」でサーバーのアドレス <code>ws://サーバーアドレス:8787/signal</code> を入力して Return を押します。",
- "クリップボードの読み取りを許可するか聞かれたら、許可します。",
+ "「バックグラウンド同期を有効にする」をクリックします。クリップボードの読み取りと、ローカルネットワーク上のデバイスを探すことについて聞かれたら、どちらも許可します。",
+ "ネットワークをまたいで同期するときは、「設定」でサーバーのアドレス <code>ws://サーバーアドレス:8787/signal</code> を入力して Return を押します。同じネットワークなら空欄のままです。",
],
"win_steps": [
"CopySync-Setup.exe を実行します。現在のユーザーのフォルダにインストールされ、管理者権限は要りません。"
"<span class=\"aside\">CopySync はまだコード署名されていないため、「Windows によって PC が保護されました」と表示されます。「詳細情報」を押してから「実行」を押してください。"
f"インストーラーを使いたくない場合は<a href=\"{REPO}/releases/latest/download/CopySync-windows-x64.zip\">ポータブル版</a>もあります。</span>",
- "CopySync を開き、「バックグラウンド同期を有効にする」をクリックします。ウィンドウを閉じても、画面右下の通知領域で動き続けます。",
- "「設定」でサーバーのアドレスを入力して Enter を押します。ファイアウォールに聞かれたら許可します。",
+ "CopySync を開き、「バックグラウンド同期を有効にする」をクリックします。ファイアウォールに聞かれたら許可します。ウィンドウを閉じても、画面右下の通知領域で動き続けます。",
+ "ネットワークをまたいで同期するときは、「設定」でサーバーのアドレスを入力して Enter を押します。同じネットワークなら空欄のままです。",
],
- "server_h3": "サーバー",
- "server_intro": "置き方は 3 通り。状況に合うものを選んでください。どれにも手順のページがあります:",
+ "server_h3": "接続方法",
+ "server_intro": "同じネットワークならサーバーは要りません。状況に合うものを選んでください。どれにも手順のページがあります:",
"server_compare": "3 通りを比べる",
"copy": "コピー",
"copied": "コピーしました",
"pairing": "<strong>ペアリング:</strong>一台で「デバイス → デバイスを追加」を開いて 6 桁のコードを表示し、もう一台で入力します。"
- "両方の画面に同じ 2 行の指紋が表示されたら確定します。Mac と Windows、Windows 同士でも同じ手順です。",
+ "両方の画面に同じ 2 行の指紋が表示されたら確定します。別のサブネットにある場合は、コードの下に表示されたアドレスも入力します。"
+ "Mac と Windows、Windows 同士でも同じ手順です。",
"specs_h2": "仕様",
"specs": [
("バージョン", '1.3.4(<time datetime="2026-10-11">2026 年 10 月 11 日</time>公開)'),
("Mac アプリ", "macOS 13 Ventura 以降。Intel と Apple シリコンのユニバーサルバイナリで Rosetta 不要。ダウンロードは約 47 MB"),
("Windows アプリ", "Windows 10(21H2 以降)と Windows 11、x64。ユーザーごとのインストールで管理者権限不要。ダウンロードは約 23 MB"),
- ("サーバー", "Linux(x86_64 または ARM64、systemd または Docker)、macOS(Intel と Apple シリコン)、Windows 10・11 x64(サービスとして動作)。メモリは約 15 MB"),
+ ("サーバー", "任意。ネットワークをまたぐときだけ必要。Linux(x86_64 または ARM64、systemd または Docker)、macOS(Intel と Apple シリコン)、Windows 10・11 x64(サービスとして動作)。メモリは約 15 MB"),
("表示言語", "日本語、英語、簡体字中国語。初期設定はシステムに合わせ、「設定」で切り替え可能"),
("同期する内容", "プレーンテキスト、書式付きテキスト、画像とスクリーンショット、ファイル、フォルダ。種類ごとにオフにできる"),
- ("転送", "WebRTC データチャネル。直接接続を優先し、つながらなければ TURN で中継。複数の出口があるネットワークでは出口ごとに調査。ファイルは tar + zstd でストリーム転送"),
+ ("転送", "WebRTC データチャネル。直接接続を優先し、つながらなければ TURN で中継。同じネットワークでは mDNS で発見し、UDP 8788 で接続情報を交換。複数の出口があるネットワークでは出口ごとに調査。ファイルは tar + zstd でストリーム転送"),
("暗号化と身元", "DTLS によるエンドツーエンド暗号化。デバイスの身元は Ed25519 の鍵。シグナリングのメッセージはすべて署名付き"),
("ペアリング", "5 分間有効な 6 桁のコード。0/O や 1/I のような紛らわしい文字は使わない。指紋は人が照合"),
("自動同期の上限", "初期値 50 MB、1 MB〜1 GB で調整可能"),
@@ -256,7 +265,8 @@ C = {
]),
("macOS のユニバーサルクリップボードとの違いは?", [
"ユニバーサルクリップボードは、両方のデバイスが同じ Apple ID でサインインし、Bluetooth と Wi‑Fi をオンにして近くにある必要があり、Apple 製品どうしでしか使えません。"
- "CopySync に必要なのは、両方のコンピューターがあなたのサーバーにつながることだけです。Apple ID が別でも、自宅と会社に離れていても、Mac と Windows の組み合わせでも使えます。"
+ "CopySync は同じネットワークならインストールしてすぐ使え、ネットワークをまたぐときは両方があなたのサーバーにつながるか、Tailscale を入れていれば使えます。"
+ "Apple ID が別でも、自宅と会社に離れていても、Mac と Windows の組み合わせでも使えます。"
"さらに履歴があり、大きなファイルは必要なときに取り込めます。",
"2 台の Mac が同じ Apple ID でいつも並んでいて、主にテキストをコピーするだけなら、標準機能で十分です。",
]),
@@ -269,15 +279,20 @@ C = {
"テストでは、出口が 4 つある会社の Mac と家庭の回線が直接つながりました。相手がポートをランダムに割り当てる NAT の場合は中継になります。",
]),
("サーバーは自分で用意する必要がありますか?", [
- "はい。CopySync は公開サーバーを提供しません。だから誰のデータも他人のマシンを通りません。置き方は 3 通りです。"
- "<a href=\"{cloud}\">公開サーバー</a>は最小構成のクラウドサーバーで足り、どこからでも同期できます。"
- "<a href=\"{server}\">LAN</a> はすべてのコンピューターが同じネットワークにあるとき、電源を入れたままの 1 台に置きます。"
- "<a href=\"{ts}\">LAN + Tailscale</a> は公開サーバーなしでネットワークをまたぐときに使います。",
+ "場合によります。コンピューターが<a href=\"{lan}\">同じネットワーク</a>にあるなら、アプリを入れてペアリングするだけで、サーバーは要りません。",
+ "ネットワークをまたぐ方法は 2 つあります。<a href=\"{cloud}\">公開サーバー</a>は最小構成のクラウドサーバーで足り、どこからでも同期できます。"
+ "<a href=\"{ts}\">Tailscale</a> は各コンピューターに入れ、ペアリング時に相手の Tailscale アドレスを入力するだけで、サーバーは要りません。"
+ "CopySync は公開サーバーを提供しないので、誰のデータも他人のマシンを通りません。",
]),
("自宅にグローバル IP がありません。自宅と会社のあいだで同期できますか?", [
"できます。方法は 2 つあります。公開サーバーがあれば、そこにサーバーを置いて両方のコンピューターから直接つなぎます(<a href=\"{cloud}\">公開サーバーでの手順</a>)。"
- "なければ、自宅で電源を入れたままのコンピューターでサーバーを動かし、すべてのコンピューターに Tailscale を入れて同じアカウントでサインインし、"
- "サーバーのアドレスに Tailscale のアドレスを使います(<a href=\"{ts}\">LAN + Tailscale</a>)。",
+ "なければ、すべてのコンピューターに Tailscale を入れて同じアカウントでサインインし、ペアリング時に相手の Tailscale アドレスを入力します(<a href=\"{ts}\">Tailscale での手順</a>)。",
+ ]),
+ ("同じネットワークなのに、もう一台が見つからないのはなぜ?", [
+ "まず本当に同じサブネットか確認してください。会社の有線と Wi‑Fi、ゲストネットワーク、クライアント分離が有効な Wi‑Fi では、デバイス同士が見えないことがよくあります。"
+ "その場合は、コードを入力する側で「別のサブネットにありますか?」をクリックし、相手のコードの下に表示されたアドレスを入力します。",
+ "Windows では初回起動時にファイアウォールに聞かれたら許可してください。キャンセルした場合は「設定 → ローカルネットワーク」で「許可」をクリックします。"
+ "Mac では「システム設定 → プライバシーとセキュリティ → ローカルネットワーク」で CopySync Daemon をオンにします。詳しくは<a href=\"{lan}#faq\">同じネットワークでの手順</a>を。",
]),
("Windows に対応していますか?iPhone は?", [
"Windows 10 と Windows 11(x64)に対応し、Mac と相互に使えます。Windows で貼り付けたファイルは本物のファイルなので、エクスプローラーや Office にそのまま貼り付けられます。",
@@ -316,6 +331,8 @@ C = {
"h1": "LAN にサーバーを置く",
"lede": "家や会社のコンピューターが同じネットワークにあるなら、クラウドサーバーは要りません。電源を入れたままのコンピューターを 1 台選び、"
"スクリプトをダウンロードして実行し、表示されたアドレスを各コンピューターの CopySync に入力します。",
+ "notice": "<strong>同じネットワークなら、もうサーバーは要りません:</strong>アプリを入れてペアリングするだけです(<a href=\"{lan}\">同じネットワークでの手順</a>)。"
+ "このページは、2 つのサブネットがお互いに届かず、両方から届くコンピューターを経由して中継する必要がある場合に役立ちます。",
"toc": [("prepare", "準備"), ("install", "インストール"), ("check", "確認"), ("clients", "アドレスの入力"), ("faq", "よくある質問")],
"overview_h2": "サーバーは引き合わせるだけ",
@@ -461,8 +478,8 @@ C = {
"ルーターでアドレスを固定しておけば、こうしたことは起きません。",
]),
("LAN の外でも同期できますか?", [
- "できません。サーバーには LAN の中からしか届かないためです。別のネットワークからも同期したい場合は、ほかの 2 通りのどちらかに切り替えます:"
- "<a href=\"{cloud}\">公開サーバー</a>、または <a href=\"{ts}\">LAN + Tailscale</a>。",
+ "できません。サーバーには LAN の中からしか届かないためです。別のネットワークからも同期したい場合は、"
+ "<a href=\"{cloud}\">公開サーバー</a>か <a href=\"{ts}\">Tailscale</a> を使います。",
]),
("サーバーを動かすコンピューターでも CopySync を使う場合のアドレスは?", [
"同じ LAN のアドレスで大丈夫です。<code>ws://127.0.0.1:8787/signal</code> でもかまいません。サーバーとアプリは互いに影響しません。",
@@ -574,8 +591,8 @@ C = {
]),
("自宅の回線にグローバル IP があります。それで代わりになりますか?", [
"なりますが、クラウドサーバーより手間がかかります。ルーターで TCP 8787、UDP 3478、中継用の広い範囲の UDP ポートをそのコンピューターに転送する必要があり、"
- "自宅のグローバル IP は変わることもあります。全部が自宅にあるなら <a href=\"{server}\">LAN</a> のほうが簡単で、ポート転送なしでネットワークをまたぐなら "
- "<a href=\"{ts}\">LAN + Tailscale</a> があります。",
+ "自宅のグローバル IP は変わることもあります。全部が自宅にあるなら<a href=\"{lan}\">同じネットワーク</a>でサーバーそのものが要らず、"
+ "ポート転送なしでネットワークをまたぐなら <a href=\"{ts}\">Tailscale</a> があります。",
]),
],
@@ -586,11 +603,11 @@ C = {
# ── はじめかた(start/ ページ) ──
"start": {
"title": "はじめかた:3 ステップで CopySync を使い始める",
- "description": "CopySync がはじめての方へ。各コンピューターにアプリを入れ、サーバーの置き方(LAN、Tailscale、クラウド)を選び、"
- "アドレスを入力してペアリングすれば、Mac と Windows のあいだでコピー&ペーストできます。グローバル IP は不要です。",
+ "description": "CopySync がはじめての方へ。各コンピューターにアプリを入れ、同じネットワークならそのままペアリング(サーバー不要)、"
+ "ネットワークをまたぐなら公開サーバーか Tailscale を選びます。あとは Mac と Windows のあいだでコピー&ペーストできます。",
"h1": "はじめかた",
- "lede": "アプリを入れて、サーバーを用意し、2 台をペアリングします。最初の設定は 10 分ほど。そのあとはコピーするだけで同期されます。",
- "toc": [("app", "アプリを入れる"), ("server", "サーバーを用意"), ("connect", "アドレスを入力"), ("pair", "ペアリング")],
+ "lede": "アプリを入れて、接続方法を選び、2 台をペアリングします。同じネットワークなら数分で終わり、そのあとはコピーするだけで同期されます。",
+ "toc": [("app", "アプリを入れる"), ("server", "接続方法を選ぶ"), ("pair", "ペアリング")],
"step": "ステップ {n}",
"app_h2": "各コンピューターにアプリを入れる",
@@ -599,89 +616,163 @@ C = {
"CopySync.dmg をダウンロードして開き、CopySync を「アプリケーション」にドラッグします。",
"「アプリケーション」から開きます。<span class=\"aside\">初回は「開発元を検証できません」と表示されます。"
"「システム設定 → プライバシーとセキュリティ」を開き、ページ下部の「このまま開く」をクリックします。</span>",
- "「バックグラウンド同期を有効にする」をクリックし、クリップボードの読み取りを聞かれたら許可します。",
+ "「バックグラウンド同期を有効にする」をクリックします。クリップボードの読み取りと、ローカルネットワーク上のデバイスを探すことについて聞かれたら、どちらも許可します。",
],
"win": [
"CopySync-Setup.exe を実行します。管理者権限は要りません。<span class=\"aside\">「Windows によって PC が保護されました」と出たら、"
"「詳細情報」を押してから「実行」を押します。</span>",
- "CopySync を開き、「バックグラウンド同期を有効にする」をクリックします。ウィンドウを閉じても通知領域で動き続けます。",
+ "CopySync を開き、「バックグラウンド同期を有効にする」をクリックします。ファイアウォールに聞かれたら許可します。ウィンドウを閉じても通知領域で動き続けます。",
],
"app_alt": "初めて開いた CopySync:バックグラウンド同期を有効にするよう案内している",
- "server_h2": "サーバーを用意する",
- "server_intro": "2 台はサーバーを通じてお互いを見つけます。コピーした内容がそこに保存されることはありません。公開サーバーはないので、3 通りの置き方から状況に合うものを選んでください。",
-
- "connect_h2": "各コンピューターにサーバーのアドレスを入力",
- "connect_steps": [
- ("設定を開く", "各コンピューターで CopySync を開き、「設定」に進みます。サーバーを動かしているコンピューターも同じです。"),
- ("アドレスを入力", "「シグナリングサーバー」に前のステップで表示されたアドレスを入力し、Return か Enter を押します。"),
- ("状態を確認", "「接続状態」が緑の「接続済み」になれば、そのコンピューターは準備完了です。"),
- ],
- "connect_alt": "CopySync の設定画面:シグナリングサーバーは ws://192.168.1.20:8787/signal、接続状態は接続済み",
- "connect_after": "「未接続」のままなら<a href=\"{server}#faq\">よくある質問</a>をご覧ください。",
+ "server_h2": "接続方法を選ぶ",
+ "server_intro": "同じネットワークなら、準備は何も要りません。ネットワークをまたぐときは、公開サーバーか Tailscale を通じてお互いを見つけます。コピーした内容がそこに保存されることはありません。",
"pair_h2": "2 台をペアリングする",
"pair_intro": "2 台ごとに一度ペアリングすれば、あとは何もする必要はありません。",
"pair_steps": [
- "一台で「デバイス」を開き、「デバイスを追加」をクリックします。5 分間有効な 6 桁のコードが表示されます。",
- "もう一台でも「デバイスを追加」をクリックし、「コードを入力」に切り替えて入力します。",
+ "一台で「デバイス」を開き、「デバイスを追加」をクリックします。5 分間有効な 6 桁のコードと、その下にこのコンピューターのアドレスが表示されます。",
+ "もう一台でも「デバイスを追加」をクリックし、「コードを入力」に切り替えて入力します。"
+ "<span class=\"aside\">別のサブネットにある場合や Tailscale を使う場合は、「別のサブネットにありますか?」をクリックして相手のアドレスも入力します。</span>",
"両方の画面に同じ 2 行の指紋が表示されます。1 文字ずつ照合して一致していれば確定します。"
"<span class=\"aside\">途中で誰かがあなたのデバイスになりすますのを防ぐ手順です。省略しないでください。</span>",
],
- "pair_alt": "デバイスを追加:ペアリングコード K7MP2X を表示し、もう一台で入力する",
+ "pair_alt": "デバイスを追加:ペアリングコード K7MP2X と、その下にこのコンピューターのアドレス 192.168.1.20",
"done_h2": "コピーしてみましょう。",
"done_text": "一台でテキスト、画像、ファイルをコピーし、もう一台で ⌘V か Ctrl+V を押します。どちらでコピーしたものも履歴に残ります。",
- "help": "困ったときは:<a href=\"{server}#faq\">LAN のよくある質問</a> · <a href=\"{ts}#faq\">Tailscale のよくある質問</a> · "
- "<a href=\"{issues}\">問題を報告</a>",
+ "help": "困ったときは:<a href=\"{lan}#faq\">同じネットワークのよくある質問</a> · <a href=\"{ts}#faq\">Tailscale のよくある質問</a> · "
+ "<a href=\"{cloud}#faq\">公開サーバーのよくある質問</a> · <a href=\"{issues}\">問題を報告</a>",
+ },
+
+ # ── 同じネットワークで使う(lan/ ページ)、サーバー不要 ──
+ "lan": {
+ "title": "同じネットワークで CopySync を使う:サーバーなしで、ペアリングするだけ",
+ "description": "コンピューターが同じ Wi‑Fi か有線ネットワークにあれば、CopySync にサーバーは要りません。アプリを入れて 6 桁のペアリングコードを入力すれば、"
+ "Mac と Windows のあいだでクリップボードとファイルを同期できます。サブネットが違う場合は、ペアリング時にアドレスをひとつ入力します。",
+ "h1": "同じネットワークでそのまま使う",
+ "lede": "同じルーターにつながった 2 台なら、サーバーは要りません。アプリを入れてペアリングコードを入力すれば、そのあとはコピーするだけで同期されます。",
+ "toc": [("prepare", "準備"), ("pair", "ペアリング"), ("subnet", "別のサブネット"), ("faq", "よくある質問")],
+ "step": "ステップ {n}",
+
+ "overview_h2": "サーバーは要らない",
+ "overview_intro": "同じネットワークにある 2 台は、mDNS でお互いを見つけ、接続情報を直接やり取りして、暗号化された直接接続を結びます。"
+ "サーバーも、電源を入れたままのコンピューターも要りません。",
+ "diagram": {
+ "title": "同じネットワークでの CopySync",
+ "desc": "同じ LAN の中で、Mac(192.168.1.20)と Windows(192.168.1.35)が mDNS でお互いを見つけ、UDP 8788 で接続情報を交換します。"
+ "コピーした内容は 2 台のあいだを直接流れ、サーバーはありません。",
+ "lan": "LAN:同じ Wi‑Fi か有線ネットワーク",
+ "client": "CopySync を実行中",
+ "find_note": "mDNS で発見、UDP 8788 で接続情報を交換",
+ "direct": "直接接続、エンドツーエンド暗号化",
+ "direct_note": "コピーした内容は 2 台のあいだだけを流れる",
+ },
+ "overview_points": [
+ "<strong>自動で見つける。</strong>各コンピューターは mDNS で LAN に自分を知らせます。流すのは毎日変わる匿名の識別子だけで、誰のコンピューターかはわかりません。",
+ "<strong>直接接続。</strong>コピーした内容は 2 台のあいだを直接流れ、速さは LAN の速さそのままです。",
+ "<strong>安全性はそのまま。</strong>ペアリングで 2 行の指紋を照合し、その後のメッセージはすべて署名付き。同じネットワークの他人があなたのデバイスになりすますことはできません。",
+ ],
+ "prep": [
+ ("同じネットワーク", "2 台が同じルーターにつながっていれば大丈夫です。Wi‑Fi と有線が混ざっていてもかまいません。ゲストネットワークやクライアント分離が有効な Wi‑Fi では"
+ "デバイス同士が見えず、会社では有線と Wi‑Fi のサブネットが分かれていることもよくあります。その場合は下の<a href=\"#subnet\">別のサブネット</a>へ。"),
+ ("Windows ファイアウォール", "初回起動時に、CopySync がファイアウォールを通ってよいか Windows が聞いてくるので、許可します。キャンセルした場合は、"
+ "CopySync の「設定 → ローカルネットワーク」で「許可」をクリックします。管理者の承認を一度だけ求められます。"),
+ ("macOS のローカルネットワーク", "macOS 15 以降、LAN 上のデバイスに初めて接続するとき、CopySync Daemon がローカルネットワーク上のデバイスを探してよいか聞かれるので、許可します。"
+ "拒否した場合は「システム設定 → プライバシーとセキュリティ → ローカルネットワーク」でオンにします。"),
+ ("サーバーの入力は不要", "「設定」のサーバーのアドレスは空欄のままにします。あとでネットワークをまたいで同期したくなったら、サーバーを追加するか Tailscale を使います。ペアリングはそのままです。"),
+ ],
+
+ "pair_h2": "2 台をペアリングする",
+ "pair_intro": "2 台ごとに一度ペアリングします。まだアプリを入れていなければ、先に<a href=\"{start}#app\">はじめかた</a>の手順で入れてください。",
+ "pair_steps": [
+ "一台で「デバイス」を開き、「デバイスを追加」をクリックします。5 分間有効な 6 桁のコードが表示されます。",
+ "もう一台でも「デバイスを追加」をクリックし、「コードを入力」に切り替えて入力し、「続ける」をクリックします。",
+ "両方の画面に同じ 2 行の指紋が表示されます。1 文字ずつ照合して一致していれば確定します。これでコピーが同期されます。",
+ ],
+ "pair_alt": "デバイスを追加:ペアリングコード K7MP2X と、その下にこのコンピューターのアドレス 192.168.1.20",
+
+ "subnet_h2": "別のサブネットにある場合",
+ "subnet_intro": "LAN 内の検出が届くのはひとつのサブネットの中だけです。2 台が別のサブネットにあっても互いに通信できるなら(会社でよくあります)、"
+ "ペアリング時にアドレスをひとつ入力すれば使えます。",
+ "subnet_steps": [
+ "コードを表示している側では、コードの下にこのコンピューターのアドレスが出ています(例:<code>192.168.1.20</code>)。",
+ "コードを入力する側で「別のサブネットにありますか?」をクリックし、そのアドレスを入力して「続ける」をクリックします。",
+ "ペアリング後は、2 台ともお互いのアドレスを覚えています。片方のアドレスが変わっても、もう片方が同じなら自動で見つけ直します。"
+ "両方が変わったときは、「デバイス」でそのデバイスの「…」メニューから「アドレスを入力」を選びます。",
+ ],
+ "subnet_alt": "コードを入力:コード K7MP2X を入力し、その下に開いたアドレス欄に 192.168.1.20 が入っている",
+ "subnet_after": "サブネット同士がまったく通信できない場合(ゲストネットワークと社内ネットワークが分けられているなど)は、両方から届くコンピューターを経由して中継するしかありません。"
+ "<a href=\"{server}\">LAN にサーバーを置く</a>をご覧ください。",
+
+ "faq": [
+ ("もう一台が見つからない", [
+ "まず 2 台が同じネットワークにあり、どちらもバックグラウンド同期が有効か確認します。次に、コードを入力する側で相手のアドレスを入力してみてください。"
+ "それで見つかるなら、サブネットが違うか、ネットワークが mDNS を通していません。",
+ "それでも見つからなければ、相手のファイアウォールを確認します。Windows なら「設定 → ローカルネットワーク」で「許可」をクリック、"
+ "Mac なら「システム設定 → プライバシーとセキュリティ → ローカルネットワーク」で CopySync Daemon がオンになっていて、macOS のファイアウォールに止められていないかを確かめます。",
+ ]),
+ ("このネットワークの外でも同期できますか?", [
+ "できません。戻ると自動で再開し、そのあいだにコピーしたものは相手の履歴に追加されます。ネットワークをまたいで同期するなら、"
+ "<a href=\"{cloud}\">公開サーバー</a>を追加するか <a href=\"{ts}\">Tailscale</a> を使います。ペアリングはそのままです。",
+ ]),
+ ("アドレスが変わったら?", [
+ "たいていは何もしなくて大丈夫です。同じサブネットなら mDNS でいつでも見つけ直し、別のサブネットでも片方のアドレスが同じなら自動でつながり直します。"
+ "両方が変わったときは、「デバイス」でそのデバイスのアドレスをもう一度入力します。",
+ "動かさないデスクトップなら、ルーターの DHCP の設定でアドレスを固定しておくこともできます。",
+ ]),
+ ("同じネットワークの他の人に、自分のコンピューターが見えますか?", [
+ "CopySync のデバイスがあることはわかりますが、誰のものかはわかりません。流しているのは毎日変わる匿名の識別子だけで、デバイス名もデバイス ID も含みません。"
+ "ペアリングしていないデバイスからのメッセージはすべて捨てられ、ペアリングには両方の画面で指紋の照合が必要です。",
+ ]),
+ ("どのポートを使いますか?", [
+ "接続情報のやり取りに UDP 8788(使用中ならランダムなポート)、mDNS に UDP 5353、つながったあとのデータには別のランダムな UDP ポートを使います。"
+ "ルーターでの設定は何も要りません。",
+ ]),
+ ],
+
+ "closing": "同じネットワークなら、<br>入れるだけで使える。",
+ "source": "ローカルネットワーク直接接続の技術資料(中国語)",
},
- # ── Tailscale でネットワークをまたいで使う(tailscale/ ページ) ──
+ # ── Tailscale でネットワークをまたいで使う(tailscale/ ページ)、サーバー不要 ──
"ts": {
- "title": "Tailscale で CopySync をネットワークをまたいで使う:グローバル IP なしで自宅と会社を同期",
- "description": "サーバーは自宅で電源を入れたままのコンピューターに置き、各コンピューターに Tailscale を入れれば、同じ LAN にあるのと同じように使えます。"
- "グローバル IP もルーターの設定も不要で、会社や外出先からもクリップボードを同期できます。Windows・Mac・Linux の手順つき。",
+ "title": "Tailscale で CopySync をネットワークをまたいで使う:サーバーなしで自宅と会社を同期",
+ "description": "各コンピューターに Tailscale を入れて同じアカウントでサインインし、ペアリング時に相手の Tailscale アドレスを入力するだけ。"
+ "グローバル IP もサーバーも、電源を入れたままのコンピューターも要らず、会社や外出先からもクリップボードを同期できます。",
"h1": "Tailscale でネットワークをまたぐ",
- "lede": "グローバル IP がなくても、自宅と会社のあいだで同期できます。サーバーは自宅に置いたまま、各コンピューターに Tailscale を入れれば、"
- "同じ LAN にあるのと同じように扱えます。ルーターの設定もクラウドサーバーも要りません。",
- "toc": [("join", "Tailscale を入れる"), ("address", "アドレスを調べる"), ("install", "サーバーを入れる"), ("check", "確認"),
- ("clients", "アドレスの入力"), ("faq", "よくある質問")],
+ "lede": "グローバル IP がなく、サーバーも置きたくない?各コンピューターに Tailscale を入れ、ペアリング時に相手の Tailscale アドレスを入力すれば、自宅でも会社でも同期できます。",
+ "toc": [("join", "Tailscale を入れる"), ("address", "アドレスを調べる"), ("pair", "ペアリング"), ("faq", "よくある質問")],
"step": "ステップ {n}",
"overview_h2": "同じ LAN にあるように",
- "overview_intro": "Tailscale はデバイスどうしをつなぐネットワークツールです。同じアカウントでサインインしたデバイスにはそれぞれ 100 で始まる固定のアドレスが割り当てられ、"
- "実際にどこのネットワークにいても、そのアドレスで互いに届きます。CopySync のサーバーをこのアドレスでインストールし、アプリにも同じアドレスを入力すれば、"
- "あとは LAN に置く場合と同じです。",
+ "overview_intro": "Tailscale はデバイスをひとつのプライベートネットワークにまとめるツールです。同じアカウントでサインインしたデバイスには、100 で始まる固定のアドレスが割り当てられ、"
+ "実際にどのネットワークにいてもそのアドレスで互いに届きます。CopySync はペアリング時に相手のこのアドレスを覚え、あとは同じネットワークにいるのと同じように直接つながります。",
"diagram": {
- "title": "Tailscale 経由の CopySync",
- "desc": "サーバーと Windows PC は自宅に、Mac は会社にあります。3 台とも Tailscale を使い、同じ仮想ネットワーク上で 100 で始まるアドレスを持っています。"
- "2 台はシグナリングでサーバー 100.101.102.103 に接続し、コピーした内容は 2 台のあいだを直接流れ、直接つながらないときだけサーバーで中継します。",
- "net": "Tailscale の仮想ネットワーク:各デバイスに 100 で始まるアドレス",
- "server": "サーバー",
- "server_place": "自宅、電源を入れたまま",
+ "title": "Tailscale で使う CopySync",
+ "desc": "Mac は会社、Windows は自宅にあり、どちらも Tailscale を入れて、同じプライベートネットワークの中にそれぞれ 100 で始まるアドレスを持っています。"
+ "コピーした内容は 2 台のあいだを直接流れ、サーバーはありません。",
+ "net": "Tailscale のネットワーク:各デバイスに 100 で始まるアドレス",
"mac_place": "会社",
"win_place": "自宅",
- "sig_note": "シグナリング TCP 8787",
- "relay_note": "中継 UDP 3478(直接不可のとき)",
- "direct": "直接接続、二重の暗号化",
- "direct_note": "内容は 2 台のあいだだけを流れる",
+ "direct": "直接接続、二重に暗号化",
+ "direct_note": "コピーした内容は 2 台のあいだだけを流れる",
},
"overview_points": [
- "<strong>サーバーは自宅のまま。</strong>電源を入れたままの Windows・Mac・Linux なら何でもよく、LAN に置く場合と同じです。",
- "<strong>すべてのコンピューターに Tailscale を入れ、</strong>同じアカウントでサインインします。サーバーを動かすコンピューターも同様です。",
- "<strong>二重の暗号化。</strong>Tailscale の WireGuard トンネルの中を、CopySync 自身のエンドツーエンド暗号化接続が通ります。Tailscale にもサーバーにも内容は見えません。",
+ "<strong>サーバーは要らない。</strong>電源を入れたままのコンピューターも要りません。2 台が起動していて Tailscale につながっていれば同期します。",
+ "<strong>アドレスの入力は一度だけ。</strong>Tailscale のアドレスは変わらないので、ペアリング時に一度入力すれば、あとは 2 台が自動でお互いを見つけます。",
+ "<strong>二重の暗号化。</strong>Tailscale の WireGuard トンネルの中を、CopySync 自身のエンドツーエンド暗号化接続が通ります。Tailscale にも内容は見えません。",
],
"prep": [
- ("電源を入れたままのコンピューター", "サーバーを動かします。条件は<a href=\"{server}#prepare\">LAN に置く場合</a>と同じで、電源が切れたりスリープしたりすると同期は止まります。"
- "Tailscale のアドレスは変わらないので、ルーターでアドレスを固定する必要はありません。"),
("Tailscale のアカウント", "個人利用は無料で、Google、Microsoft、GitHub、Apple のアカウントでサインインできます。すべてのデバイスで同じアカウントを使います。"),
- ("すべてのコンピューターに Tailscale", "Windows、macOS、Linux 用のクライアントがあります。CopySync を使うコンピューターにはすべて必要で、自宅から動かないものも同じです。"),
- ("ZeroTier でも同様", "各デバイスに固定の仮想アドレスを割り当てるツールなら同じ手順で使えます。サーバーをそのアドレスでインストールし、アプリにも入力します。ここでは Tailscale を例にします。"),
+ ("すべてのコンピューターに Tailscale", "Windows、macOS、Linux 用のクライアントがあります。CopySync を使うコンピューターすべてに入れ、接続したままにします。"),
+ ("CopySync を入れておく", "各コンピューターにアプリを入れ、バックグラウンド同期を有効にしておきます(<a href=\"{start}#app\">はじめかた</a>)。サーバーのアドレスは空欄のままで大丈夫です。"),
+ ("ZeroTier でも可", "各デバイスに固定の仮想アドレスを割り当てるツールなら同じ手順で使えます。ペアリング時にそのアドレスを入力します。ここでは Tailscale を例にします。"),
],
"join_h2": "各コンピューターに Tailscale を入れる",
- "join_intro": "サーバーを動かすコンピューターと、同期するすべてのコンピューターに入れて、同じアカウントでサインインします。",
+ "join_intro": "同期するコンピューターすべてに入れて、同じアカウントでサインインします。",
"join_steps": [
"Tailscale の公式サイトから OS に合ったクライアントをダウンロードしてインストールします。"
"<span class=\"aside\">Linux では <code>curl -fsSL https://tailscale.com/install.sh | sh</code> を実行してから "
@@ -691,77 +782,31 @@ C = {
],
"join_download": "Tailscale をダウンロード",
"machines_cols": ["デバイス", "Tailscale のアドレス", "OS"],
- "machines_server": "サーバー",
- "machines_label": "Tailscale の管理画面のデバイス一覧(イメージ):mac-mini がサーバーで 100.101.102.103、macbook-pro は 100.88.20.5、home-pc は 100.92.41.17",
- "server_notes_h3": "サーバーを動かすコンピューターでは、もうひと手間",
- "server_notes": [
- "<strong>Windows:</strong>通知領域の Tailscale アイコンを右クリックし、「Preferences」で「Run unattended」をオンにします。"
- "そうしないとサインアウトしたときに Tailscale が切れ、外のコンピューターからサーバーに届かなくなります。",
- "<strong>Mac:</strong>ログインしたまま、スリープさせず、Tailscale がログイン時に開くようにしておきます。CopySync のサーバーもログイン中だけ動きます。",
+ "machines_label": "Tailscale の管理画面のデバイス一覧(イメージ):macbook-pro は 100.88.20.5、home-pc は 100.92.41.17",
+ "join_notes_h3": "Tailscale をつないだままにする",
+ "join_notes": [
+ "<strong>Windows:</strong>通知領域の Tailscale アイコンを右クリックし、「Preferences」で「Run unattended」をオンにすると、サインアウトしても接続が続きます。",
+ "<strong>Mac:</strong>Tailscale がログイン時に開くようにしておきます。",
"<strong>キーの有効期限をオフに:</strong>Tailscale は初期設定で 180 日ごとにデバイスの再サインインを求めます。"
- "管理画面の Machines ページで、サーバーの行の右端のメニューから「Disable key expiry」を選びます。",
+ "ほとんど動かさないコンピューターは、管理画面の Machines ページでその行の右端のメニューから「Disable key expiry」を選べます。",
],
- "address_h2": "サーバーの Tailscale アドレスを調べる",
- "address_intro": "サーバーを動かすコンピューターで、メニューバー(Windows では通知領域)の Tailscale アイコンをクリックすると、メニューにこのデバイスのアドレスが表示されます。"
+ "address_h2": "相手の Tailscale アドレスを調べる",
+ "address_intro": "ペアリングするもう一台で、Tailscale のアイコン(Mac はメニューバー、Windows は通知領域)をクリックすると、メニューにこのデバイスのアドレスが表示されます。"
"ターミナルで <code>tailscale ip -4</code> を実行しても分かります。",
- "address_label": "ターミナルで tailscale ip -4 を実行すると、このデバイスの Tailscale アドレス 100.101.102.103 が表示される",
- "address_after": "以下では <code>100.101.102.103</code> を例にします。あなたのアドレスに置き換えてください。",
-
- "install_h2": "そのアドレスでサーバーを入れる",
- "install_intro": "インストールスクリプトは初期設定で LAN のアドレスを使います。ここでは Tailscale のアドレスを指定して、外のコンピューターからもサーバーの中継を使えるようにします。"
- "すでに<a href=\"{server}\">LAN での手順</a>で入れている場合は、アドレスを付けてもう一度実行するだけで、設定は引き継がれます。",
- "win": {
- "steps": [
- "copysync-server-windows-amd64.zip をダウンロードし、右クリックで「すべて展開」します。インストール済みなら、前に展開したフォルダーを使います。",
- "展開したフォルダーを開き、上部のアドレスバーに <code>cmd</code> と入力して Enter を押し、コマンドプロンプトを開きます。",
- "<code>install.cmd 100.101.102.103</code>(あなたのアドレス)を実行し、ユーザーアカウント制御が出たら「はい」を押します。",
- "インストールは新しく開くウィンドウで進みます。最後に表示されるアドレスが <code>ws://100.101.102.103:8787/signal</code> になっていれば成功です。",
- ],
- "notes": [
- "<strong>ファイアウォールは設定済み:</strong>スクリプトが追加する受信規則はすべてのネットワークに適用され、Tailscale のアダプターも含まれます。",
- "「Windows によって PC が保護されました」と出たら、「詳細情報」から「実行」を押します。",
- ],
- "cmd_title": "コマンド プロンプト",
- "cmd_label": "展開したフォルダーで開いたコマンドプロンプトで install.cmd 100.101.102.103 を実行する",
- "term_label": "install.cmd の実行後のウィンドウ。最後にアドレス ws://100.101.102.103:8787/signal を表示",
- },
- "mac": {
- "steps": [
- "「ターミナル」を開き、次の行を順に実行します。最後の行はあなたのアドレスに置き換えます:",
- "最後に表示されるアドレスが <code>ws://100.101.102.103:8787/signal</code> になっていれば成功です。",
- ],
- "notes": [
- "インストール済みなら、同じフォルダーで <code>./install.sh 100.101.102.103</code> を実行するだけです。設定は引き継がれます。",
- "<strong>macOS のファイアウォールがオンなら、</strong>スクリプトの最後に copysync-server を許可するコマンドが表示されます。",
- ],
- "term_label": "ターミナルで ./install.sh 100.101.102.103 を実行した出力。最後にアドレス ws://100.101.102.103:8787/signal を表示",
- },
- "linux": {
- "steps": [
- "次の行を順に実行します。最後の行はあなたのアドレスに置き換えます:<span class=\"aside\">ARM では <code>amd64</code> を <code>arm64</code> に置き換えます。</span>",
- "最後に表示されるアドレスが <code>ws://100.101.102.103:8787/signal</code> になっていれば成功です。",
- ],
- "switch": "<strong>インストール済みの場合:</strong>Linux のスクリプトは既存の設定を書き換えません。設定の中の古いアドレスを Tailscale のアドレスに置き換え"
- "(下の <code>192.168.1.20</code> を元のアドレスに)、サービスを再起動します:",
- "term_label": "sudo ./install.sh 100.101.102.103 の出力。最後にアドレス ws://100.101.102.103:8787/signal を表示",
- },
-
- "check_h2": "外から確認する",
- "check_intro": "自宅のネットワークの外にあるコンピューター(スマートフォンのテザリングにつないだノートパソコンなど)で Tailscale が接続されていることを確かめ、"
- "ブラウザーで <code>http://100.101.102.103:8787/healthz</code> を開きます。次の 1 行が表示されれば、外からサーバーに届いています。",
- "check_label": "ブラウザーで http://100.101.102.103:8787/healthz を開くと、サーバーの状態 ok とバージョンが表示される",
- "check_after": "開けない場合は、下の<a href=\"#faq\">よくある質問</a>をご覧ください。",
+ "address_label": "PowerShell で tailscale ip -4 を実行すると、このデバイスの Tailscale アドレス 100.92.41.17 が表示される",
+ "address_after": "ここでは自宅の Windows の <code>100.92.41.17</code> を例にします。ご自分のアドレスに読み替えてください。",
- "clients_h2": "各コンピューターにアドレスを入力",
- "clients_steps": [
- ("設定を開く", "各コンピューターで CopySync を開き、「設定」に進みます。サーバーを動かしているコンピューターも同じです。"),
- ("Tailscale のアドレスを入力", "「シグナリングサーバー」に <code>ws://100.101.102.103:8787/signal</code>(あなたのアドレス)を入力し、Return か Enter を押します。"),
- ("状態を確認", "「接続状態」が緑の「接続済み」になれば完了です。まだペアリングしていなければ「デバイス」でペアリングします。"),
+ "pair_h2": "ペアリング時にこのアドレスを入力",
+ "pair_intro": "同じネットワークでのペアリングと同じで、アドレスをひとつ入力するだけです。",
+ "pair_steps": [
+ "自宅の Windows で「デバイス」を開き、「デバイスを追加」をクリックして、6 桁のコードを控えます。",
+ "会社の Mac で「デバイスを追加」をクリックし、「コードを入力」に切り替えて入力します。続けて「別のサブネットにありますか?」をクリックし、"
+ "<code>100.92.41.17</code> を入力して「続ける」をクリックします。",
+ "両方の画面に同じ 2 行の指紋が表示されたら、照合して確定します。これで 2 台はどこにいても同期します。",
],
- "clients_alt": "CopySync の設定画面:シグナリングサーバーは ws://100.101.102.103:8787/signal、接続状態は接続済み",
- "clients_after": "自宅のコンピューターにも LAN ではなく Tailscale のアドレスを入力してください。持ち出しても入れ直す必要がありません。"
- "全員が自宅にいるときも、データは自宅のネットワークの中だけを流れます。",
+ "pair_alt": "コードを入力:コード K7MP2X を入力し、アドレス欄に Tailscale のアドレス 100.92.41.17 が入っている",
+ "pair_after": "2 台とも自宅にいるときは、CopySync が LAN の中で直接相手を見つけるので、データが遠回りすることはありません。",
"faq": [
("「直接接続」と表示されるのに遅い", [
@@ -770,41 +815,44 @@ C = {
"ターミナルで <code>tailscale ping 相手のアドレス</code> を実行し、via DERP なら Tailscale が中継中、via IP とポートなら P2P です。"
"会社や学校のネットワークでは中継になりやすく、DERP サーバーを自分で立てるか、別のツールを試す方法があります。",
]),
- ("接続状態が「未接続」のまま", [
- "まずそのコンピューターで Tailscale が接続されているか確かめ、ブラウザーで <code>http://サーバーの Tailscale アドレス:8787/healthz</code> を開きます。",
- "開けなければ、サーバーのコンピューターがスリープしていないか、そこで Tailscale がオンラインか(Windows では Run unattended、Mac ではログインしたまま)、"
- "サーバーが LAN のアドレスのままになっていないか、Mac や Linux のファイアウォールに止められていないかを確認します。",
+ ("ペアリングで相手が見つからない", [
+ "まず両方で Tailscale がつながっているか確かめます。ターミナルで <code>tailscale ping 相手のアドレス</code> を実行し、応答があれば再度試してください。",
+ "ping は通るのに見つからないなら、相手のファイアウォールが止めている可能性が高いです。相手が Windows なら CopySync の「設定 → ローカルネットワーク」で「許可」をクリック、"
+ "Mac なら「システム設定 → プライバシーとセキュリティ → ローカルネットワーク」で CopySync Daemon をオンにします。",
]),
("すべてのコンピューターに Tailscale が必要ですか?", [
- "はい。入っていないコンピューターは 100 で始まるアドレスに届かず、外のコンピューターからもそのコンピューターに届きません。自宅から動かないものも同じです。",
+ "はい。入っていないコンピューターは 100 で始まるアドレスに届きません。同じネットワークにある 2 台なら不要です(<a href=\"{lan}\">同じネットワークでの手順</a>)。",
]),
- ("LAN の手順でインストール済みです。やり直しが必要?", [
- "いいえ。Tailscale のアドレスを付けてインストールスクリプトをもう一度実行し(Linux は設定を編集)、各コンピューターのサーバーアドレスを Tailscale のものに変えるだけです。"
- "ペアリング済みのデバイスはそのままです。",
+ ("以前の手順で自宅にサーバーを置きました。まだ必要?", [
+ "もう要りません。各コンピューターの「設定」でサーバーのアドレスを消し、自宅のコンピューターからサーバーをアンインストールしてください。ペアリング済みのデバイスはそのままです。"
+ "残しておいても問題はなく、サーバーと Tailscale は併用できます。",
]),
("Tailscale にコピーした内容は見えますか?", [
"見えません。Tailscale の接続は WireGuard でエンドツーエンド暗号化され、その中を CopySync 自身の DTLS 暗号化接続が通ります。どちらの層も開けるのは 2 台のコンピューターだけです。"
"Tailscale のサーバーが扱うのはデバイスの公開鍵とアドレスだけで、中継サーバーも暗号化されたパケットを転送するだけです。",
]),
- ("サーバーの Tailscale アドレスは変わりますか?", [
- "通常は変わりません。アドレスはデバイスに付いていて、再起動やネットワークの変更でも同じです。デバイスを Tailscale から削除して追加し直したときだけ変わります。",
+ ("Tailscale のアドレスは変わりますか?", [
+ "通常は変わりません。アドレスはデバイスに付いていて、再起動やネットワークの変更でも同じです。デバイスを Tailscale から削除して追加し直したときだけ変わります。"
+ "変わったときは、「デバイス」でそのデバイスのアドレスをもう一度入力します。",
]),
- ("グローバル IP があります。Tailscale は必要?", [
+ ("公開サーバーがあります。Tailscale は必要?", [
"不要です。グローバル IP を持つマシンにサーバーを置き、すべてのコンピューターにそのアドレスを入力してください(<a href=\"{cloud}\">公開サーバーでの手順</a>)。",
]),
],
- "closing": "サーバーは自宅に。<br>クリップボードはあなたと一緒に。",
- "source": "LAN での設置手順に戻る",
+ "closing": "サーバーなしで、<br>クリップボードはあなたと一緒に。",
+ "source": "同じネットワークでの手順に戻る",
},
"ld_description": "Mac と Windows のコンピューター間でクリップボードとファイルを同期するオープンソースのアプリ。テキスト、画像、ファイル、フォルダを一台でコピーし、もう一台で貼り付けられる。"
- "デバイス間は WebRTC で直接つながり DTLS でエンドツーエンド暗号化、つながらないときはユーザーが用意したサーバーの TURN で中継する。",
+ "同じネットワークならサーバーは不要。デバイス間は WebRTC で直接つながり DTLS でエンドツーエンド暗号化、"
+ "ネットワークをまたいでつながらないときはユーザーが用意したサーバーの TURN で中継する。",
"ld_os": "macOS 13 以降(Intel と Apple シリコン)、Windows 10、Windows 11(x64)",
"ld_currency": "JPY",
"ld_features": [
"プレーンテキスト、書式付きテキスト、画像、ファイル、フォルダを同期",
"Mac と Windows のあいだで、アカウントやネットワークをまたいで使える",
+ "同じネットワークならサーバー不要、mDNS で自動的に発見",
"WebRTC の直接接続、つながらないときは自動で TURN 中継",
"DTLS のエンドツーエンド暗号化、ペアリング時に指紋を人が照合",
"50 MB まではコピーと同時に送信、それより大きいファイルは必要なときに取り込み",
diff --git a/tools/site/content/zh.py b/tools/site/content/zh.py
index c7b66af..fb688fc 100644
--- a/tools/site/content/zh.py
+++ b/tools/site/content/zh.py
@@ -6,9 +6,10 @@ SITE = "https://baiyuze.github.io/copysync/"
C = {
"title": "CopySync:在 Mac 与 Windows 之间同步剪贴板与文件,跨账号跨网络",
"description": "CopySync 让你在一台电脑上复制,另一台上直接粘贴,Mac 与 Windows 互通。支持文本、图片、文件和文件夹,"
- "不要求同一个账号,跨网络可用。设备间 P2P 直连、端到端加密,服务器自己部署且看不到内容。免费开源。",
+ "不要求同一个账号。同一个网络里装好就能用,不需要服务器;跨网络时用自己部署的服务器或 Tailscale。"
+ "设备间 P2P 直连、端到端加密。免费开源。",
"og_title": "CopySync:在这台电脑复制,到那台电脑粘贴",
- "og_description": "Mac 与 Windows 互通。文本、图片、文件、文件夹,跨账号、跨网络,P2P 直连、端到端加密,服务器自己部署。免费开源。",
+ "og_description": "Mac 与 Windows 互通。文本、图片、文件、文件夹,跨账号、跨网络,P2P 直连、端到端加密,同一网络里不需要服务器。免费开源。",
"og_image": "og.png",
"skip": "跳到正文",
"home_label": "CopySync 首页",
@@ -16,12 +17,12 @@ C = {
"nav_start": "快速开始",
"nav_how": "工作原理",
"nav_faq": "常见问题",
- "nav_server": "部署服务器",
+ "nav_server": "连接方式",
"lang_label": "语言",
"h1": "在这台电脑复制,<br>到那台电脑粘贴。",
- "lede": "Mac 与 Windows 互通。文本、图片、文件、整个文件夹都可以,不要求同一个账号,也不要求在同一个网络。"
- "数据在你的设备之间直接传输,经过你自己的服务器时也是加密的。",
+ "lede": "Mac 与 Windows 互通。文本、图片、文件、整个文件夹都可以,不要求同一个账号。"
+ "同一个网络里装好就能用,不需要服务器;跨网络也可以。数据在你的设备之间直接传输,端到端加密。",
"dl_mac": "下载 Mac 版",
"dl_win": "下载 Windows 版",
"dl_note": "版本 1.3.4,免费开源。macOS 13 及以上,Intel 与 Apple 芯片通用;Windows 10、11。",
@@ -32,14 +33,32 @@ C = {
"stage_arc": "直连,端到端加密",
"replay": "再演示一次",
- # 三种部署方式,地位相同,由用户自己选。首页的卡片用 name、fit、summary、go;
+ # 三种连接方式,地位相同,由用户自己选。首页的卡片用 name、fit、summary、go;
# 快速开始的分页用 name、facts、steps、address、go;安装一节用 name、fit。
- # steps 里的 {cloud}、{server}、{ts} 换成对应教程的地址
- "paths_h2": "服务器放在哪",
- "paths_intro": "两台电脑靠一台服务器找到彼此,复制的内容不会存在上面。CopySync 不提供公共服务器,有三种部署方式,按你的情况选一种。",
+ # steps 与 address 里的 {lan}、{cloud}、{server}、{ts} 换成对应教程的地址
+ "paths_h2": "两台电脑怎么连起来",
+ "paths_intro": "在同一个网络里,装好 App 就能直接配对,不需要服务器。跨网络时,两台电脑要靠服务器或 Tailscale 找到彼此,"
+ "复制的内容不会存在上面。按你的情况选一种。",
"paths_after": "拿不准?<a href=\"{start}#server\">快速开始</a>里有三种方式的对比。",
- "plans_label": "部署方式",
+ "plans_label": "连接方式",
"plans": {
+ "lan": {
+ "name": "同一网络",
+ "fit": "什么都不用部署",
+ "summary": "家里或办公室,连着同一个路由器。两台电脑装好 App,输入配对码就能同步,不需要服务器,也不需要常开的电脑。",
+ "go": "同一网络教程 →",
+ "facts": [
+ ("适合", "电脑都在同一个 Wi‑Fi 或有线网络里,比如家里或办公室。"),
+ ("要准备", "什么都不用。每台电脑装好 App 就行。"),
+ ("要注意", "离开这个网络就不同步,回来后自动恢复。公司里有线和无线不在同一网段时,配对时多输一个地址。"),
+ ],
+ "steps": [
+ "每台电脑装好 App,点「启用后台同步」。",
+ "Windows 防火墙询问时选择允许;macOS 询问能否查找本地网络上的设备时,也选择允许。",
+ "一台显示配对码,另一台输入它,核对指纹。不在同一网段时,再输入配对码下面显示的地址,见<a href=\"{lan}#subnet\">同一网络教程</a>。",
+ ],
+ "address": "不需要填服务器地址。",
+ },
"cloud": {
"name": "公网服务器",
"fit": "在哪儿都能同步",
@@ -53,44 +72,26 @@ C = {
"steps": [
"在云厂商的安全组里放行 TCP 8787、UDP 3478 和 UDP 32768–60999。",
"ssh 登录服务器,下载并运行安装脚本,带上它的公网 IP:<code>sudo ./install.sh 公网IP</code>。",
- "在浏览器里打开 <code>http://公网IP:8787/healthz</code>,能看到 ok 就装好了。",
- ],
- "address": "每台电脑要填的地址:<code>ws://公网IP:8787/signal</code>",
- },
- "lan": {
- "name": "局域网",
- "fit": "电脑都在同一个网络里",
- "summary": "家里或办公室,连着同一个 Wi‑Fi 或有线网络。服务器装在其中一台常开的 Windows、Mac 或 Linux 电脑上,运行一个脚本,不花钱。",
- "go": "局域网部署教程 →",
- "facts": [
- ("适合", "电脑都在同一个 Wi‑Fi 或有线网络里,比如家里或办公室。"),
- ("要准备", "一台常开的 Windows、Mac 或 Linux 电脑,要同步的电脑之一也行。"),
- ("要注意", "离开这个网络就不同步,回来后自动恢复。那台电脑关机或睡眠时同步也会暂停。"),
+ "在每台电脑的「设置」里填服务器地址 <code>ws://公网IP:8787/signal</code>,按回车,再配对。",
],
- "steps": [
- "在路由器里给当服务器的电脑固定一个地址。",
- "下载对应系统的服务器,运行安装脚本:<a href=\"{server}#windows\">Windows</a> 上双击 <code>install.cmd</code>,"
- "<a href=\"{server}#macos\">macOS</a> 与 <a href=\"{server}#linux\">Linux</a> 上运行 <code>./install.sh</code>。",
- "脚本会找到本机的局域网地址,最后显示客户端要填的地址。",
- ],
- "address": "每台电脑要填的地址:<code>ws://局域网地址:8787/signal</code>,比如 <code>ws://192.168.1.20:8787/signal</code>",
+ "address": "在浏览器里打开 <code>http://公网IP:8787/healthz</code>,能看到 ok 就装好了。",
},
"ts": {
- "name": "局域网 + Tailscale",
- "fit": "要跨网络,没有公网服务器",
- "summary": "服务器放在家里一台常开的电脑上,每台电脑装上 Tailscale、登录同一个账号,就像在同一个局域网里。",
+ "name": "Tailscale",
+ "fit": "跨网络,不用服务器",
+ "summary": "每台电脑装上 Tailscale、登录同一个账号,配对时输入对方的 Tailscale 地址。在家、在公司都能同步,不需要服务器和常开的电脑。",
"go": "Tailscale 教程 →",
"facts": [
("适合", "电脑在不同的网络里,又没有公网服务器。"),
- ("要准备", "一台常开的电脑当服务器;每台电脑都装 Tailscale,登录同一个账号。"),
- ("要注意", "所有用 CopySync 的电脑都要装 Tailscale,家里那台要一直开着。Tailscale 自己打不通时经境外中转,在国内会慢。"),
+ ("要准备", "每台电脑都装 Tailscale,登录同一个账号。"),
+ ("要注意", "所有用 CopySync 的电脑都要装 Tailscale 并保持连接。Tailscale 自己打不通时经境外中转,在国内会慢。"),
],
"steps": [
"每台电脑装上 Tailscale,登录同一个账号。",
- "在当服务器的电脑上运行 <code>tailscale ip -4</code>,记下 100 开头的地址。",
- "带上这个地址安装服务器,比如 <code>install.cmd 100.101.102.103</code> 或 <code>./install.sh 100.101.102.103</code>。",
+ "在要配对的那台电脑上运行 <code>tailscale ip -4</code>,记下 100 开头的地址。",
+ "配对时,输入配对码的那台点「不在同一网段?」,填上这个地址。",
],
- "address": "每台电脑要填的地址:<code>ws://Tailscale 地址:8787/signal</code>",
+ "address": "不需要服务器。Tailscale 地址不会变,只在配对时输入一次。",
},
},
@@ -124,7 +125,8 @@ C = {
],
"how_h2": "工作原理",
- "how_intro": "两台电脑之间直接建立加密连接。你的服务器只负责让它们找到彼此,打不通直连的时候再帮忙转发。",
+ "how_intro": "两台电脑之间直接建立加密连接。同一个网络里,它们自己就能找到彼此;跨网络时,你的服务器负责牵线,"
+ "打不通直连的时候再帮忙转发。下图是跨网络的情形。",
"diagram": {
"title": "CopySync 的连接方式",
"desc": "电脑 A 与电脑 B(Mac 或 Windows)之间是 WebRTC 直连;两台电脑都通过信令连接到你的服务器;直连失败时,数据经服务器的 TURN 中转。",
@@ -169,6 +171,11 @@ C = {
("一开始打不通,之后网络恢复", "先中转,随后直连"),
("公司路由器会为外来的包占住端口", "直连"),
("家用路由器会为外来的包占住端口", "先中转,重试一次后直连"),
+ ("没有服务器,同一网段,靠 mDNS 发现", "直连"),
+ ("没有服务器,两个网段,一边记得对方地址", "直连"),
+ ("没有服务器,两台都挡入站连接,都记得地址", "直连"),
+ ("没有服务器,两台都挡入站连接,只有一边记得", "连不上(已知限制)"),
+ ("没有服务器,两个网段之间被隔离", "连不上"),
],
"uplink_measured": "实测:一台在 4 个出口的公司网络里的 Mac 与家里的 Mac,改造前只能中转,速度被服务器带宽限制在 0.6 MB/s;"
"改造后直连,连上服务器后约 3 秒建立。",
@@ -180,17 +187,22 @@ C = {
("配对时由你核对安全指纹。", "两块屏幕会显示同样的两行:双方各自公钥的指纹。服务器有能力替换转发中的公钥,但替换之后两块屏幕就对不上了,这一步就是防中间人的闸门。"),
("之后的每条消息都带签名,", "服务器无法冒充你的设备。直连通道的证书在握手后还会再核对一次,不一致立即断开。"),
("中转也只是转发密文。", "TURN 转发的是加密后的数据包,中转凭证按设备单独签发,12 小时后过期。"),
+ ("局域网里也一样。", "设备在局域网里广播的只是一个每天都变的匿名标识,看不出是谁的电脑;配对同样要核对指纹,之后的消息同样带签名。"),
],
"verify_alt": "配对时的「核对安全指纹」对话框,显示 R8NF-2WTC-QL5J,要求与另一台电脑上显示的完全一致",
"fallback_h2": "出问题的时候会发生什么",
"fallback_intro": "每个人的网络环境都不一样。下面这些情况都考虑过,也都有对应的测试。",
"fallbacks": [
+ ("同一网络里找不到对方", "不同网段、访客网络、开了 AP 隔离的 Wi‑Fi 会挡住局域网发现。配对时输入对方配对码下面显示的地址就行;"
+ "之后地址会被记住,两边都换了地址时,在设备列表里给它重新输入一次。"),
+ ("系统拦着局域网", "macOS 15 起,后台服务连接局域网里的设备要你允许;Windows 第一次运行时会问防火墙。"
+ "没放行时 App 会提示,并给出直达的按钮。"),
("两台电脑打不通直连", "常见于对称 NAT 和公司防火墙。自动改走你服务器上的 TURN 中转,内容依然加密,设备列表里显示「中转」。"),
("公共 STUN 服务器连不上", "国内访问公共 STUN 时通时断。服务器自带 STUN,客户端优先用它。"),
("先连上了中转", "中转握手快,有时会抢在直连之前。连上之后,发起连接的一方会在空闲时再打一次洞,打通就换成直连;正在传文件时不打扰。"),
("对方睡眠、断网或重启", "连接悄悄断了也能发现,立即关闭重连。这期间复制的内容会记下来,连上后补发到对方的复制记录里,但不会覆盖对方此刻剪贴板里的内容。"),
- ("服务器断开", "自动重连,间隔从 1 秒开始翻倍、最长 30 秒,并带随机抖动,避免一群设备同时重连。界面实时显示连接状态。"),
+ ("服务器断开", "自动重连,间隔从 1 秒开始翻倍、最长 30 秒,并带随机抖动,避免一群设备同时重连。同一网络里的设备不受影响,照常同步。"),
("文件太大", "超过上限的只同步一条记录,需要时再拉取。拉取时源文件已经被删,会明确告诉你,而不是不明不白地失败。"),
("粘贴到只认纯文本的地方", "从网页复制的带格式文字会同时写入 HTML 和纯文本两份,粘贴到哪里都不会冒出标签。"),
("文件名在 Windows 上不合法", "Mac 上可以用的冒号、问号等字符,收到时换成对应的全角字符,名字照样看得懂;只差大小写的两个文件也不会互相覆盖。"),
@@ -201,38 +213,39 @@ C = {
],
"install_h2": "安装",
- "install_intro": "每台电脑装一个 App,再准备一台两边都能访问到的服务器。第一次装可以跟着<a href=\"{start}\">快速开始</a>。",
+ "install_intro": "每台电脑装一个 App。同一个网络里装好就能配对;跨网络时,再选一种方式让两台电脑找到彼此。"
+ "第一次装可以跟着<a href=\"{start}\">快速开始</a>。",
"mac_steps": [
"下载 CopySync.dmg,打开后把 CopySync 拖进「应用程序」。",
"从「应用程序」里打开。<span class=\"aside\">第一次会提示「无法验证开发者」:CopySync 还没有经过 Apple 公证。"
"到「系统设置 → 隐私与安全性」,点页面下方的「仍要打开」,只需要这一次。</span>",
- "点「启用后台同步」,在「设置」里填入服务器地址 <code>ws://服务器地址:8787/signal</code>,按回车。",
- "系统询问是否允许读取剪贴板时,选择允许。",
+ "点「启用后台同步」。系统询问是否允许读取剪贴板、能否查找本地网络上的设备时,都选择允许。",
+ "跨网络同步时,在「设置」里填入服务器地址 <code>ws://服务器地址:8787/signal</code>,按回车;同一个网络里不用填。",
],
"win_steps": [
"运行 CopySync-Setup.exe。装在当前用户目录下,不需要管理员权限。"
"<span class=\"aside\">CopySync 还没有代码签名,Windows 会提示「Windows 已保护你的电脑」:点「更多信息」,再点「仍要运行」。"
f"不想运行安装程序的话,可以下载<a href=\"{REPO}/releases/latest/download/CopySync-windows-x64.zip\">便携版</a>。</span>",
- "打开 CopySync,点「启用后台同步」。关掉窗口后它在右下角的托盘里继续运行。",
- "在「设置」里填入服务器地址,按回车。防火墙询问时选择允许。",
+ "打开 CopySync,点「启用后台同步」。关掉窗口后它在右下角的托盘里继续运行。防火墙询问时选择允许。",
+ "跨网络同步时,在「设置」里填入服务器地址,按回车;同一个网络里不用填。",
],
- "server_h3": "服务器",
- "server_intro": "三种部署方式,按你的情况选一种,每种都有图文教程:",
+ "server_h3": "连接方式",
+ "server_intro": "同一个网络里不需要服务器。三种方式按你的情况选一种,每种都有图文教程:",
"server_compare": "对比三种方式",
"copy": "复制",
"copied": "已复制",
"pairing": "<strong>配对:</strong>一台点「设备 → 添加设备」生成 6 位配对码,另一台输入它;两块屏幕上的两行安全指纹完全一致后确认。"
- "Mac 与 Windows 之间、两台 Windows 之间都一样。",
+ "不在同一网段时,输入配对码的同时输入它下面显示的地址。Mac 与 Windows 之间、两台 Windows 之间都一样。",
"specs_h2": "技术规格",
"specs": [
("版本", '1.3.4,<time datetime="2026-10-11">2026 年 10 月 11 日</time>发布'),
("Mac 客户端", "macOS 13 Ventura 及以上;Intel 与 Apple 芯片通用,不需要 Rosetta;安装包约 47 MB"),
("Windows 客户端", "Windows 10(21H2 及以上)与 Windows 11,x64;按用户安装,不需要管理员权限;安装包约 23 MB"),
- ("服务器", "Linux x86_64 或 ARM64(systemd 或 Docker)、macOS(Intel 与 Apple 芯片)、Windows 10 与 11 x64(系统服务);约 15 MB 内存"),
+ ("服务器", "可选,只在跨网络时需要。Linux x86_64 或 ARM64(systemd 或 Docker)、macOS(Intel 与 Apple 芯片)、Windows 10 与 11 x64(系统服务);约 15 MB 内存"),
("界面语言", "简体中文、English、日本語,默认跟随系统,可在设置里切换"),
("同步的内容", "纯文本、带格式的文本、图片与截图、文件、文件夹,可以按类型关闭"),
- ("传输", "WebRTC 数据通道,直连优先,打不通时经 TURN 中转;多出口网络逐个探测每个出口;文件以 tar + zstd 流式打包"),
+ ("传输", "WebRTC 数据通道,直连优先,打不通时经 TURN 中转;同一网络里经 mDNS 发现、UDP 8788 交换连接信息;多出口网络逐个探测每个出口;文件以 tar + zstd 流式打包"),
("加密与身份", "DTLS 端到端加密;设备身份为 Ed25519 密钥;信令消息逐条签名"),
("配对", "6 位配对码,5 分钟内有效,字符集去掉了 0/O、1/I 等易混字符;配对时人工核对安全指纹"),
("自动同步上限", "默认 50 MB,可在 1 MB 到 1 GB 之间调整"),
@@ -249,7 +262,8 @@ C = {
]),
("和 macOS 自带的「通用剪贴板」有什么区别?", [
"通用剪贴板要求两台设备登录同一个 Apple ID、开着蓝牙和 Wi‑Fi,并且离得近,也只能在苹果设备之间用。"
- "CopySync 只要求两台电脑都能连上你部署的服务器:不同 Apple ID、一台在家一台在公司、一台 Mac 一台 Windows,都可以。"
+ "CopySync 在同一个网络里装好就能用;跨网络时,两台电脑能连上你部署的服务器、或者都装了 Tailscale 就行:"
+ "不同 Apple ID、一台在家一台在公司、一台 Mac 一台 Windows,都可以。"
"另外它有复制记录,大文件也可以按需拉取。",
"如果你的两台 Mac 是同一个 Apple ID、总在一起、主要复制文字,系统自带的已经够用了。",
]),
@@ -261,14 +275,20 @@ C = {
"实测公司 4 个出口与家用宽带之间可以直连。对端是端口随机分配的 NAT 时仍会走中转。",
]),
("必须自己准备服务器吗?", [
- "是的,CopySync 不提供公共服务器,这样就不会有任何人的数据经过别人的机器。有三种部署方式:"
- "<a href=\"{cloud}\">公网服务器</a>,最低配置的云主机就够,在哪儿都能同步;"
- "<a href=\"{server}\">局域网</a>,电脑都在同一个网络里时,放在其中一台常开的电脑上;"
- "<a href=\"{ts}\">局域网 + Tailscale</a>,要跨网络又没有公网服务器时用。",
+ "不一定。两台电脑在<a href=\"{lan}\">同一个网络</a>里时,装好 App 直接配对就行,不需要服务器。",
+ "跨网络时有两种做法:<a href=\"{cloud}\">公网服务器</a>,最低配置的云主机就够,在哪儿都能同步;"
+ "<a href=\"{ts}\">Tailscale</a>,每台电脑装上它,配对时输入对方的 Tailscale 地址,不需要服务器。"
+ "CopySync 不提供公共服务器,所以不会有任何人的数据经过别人的机器。",
]),
("家里没有公网 IP,能在家和公司之间同步吗?", [
"能,有两种做法。有一台公网服务器的话,把服务器部署在上面,家里和公司的电脑都直接连它,见<a href=\"{cloud}\">公网服务器部署</a>。"
- "没有的话,服务器放在家里一台常开的电脑上,每台电脑装上 Tailscale、登录同一个账号,服务器地址填它的 Tailscale 地址,见<a href=\"{ts}\">局域网 + Tailscale</a>。",
+ "没有的话,每台电脑装上 Tailscale、登录同一个账号,配对时输入对方的 Tailscale 地址,见<a href=\"{ts}\">Tailscale 教程</a>。",
+ ]),
+ ("在同一个网络里,为什么找不到另一台?", [
+ "先看两台是不是真的在同一个网段:公司里有线和无线、访客网络、开了「AP 隔离」的 Wi‑Fi 常常不互通,局域网发现过不去。"
+ "这时在输入配对码的那台点「不在同一网段?」,填上另一台配对码下面显示的地址。",
+ "Windows 上,第一次运行时防火墙会询问,要选允许;点过取消的话,在「设置 → 局域网」里点「放行」。"
+ "Mac 上,要在「系统设置 → 隐私与安全性 → 本地网络」里打开 CopySync Daemon。更多见<a href=\"{lan}#faq\">同一网络教程</a>。",
]),
("支持 Windows 吗?iPhone 呢?", [
"支持 Windows 10 与 Windows 11(x64),与 Mac 互通。复制的文件在 Windows 上粘贴出来就是真实文件,能直接粘进资源管理器、微信、Office。",
@@ -307,6 +327,8 @@ C = {
"h1": "在局域网里部署服务器",
"lede": "家里或办公室的电脑在同一个网络里,就不需要云服务器。找一台常开的电脑,下载、运行一个脚本,"
"再把它显示的地址填进每台电脑的 CopySync 里。",
+ "notice": "<strong>同一个网络里,现在不需要服务器了:</strong>装好 App 直接配对就能用,见<a href=\"{lan}\">同一网络教程</a>。"
+ "这篇仍然适用于两个网段之间互相访问不到、要经一台两边都能访问的电脑中转的情况。",
"toc": [("prepare", "准备"), ("install", "安装服务器"), ("check", "检查"), ("clients", "填地址"), ("faq", "常见问题")],
"overview_h2": "服务器只负责牵线",
@@ -449,8 +471,8 @@ C = {
"在路由器里给它固定一个地址,就不会再遇到这件事。",
]),
("离开局域网以后还能同步吗?", [
- "不能,服务器只在局域网里访问得到。要在别的网络里也能同步,换成另外两种部署方式之一:"
- "<a href=\"{cloud}\">公网服务器</a>,或者<a href=\"{ts}\">局域网 + Tailscale</a>。",
+ "不能,服务器只在局域网里访问得到。要在别的网络里也能同步,换成<a href=\"{cloud}\">公网服务器</a>,"
+ "或者<a href=\"{ts}\">Tailscale</a>。",
]),
("服务器所在的那台电脑也要用 CopySync,地址填什么?", [
"填同样的局域网地址就行,填 <code>ws://127.0.0.1:8787/signal</code> 也可以。服务器和 App 互不影响。",
@@ -562,7 +584,7 @@ C = {
]),
("家里宽带有公网 IP,能当公网服务器用吗?", [
"可以,但比云主机麻烦:要在路由器上把 TCP 8787、UDP 3478 和一大段中转用的 UDP 端口转发到那台电脑,家里的公网 IP 也可能会变。"
- "电脑都在家里时用<a href=\"{server}\">局域网</a>更简单;要跨网络又不想折腾端口转发,可以用<a href=\"{ts}\">局域网 + Tailscale</a>。",
+ "电脑都在家里时,<a href=\"{lan}\">同一个网络</a>里根本不需要服务器;要跨网络又不想折腾端口转发,可以用<a href=\"{ts}\">Tailscale</a>。",
]),
],
@@ -573,11 +595,11 @@ C = {
# ── 快速开始(start/ 页面) ──
"start": {
"title": "快速开始:三步用上 CopySync",
- "description": "第一次用 CopySync?在每台电脑上安装 App,选一种方式部署服务器(局域网、Tailscale 或云服务器),"
- "填好地址再配对,就能在 Mac 与 Windows 之间复制粘贴。不需要公网 IP。",
+ "description": "第一次用 CopySync?在每台电脑上安装 App;两台在同一个网络里就直接配对,不需要服务器;"
+ "跨网络时选公网服务器或 Tailscale。之后就能在 Mac 与 Windows 之间复制粘贴。",
"h1": "快速开始",
- "lede": "装好 App,准备一台服务器,再把两台电脑配对。第一次大约十分钟,之后复制就会自动同步。",
- "toc": [("app", "安装 App"), ("server", "准备服务器"), ("connect", "填服务器地址"), ("pair", "配对")],
+ "lede": "装好 App,选一种连接方式,再把两台电脑配对。同一个网络里几分钟就好,之后复制就会自动同步。",
+ "toc": [("app", "安装 App"), ("server", "选连接方式"), ("pair", "配对")],
"step": "第 {n} 步",
"app_h2": "在每台电脑上安装 App",
@@ -585,87 +607,161 @@ C = {
"mac": [
"下载 CopySync.dmg,打开后把 CopySync 拖进「应用程序」。",
"从「应用程序」里打开。<span class=\"aside\">第一次会提示「无法验证开发者」:到「系统设置 → 隐私与安全性」,点页面下方的「仍要打开」。</span>",
- "点「启用后台同步」。系统询问是否允许读取剪贴板时,选择允许。",
+ "点「启用后台同步」。系统询问是否允许读取剪贴板、能否查找本地网络上的设备时,都选择允许。",
],
"win": [
"运行 CopySync-Setup.exe,不需要管理员权限。<span class=\"aside\">提示「Windows 已保护你的电脑」时,点「更多信息」,再点「仍要运行」。</span>",
- "打开 CopySync,点「启用后台同步」。关掉窗口后它在右下角的托盘里继续运行。",
+ "打开 CopySync,点「启用后台同步」。防火墙询问时选择允许。关掉窗口后它在右下角的托盘里继续运行。",
],
"app_alt": "第一次打开 CopySync:提示启用后台同步",
- "server_h2": "准备一台服务器",
- "server_intro": "两台电脑靠它找到彼此,复制的内容不会存在上面。CopySync 不提供公共服务器,有三种部署方式,选一种适合你的。",
-
- "connect_h2": "在每台电脑上填服务器地址",
- "connect_steps": [
- ("打开设置", "在每台电脑上打开 CopySync,进入「设置」。服务器所在的那台电脑也一样。"),
- ("填入地址", "在「信令服务器地址」里填上一步显示的地址,按回车保存。"),
- ("看连接状态", "「连接状态」变成绿色的「已连接」,这台电脑就准备好了。"),
- ],
- "connect_alt": "CopySync 的设置页:信令服务器地址填着 ws://192.168.1.20:8787/signal,连接状态显示已连接",
- "connect_after": "一直是「未连接」?看<a href=\"{server}#faq\">常见问题</a>。",
+ "server_h2": "选一种连接方式",
+ "server_intro": "两台电脑在同一个网络里时,什么都不用部署。跨网络时,要靠公网服务器或 Tailscale 找到彼此,复制的内容不会存在上面。",
"pair_h2": "把两台电脑配对",
"pair_intro": "每两台电脑之间配对一次,之后就不用再管了。",
"pair_steps": [
- "在一台电脑上打开「设备」,点「添加设备」,会显示一个 6 位配对码,5 分钟内有效。",
- "在另一台电脑上同样点「添加设备」,切到「输入配对码」,输入它。",
+ "在一台电脑上打开「设备」,点「添加设备」,会显示一个 6 位配对码,5 分钟内有效,下面是这台电脑的地址。",
+ "在另一台电脑上同样点「添加设备」,切到「输入配对码」,输入它。"
+ "<span class=\"aside\">不在同一网段、或者用 Tailscale 时,点「不在同一网段?」,再填上对方的地址。</span>",
"两块屏幕会显示同样的两行安全指纹。逐字核对一致后,再点确认。"
"<span class=\"aside\">这一步防止有人在中间冒充你的设备,不要跳过。</span>",
],
- "pair_alt": "添加设备:显示配对码 K7MP2X,在另一台设备上输入它",
+ "pair_alt": "添加设备:显示配对码 K7MP2X,下面是本机地址 192.168.1.20",
"done_h2": "复制试试。",
"done_text": "在一台电脑上复制文字、图片或文件,到另一台按 ⌘V 或 Ctrl+V。两边复制过的内容都在「复制记录」里。",
- "help": "遇到问题:<a href=\"{server}#faq\">局域网部署的常见问题</a> · <a href=\"{ts}#faq\">Tailscale 的常见问题</a> · "
- "<a href=\"{issues}\">反馈问题</a>",
+ "help": "遇到问题:<a href=\"{lan}#faq\">同一网络的常见问题</a> · <a href=\"{ts}#faq\">Tailscale 的常见问题</a> · "
+ "<a href=\"{cloud}#faq\">公网服务器的常见问题</a> · <a href=\"{issues}\">反馈问题</a>",
+ },
+
+ # ── 同一网络(lan/ 页面),不需要服务器 ──
+ "lan": {
+ "title": "在同一网络里使用 CopySync:不用服务器,配对就能同步",
+ "description": "两台电脑在同一个 Wi‑Fi 或有线网络里时,CopySync 不需要服务器:装好 App,输入 6 位配对码,"
+ "就能在 Mac 与 Windows 之间同步剪贴板和文件。不在同一网段时,配对时多输入一个地址。",
+ "h1": "在同一网络里直接用",
+ "lede": "两台电脑连着同一个路由器,就不需要服务器。装好 App,输入配对码,之后复制就会同步。",
+ "toc": [("prepare", "开始之前"), ("pair", "配对"), ("subnet", "不在同一网段"), ("faq", "常见问题")],
+ "step": "第 {n} 步",
+
+ "overview_h2": "不需要服务器",
+ "overview_intro": "同一个网络里的两台电脑,靠 mDNS 互相发现、直接交换连接信息,然后建立加密的直连。"
+ "没有服务器,也不需要一台一直开着的电脑。",
+ "diagram": {
+ "title": "同一网络里的 CopySync",
+ "desc": "同一个局域网里,Mac(192.168.1.20)与 Windows(192.168.1.35)通过 mDNS 互相发现,经 UDP 8788 交换连接信息,"
+ "复制的内容在两台电脑之间直连传输,没有服务器。",
+ "lan": "局域网:同一个 Wi‑Fi 或有线网络",
+ "client": "装着 CopySync",
+ "find_note": "mDNS 互相发现,UDP 8788 交换连接信息",
+ "direct": "直连,端到端加密",
+ "direct_note": "复制的内容只在两台电脑之间传输",
+ },
+ "overview_points": [
+ "<strong>自动发现。</strong>每台电脑用 mDNS 在局域网里广播自己,广播里只有一个每天都变的匿名标识,看不出是谁的电脑。",
+ "<strong>直连。</strong>复制的内容在两台电脑之间直接传输,速度就是局域网的速度。",
+ "<strong>安全照旧。</strong>配对时核对两行安全指纹,之后的每条消息都带签名,同一网络里的其他人冒充不了你的设备。",
+ ],
+ "prep": [
+ ("在同一个网络里", "两台电脑连着同一个路由器就行,Wi‑Fi 与有线混用也可以。访客网络、开了「AP 隔离」的 Wi‑Fi 不让设备互相访问;"
+ "公司里有线和无线常常不在一个网段,这时看下面的<a href=\"#subnet\">不在同一网段</a>。"),
+ ("Windows 防火墙", "第一次运行时,Windows 会问是否允许 CopySync 通过防火墙,选允许。点过取消的话,"
+ "在 CopySync 的「设置 → 局域网」里点「放行」,会请求一次管理员权限。"),
+ ("macOS 的本地网络权限", "macOS 15 起,第一次连接局域网里的设备时,系统会问是否允许 CopySync Daemon 查找本地网络上的设备,选允许。"
+ "拒绝过的话,到「系统设置 → 隐私与安全性 → 本地网络」里打开它。"),
+ ("不用填服务器", "「设置」里的服务器地址留空就行。以后要跨网络同步,再填上服务器或者改用 Tailscale,已经配对的设备不用重新配对。"),
+ ],
+
+ "pair_h2": "把两台电脑配对",
+ "pair_intro": "每两台电脑之间配对一次。还没装 App 的话,先按<a href=\"{start}#app\">快速开始</a>装好。",
+ "pair_steps": [
+ "在一台电脑上打开「设备」,点「添加设备」,会显示一个 6 位配对码,5 分钟内有效。",
+ "在另一台电脑上同样点「添加设备」,切到「输入配对码」,输入它,点「继续」。",
+ "两块屏幕会显示同样的两行安全指纹。逐字核对一致后,再点确认。之后复制就会同步。",
+ ],
+ "pair_alt": "添加设备:显示配对码 K7MP2X,下面是本机地址 192.168.1.20",
+
+ "subnet_h2": "不在同一网段",
+ "subnet_intro": "局域网发现只在一个网段里有效。两台电脑在不同网段、但网段之间互通时(公司里常见),配对时多输入一个地址就行。",
+ "subnet_steps": [
+ "显示配对码的那台,在配对码下面能看到本机的地址,比如 <code>192.168.1.20</code>。",
+ "输入配对码的那台,点「不在同一网段?」,填上这个地址,再点「继续」。",
+ "配对之后,两台会记住彼此的地址。一台换了地址时,只要另一台没换,就会自动重新找到;"
+ "两台都换了时,在「设备」里点那台设备的「…」菜单,选「输入它的地址」。",
+ ],
+ "subnet_alt": "输入配对码:填好配对码 K7MP2X,下面展开的地址框里填着 192.168.1.20",
+ "subnet_after": "两个网段之间完全不通时(比如访客网络与办公网络隔开),只能经一台两边都能访问的电脑中转,"
+ "见<a href=\"{server}\">在局域网里部署服务器</a>。",
+
+ "faq": [
+ ("找不到另一台电脑?", [
+ "先确认两台连着同一个网络、都启用了后台同步。再试试在输入配对码的那台填上对方的地址:"
+ "这样能找到的话,说明两台不在同一网段,或者网络挡住了 mDNS。",
+ "还是找不到,就看对方的防火墙:对方是 Windows 的话,在它的「设置 → 局域网」里点「放行」;"
+ "是 Mac 的话,确认「系统设置 → 隐私与安全性 → 本地网络」里打开了 CopySync Daemon,系统防火墙也没有拦着它。",
+ ]),
+ ("离开这个网络后还能同步吗?", [
+ "不能,回到这个网络后自动恢复,这期间复制的内容会补发到对方的复制记录里。"
+ "要在不同网络之间同步,加一台<a href=\"{cloud}\">公网服务器</a>,或者改用<a href=\"{ts}\">Tailscale</a>,已经配对的设备不用重新配对。",
+ ]),
+ ("地址变了怎么办?", [
+ "一般不用管。同一网段里靠 mDNS 随时能找到;不同网段时,只要有一台的地址没变,就能自动重新连上。"
+ "两台都换了地址时,在「设备」里给那台设备重新输入一次地址。",
+ "常放着不动的台式机,可以在路由器的「DHCP 静态分配」里给它固定一个地址。",
+ ]),
+ ("同一网络里的其他人会看到我的电脑吗?", [
+ "能看到网络里有一台 CopySync,但看不出是谁的:广播里只有一个每天都变的匿名标识,没有设备名,也没有设备 ID。"
+ "没有和你配对过的设备,发来的消息一律丢弃;配对还要两边核对安全指纹。",
+ ]),
+ ("用了哪些端口?", [
+ "UDP 8788 用来交换连接信息(被占用时换一个随机端口),mDNS 用 UDP 5353,连上之后的数据走另一个随机的 UDP 端口。"
+ "不需要在路由器上做任何设置。",
+ ]),
+ ],
+
+ "closing": "同一个网络,<br>装好就能用。",
+ "source": "局域网直连的技术方案",
},
- # ── 用 Tailscale 跨网络使用(tailscale/ 页面) ──
+ # ── 用 Tailscale 跨网络使用(tailscale/ 页面),不需要服务器 ──
"ts": {
- "title": "用 Tailscale 跨网络使用 CopySync:没有公网 IP 也能在家和公司之间同步",
- "description": "服务器放在家里一台常开的电脑上,每台电脑装上 Tailscale,就像在同一个局域网里:"
- "不需要公网 IP,也不用改路由器,在公司、在外面都能同步剪贴板。Windows、Mac、Linux 图文教程。",
+ "title": "用 Tailscale 跨网络使用 CopySync:不用服务器,在家和公司之间同步",
+ "description": "每台电脑装上 Tailscale、登录同一个账号,配对时输入对方的 Tailscale 地址:不需要公网 IP,"
+ "不需要服务器,也不需要一直开着的电脑,在公司、在外面都能同步剪贴板。",
"h1": "用 Tailscale 跨网络使用",
- "lede": "没有公网 IP,也能在家和公司之间同步。服务器照样放在家里,每台电脑装上 Tailscale,"
- "它们就像在同一个局域网里,不用改路由器,也不用买云服务器。",
- "toc": [("join", "装 Tailscale"), ("address", "查地址"), ("install", "安装服务器"), ("check", "检查"),
- ("clients", "填地址"), ("faq", "常见问题")],
+ "lede": "没有公网 IP,也不想部署服务器?每台电脑装上 Tailscale,配对时输入对方的 Tailscale 地址,在家、在公司都能同步。",
+ "toc": [("join", "装 Tailscale"), ("address", "查地址"), ("pair", "配对"), ("faq", "常见问题")],
"step": "第 {n} 步",
"overview_h2": "像在同一个局域网里",
"overview_intro": "Tailscale 是一个组网工具:装了它、登录同一个账号的设备,各自分到一个固定的 100 开头的地址,"
- "不管实际在哪个网络里,都能用这个地址互相访问。CopySync 的服务器用这个地址安装,客户端也填这个地址,其余和局域网部署一样。",
+ "不管实际在哪个网络里,都能用这个地址互相访问。CopySync 配对时记住对方的这个地址,之后就像在同一个网络里一样直接连接。",
"diagram": {
"title": "通过 Tailscale 使用 CopySync",
- "desc": "服务器在家里,Mac 在公司,Windows 在家里,三台设备都装了 Tailscale,在同一个虚拟局域网里各有一个 100 开头的地址。"
- "两台电脑通过信令连接到服务器 100.101.102.103,复制的内容在两台电脑之间直连传输,直连不通时经服务器中转。",
+ "desc": "Mac 在公司,Windows 在家里,两台都装了 Tailscale,在同一个虚拟局域网里各有一个 100 开头的地址。"
+ "复制的内容在两台电脑之间直接传输,没有服务器。",
"net": "Tailscale 虚拟局域网:每台设备一个 100 开头的地址",
- "server": "服务器",
- "server_place": "在家里,一直开着",
"mac_place": "在公司",
"win_place": "在家里",
- "sig_note": "信令 TCP 8787",
- "relay_note": "中转 UDP 3478,直连不通时",
"direct": "直连,两层加密",
"direct_note": "复制的内容只在两台电脑之间传输",
},
"overview_points": [
- "<strong>服务器还在家里。</strong>任意一台常开的 Windows、Mac 或 Linux 电脑,和局域网部署一样。",
- "<strong>每台电脑都装 Tailscale,</strong>登录同一个账号。服务器所在的那台也要装。",
- "<strong>两层加密。</strong>Tailscale 的 WireGuard 隧道里,跑的是 CopySync 自己端到端加密的连接,Tailscale 和你的服务器都看不到内容。",
+ "<strong>不需要服务器,</strong>也不需要一直开着的电脑:两台电脑开着、连着 Tailscale,就能同步。",
+ "<strong>地址只输入一次。</strong>Tailscale 地址不会变,配对时输入一次,之后两台会自动找到彼此。",
+ "<strong>两层加密。</strong>Tailscale 的 WireGuard 隧道里,跑的是 CopySync 自己端到端加密的连接,Tailscale 看不到内容。",
],
"prep": [
- ("一台常开的电脑", "当服务器用,要求和<a href=\"{server}#prepare\">局域网部署</a>一样,关机或睡眠时同步会暂停。"
- "它的 Tailscale 地址不会变,不需要在路由器里固定地址。"),
("一个 Tailscale 账号", "个人使用免费,用 Google、Microsoft、GitHub 或 Apple 账号就能登录。所有设备登录同一个账号。"),
- ("每台电脑都装 Tailscale", "Windows、macOS、Linux 都有客户端。用 CopySync 的电脑都要装,一直待在家里的那台也一样。"),
- ("用 ZeroTier 也行", "其他能给每台设备分配固定虚拟地址的组网工具,做法相同:服务器用它分配的地址安装,客户端填这个地址。下面以 Tailscale 为例。"),
+ ("每台电脑都装 Tailscale", "Windows、macOS、Linux 都有客户端。用 CopySync 的电脑都要装,并保持连接。"),
+ ("CopySync 已经装好", "每台电脑装好 App、启用了后台同步,见<a href=\"{start}#app\">快速开始</a>。服务器地址留空就行。"),
+ ("用 ZeroTier 也行", "其他能给每台设备分配固定虚拟地址的组网工具,做法相同:配对时输入它分配的地址。下面以 Tailscale 为例。"),
],
"join_h2": "在每台电脑上装 Tailscale",
- "join_intro": "服务器所在的电脑和每台要同步的电脑,都装上并登录同一个账号。",
+ "join_intro": "每台要同步的电脑,都装上并登录同一个账号。",
"join_steps": [
"到 Tailscale 官网下载对应系统的客户端并安装。"
"<span class=\"aside\">Linux 上运行 <code>curl -fsSL https://tailscale.com/install.sh | sh</code>,再运行 <code>sudo tailscale up</code>,打开它给出的链接登录。</span>",
@@ -674,76 +770,30 @@ C = {
],
"join_download": "下载 Tailscale",
"machines_cols": ["设备", "Tailscale 地址", "系统"],
- "machines_server": "服务器",
- "machines_label": "Tailscale 管理后台的设备列表(示意):mac-mini 是服务器,地址 100.101.102.103;macbook-pro 是 100.88.20.5;home-pc 是 100.92.41.17",
- "server_notes_h3": "服务器所在的那台电脑,再多做一步",
- "server_notes": [
- "<strong>Windows:</strong>在任务栏右下角的 Tailscale 图标上右键,在「Preferences」里勾选「Run unattended」。"
- "不然注销之后 Tailscale 会断开,外面的电脑就连不上服务器了。",
- "<strong>Mac:</strong>保持登录、不睡眠,确认 Tailscale 登录后会自动打开。CopySync 的服务器也是登录后才运行。",
- "<strong>关掉密钥过期:</strong>Tailscale 默认每 180 天要求设备重新登录一次。在管理后台的 Machines 页面,"
- "点服务器那一行最右边的菜单,选「Disable key expiry」。",
+ "machines_label": "Tailscale 管理后台的设备列表(示意):macbook-pro 的地址是 100.88.20.5,home-pc 是 100.92.41.17",
+ "join_notes_h3": "让 Tailscale 一直连着",
+ "join_notes": [
+ "<strong>Windows:</strong>在任务栏右下角的 Tailscale 图标上右键,在「Preferences」里勾选「Run unattended」,注销之后也保持连接。",
+ "<strong>Mac:</strong>确认 Tailscale 登录后会自动打开。",
+ "<strong>关掉密钥过期:</strong>Tailscale 默认每 180 天要求设备重新登录一次。常年不动的电脑,可以在管理后台的 Machines 页面,"
+ "点那一行最右边的菜单,选「Disable key expiry」。",
],
- "address_h2": "查服务器的 Tailscale 地址",
- "address_intro": "在服务器所在的电脑上点菜单栏(Windows 上是任务栏右下角)的 Tailscale 图标,菜单里能看到本机的地址;"
+ "address_h2": "查对方的 Tailscale 地址",
+ "address_intro": "在要配对的另一台电脑上点 Tailscale 的图标(Mac 在菜单栏,Windows 在任务栏右下角),菜单里能看到本机的地址;"
"或者在终端里运行 <code>tailscale ip -4</code>。",
- "address_label": "在终端里运行 tailscale ip -4,输出本机的 Tailscale 地址 100.101.102.103",
- "address_after": "下面都以 <code>100.101.102.103</code> 为例,换成你的地址。",
+ "address_label": "在 PowerShell 里运行 tailscale ip -4,输出本机的 Tailscale 地址 100.92.41.17",
+ "address_after": "下面以家里那台 Windows 的 <code>100.92.41.17</code> 为例,换成你的地址。",
- "install_h2": "用这个地址安装服务器",
- "install_intro": "安装脚本默认用局域网地址,这里要带上 Tailscale 地址,外面的电脑才用得到服务器的中转。"
- "已经照<a href=\"{server}\">局域网教程</a>装过的,带上地址再运行一次即可,原来的设置保留。",
- "win": {
- "steps": [
- "下载 copysync-server-windows-amd64.zip,右键选「全部解压缩」。已经装过的,用原来解压出的文件夹。",
- "打开解压出的文件夹,在窗口顶部的地址栏里输入 <code>cmd</code>,按回车,打开命令提示符。",
- "运行 <code>install.cmd 100.101.102.103</code>(换成你的地址),弹出用户账户控制时点「是」。",
- "安装在新打开的窗口里进行。最后显示的地址应当是 <code>ws://100.101.102.103:8787/signal</code>。",
- ],
- "notes": [
- "<strong>防火墙已经放行:</strong>脚本添加的入站规则对所有网络生效,Tailscale 的网卡也包括在内。",
- "提示「Windows 已保护你的电脑」时,点「更多信息」,再点「仍要运行」。",
- ],
- "cmd_title": "命令提示符",
- "cmd_label": "在解压出的文件夹里打开命令提示符,运行 install.cmd 100.101.102.103",
- "term_label": "install.cmd 运行完的窗口:最后显示客户端要填的地址 ws://100.101.102.103:8787/signal",
- },
- "mac": {
- "steps": [
- "打开「终端」,逐行运行,最后一行换成你的地址:",
- "最后显示的地址应当是 <code>ws://100.101.102.103:8787/signal</code>。",
- ],
- "notes": [
- "已经装过的,在原来的文件夹里运行 <code>./install.sh 100.101.102.103</code> 即可,原来的设置保留。",
- "<strong>开着系统防火墙的话,</strong>脚本最后会给出放行 copysync-server 的命令。",
- ],
- "term_label": "在终端里运行 ./install.sh 100.101.102.103 的输出,最后显示客户端要填的地址 ws://100.101.102.103:8787/signal",
- },
- "linux": {
- "steps": [
- "逐行运行,最后一行换成你的地址:<span class=\"aside\">ARM 设备把 <code>amd64</code> 换成 <code>arm64</code>。</span>",
- "最后显示的地址应当是 <code>ws://100.101.102.103:8787/signal</code>。",
- ],
- "switch": "<strong>已经装过的:</strong>Linux 的安装脚本不会改动已有的配置。把配置里原来的地址换成 Tailscale 地址"
- "(下面的 <code>192.168.1.20</code> 换成你原来的地址),再重启服务:",
- "term_label": "运行 sudo ./install.sh 100.101.102.103 的输出,最后显示客户端要填的地址 ws://100.101.102.103:8787/signal",
- },
-
- "check_h2": "从外面检查一下",
- "check_intro": "找一台不在家里网络的电脑,或者让笔记本连上手机热点,确认 Tailscale 已连接,"
- "在浏览器里打开 <code>http://100.101.102.103:8787/healthz</code>。看到下面这一行,在外面也能访问到服务器了。",
- "check_label": "浏览器打开 http://100.101.102.103:8787/healthz,页面显示服务器的状态 ok 与版本号",
- "check_after": "打不开的话,看下面的<a href=\"#faq\">常见问题</a>。",
-
- "clients_h2": "在每台电脑上填地址",
- "clients_steps": [
- ("打开设置", "在每台电脑上打开 CopySync,进入「设置」。服务器所在的那台电脑也一样。"),
- ("填 Tailscale 地址", "在「信令服务器地址」里填 <code>ws://100.101.102.103:8787/signal</code>(换成你的地址),按回车保存。"),
- ("看连接状态", "「连接状态」变成绿色的「已连接」就好了。还没配对的话,在「设备」里配对。"),
+ "pair_h2": "配对时输入这个地址",
+ "pair_intro": "和在同一网络里配对一样,只是多输入一个地址。",
+ "pair_steps": [
+ "在家里那台 Windows 上打开「设备」,点「添加设备」,记下 6 位配对码。",
+ "在公司的 Mac 上点「添加设备」,切到「输入配对码」,输入它;再点「不在同一网段?」,填上 <code>100.92.41.17</code>,点「继续」。",
+ "两块屏幕会显示同样的两行安全指纹,逐字核对一致后确认。之后两台在哪儿都能同步。",
],
- "clients_alt": "CopySync 的设置页:信令服务器地址填着 ws://100.101.102.103:8787/signal,连接状态显示已连接",
- "clients_after": "家里的电脑也填 Tailscale 地址,不要填局域网地址:这样电脑在家、在外面,地址都不用改。都在家时,数据照样只在家里的网络里走。",
+ "pair_alt": "输入配对码:填好配对码 K7MP2X,地址框里填着 Tailscale 地址 100.92.41.17",
+ "pair_after": "两台都在家里时,CopySync 也会在局域网里直接找到对方,数据不会绕道。",
"faq": [
("设备之间显示「直连」,速度却很慢?", [
@@ -752,41 +802,43 @@ C = {
"在终端里运行 <code>tailscale ping 对方的地址</code>:显示 via DERP,说明 Tailscale 在中转;显示 via 一个 IP 和端口,就是点对点。"
"公司网络、校园网比较容易遇到中转,可以自建 DERP 中转服务器,或者换一种组网工具。",
]),
- ("连接状态一直是「未连接」?", [
- "先确认这台电脑的 Tailscale 已连接,再在浏览器里打开 <code>http://服务器的 Tailscale 地址:8787/healthz</code>。",
- "打不开的话,看服务器那台电脑是不是睡眠了、Tailscale 是否在线(Windows 上要勾选 Run unattended,Mac 上要保持登录),"
- "服务器是不是还用着局域网地址,以及 Mac、Linux 上的防火墙有没有放行。",
+ ("配对时找不到对方?", [
+ "先确认两台的 Tailscale 都已连接:在终端里运行 <code>tailscale ping 对方的地址</code>,能 ping 通再试。",
+ "能 ping 通还找不到,多半是对方的防火墙挡住了:对方是 Windows 的话,在它的 CopySync「设置 → 局域网」里点「放行」;"
+ "是 Mac 的话,确认「系统设置 → 隐私与安全性 → 本地网络」里打开了 CopySync Daemon。",
]),
("一定要每台电脑都装 Tailscale 吗?", [
- "是的。没装的电脑访问不到 100 开头的地址,在外面的电脑也找不到它。一直待在家里的那台也要装。",
+ "是的,没装的电脑访问不到 100 开头的地址。两台在同一个网络里时,不装也能用,见<a href=\"{lan}\">同一网络教程</a>。",
]),
- ("已经照局域网教程装好了,要从头来吗?", [
- "不用。带上 Tailscale 地址把安装脚本再运行一次(Linux 上改一下配置),然后在每台电脑上把服务器地址改成 Tailscale 地址。"
- "已经配对的设备不用重新配对。",
+ ("以前照教程在家里装过服务器,还要它吗?", [
+ "不需要了。在每台电脑的「设置」里清空服务器地址,再在家里那台电脑上卸载服务器即可,已经配对的设备不用重新配对。"
+ "留着也没关系,服务器和 Tailscale 可以同时用。",
]),
("Tailscale 能看到我复制的内容吗?", [
"不能。Tailscale 的连接用 WireGuard 端到端加密,里面跑的又是 CopySync 自己的 DTLS 加密连接,两层都只有两台电脑能解开。"
"Tailscale 的服务器只交换设备的公钥和地址,中转服务器也只转发加密后的数据包。",
]),
- ("服务器的 Tailscale 地址会变吗?", [
- "一般不会。地址跟着设备走,重启、换网络都不变;只有把设备从 Tailscale 里删掉再重新加入,才会换一个。",
+ ("Tailscale 地址会变吗?", [
+ "一般不会。地址跟着设备走,重启、换网络都不变;只有把设备从 Tailscale 里删掉再重新加入,才会换一个。"
+ "换了的话,在「设备」里给那台设备重新输入一次地址。",
]),
- ("我有公网 IP,还需要 Tailscale 吗?", [
- "不需要。把服务器部署在有公网 IP 的机器上,所有电脑填它的公网地址就行,见<a href=\"{cloud}\">公网服务器部署教程</a>。",
+ ("我有公网服务器,还需要 Tailscale 吗?", [
+ "不需要。把服务器部署在有公网 IP 的机器上,所有电脑填它的地址就行,见<a href=\"{cloud}\">公网服务器部署教程</a>。",
]),
],
- "closing": "服务器在家里,<br>复制跟着你走。",
- "source": "回到局域网部署教程",
+ "closing": "不用服务器,<br>复制跟着你走。",
+ "source": "回到同一网络教程",
},
"ld_description": "在 Mac 与 Windows 电脑之间同步剪贴板与文件的开源工具。复制文本、图片、文件或文件夹后,另一台电脑可直接粘贴。"
- "设备间 WebRTC 直连、DTLS 端到端加密,打不通时经用户自建服务器的 TURN 中转。",
+ "同一网络里不需要服务器;设备间 WebRTC 直连、DTLS 端到端加密,跨网络打不通时经用户自建服务器的 TURN 中转。",
"ld_os": "macOS 13 及以上(Intel 与 Apple 芯片);Windows 10、Windows 11(x64)",
"ld_currency": "CNY",
"ld_features": [
"同步纯文本、带格式的文本、图片、文件与文件夹",
"Mac 与 Windows 互通,不要求同一个账号,跨网络可用",
+ "同一网络里不需要服务器,靠 mDNS 自动发现",
"WebRTC 直连,打不通时自动经 TURN 中转",
"DTLS 端到端加密,配对时人工核对安全指纹",
"50 MB 以内复制即推送,更大的文件按需拉取",
diff --git a/ui/tool/screenshots/screenshots_test.dart b/ui/tool/screenshots/screenshots_test.dart
index e71a112..05a2ca8 100644
--- a/ui/tool/screenshots/screenshots_test.dart
+++ b/ui/tool/screenshots/screenshots_test.dart
@@ -322,13 +322,6 @@ void main() {
section: Section.settings, brightness: Brightness.dark);
});
- // 网站「用 Tailscale 跨网络使用」:服务器地址填 Tailscale 分配的 100.x 地址
- testWidgets('settings-tailscale-dark', (tester) async {
- await _shoot(tester, 'settings-tailscale-dark',
- state: _demo(server: 'ws://100.101.102.103:8787/signal'),
- section: Section.settings, brightness: Brightness.dark);
- });
-
// 网站「部署到公网服务器」:服务器地址填公网 IP(文档专用的示例地址段)
testWidgets('settings-cloud-dark', (tester) async {
await _shoot(tester, 'settings-cloud-dark',
@@ -352,6 +345,26 @@ void main() {
});
});
+ // 网站「同一网络」的跨网段一节与「Tailscale」:输入配对码,展开地址框,填上对方显示的地址
+ for (final (name, address) in [('pairing-join-dark', '192.168.1.20'), ('pairing-join-ts-dark', '100.92.41.17')]) {
+ testWidgets(name, (tester) async {
+ await _shoot(tester, name, state: _demo(), section: Section.devices,
+ brightness: Brightness.dark, arrange: () async {
+ showDialog<void>(
+ context: tester.element(find.byType(Shell)),
+ builder: (_) => const PairingDialog(),
+ );
+ await tester.pumpAndSettle();
+ await tester.tap(find.text(appL10n.enterCode));
+ await tester.pumpAndSettle();
+ await tester.enterText(find.byType(TextField).last, 'K7MP2X');
+ await tester.tap(find.text(appL10n.differentSubnet));
+ await tester.pumpAndSettle();
+ await tester.enterText(find.byType(TextField).last, address);
+ });
+ });
+ }
+
// 网站上与文字并排展示的对话框:单独渲染,透明背景,保留对话框自己的圆角与阴影
for (final dark in [false, true]) {
testWidgets(dark ? 'card-verify-dark' : 'card-verify', (tester) async {