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.

25.4 KB
Raw Blame
<!doctype html>
<html lang="zh-HK">
<head>
  <meta charset="utf-8">
  <script>
    (function () {
      if (location.hostname !== "baiyuze.github.io") return;
      var prefix = /^\/(?:pasteferry|copysync)(?=\/|$)/.exec(location.pathname);
      if (!prefix) return;
      var path = location.pathname.slice(prefix[0].length) || "/";
      location.replace("https://pasteferry.cc" + path + location.search + location.hash);
    })();
  </script>
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>把隔空貼伺服器部署到公網:雲端伺服器圖文教學</title>
  <meta name="description" content="一部有公網 IP 的 Linux 雲端伺服器,執行一個腳本就能安裝好隔空貼的信令與 TURN 伺服器。每部電腦直接連線到它,在家、在公司、在外面都能同步剪貼簿。內容包括安全群組設定、檢查、用戶端設定,以及內地域名 ICP 備案的說明。">
  <link rel="canonical" href="https://pasteferry.cc/zh-hk/cloud/">
  <link rel="alternate" hreflang="zh-CN" href="https://pasteferry.cc/cloud/">
  <link rel="alternate" hreflang="zh-TW" href="https://pasteferry.cc/zh-tw/cloud/">
  <link rel="alternate" hreflang="zh-HK" href="https://pasteferry.cc/zh-hk/cloud/">
  <link rel="alternate" hreflang="en" href="https://pasteferry.cc/en/cloud/">
  <link rel="alternate" hreflang="ja" href="https://pasteferry.cc/ja/cloud/">
  <meta name="theme-color" content="#141416">
  <meta property="og:type" content="article">
  <meta property="og:site_name" content="隔空貼">
  <meta property="og:title" content="把隔空貼伺服器部署到公網:雲端伺服器圖文教學">
  <meta property="og:description" content="一部有公網 IP 的 Linux 雲端伺服器,執行一個腳本就能安裝好隔空貼的信令與 TURN 伺服器。每部電腦直接連線到它,在家、在公司、在外面都能同步剪貼簿。內容包括安全群組設定、檢查、用戶端設定,以及內地域名 ICP 備案的說明。">
  <meta property="og:url" content="https://pasteferry.cc/zh-hk/cloud/">
  <meta property="og:image" content="https://pasteferry.cc/assets/og-zh-hant.png">
  <meta property="og:locale" content="zh_HK">
  <meta name="twitter:card" content="summary_large_image">
  <link rel="icon" href="../../assets/favicon.svg?v=df696024d8" type="image/svg+xml">
  <link rel="icon" href="../../assets/favicon-32.png?v=8e9afa506d" sizes="32x32" type="image/png">
  <link rel="apple-touch-icon" href="../../assets/apple-touch-icon.png?v=bcbf406cb8">
  <link rel="stylesheet" href="../../assets/site.css?v=dbae55d27c">
  <script>document.documentElement.classList.add("js");if (!/Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent)) document.documentElement.classList.add("pc");</script>
</head>
<body>
  <a class="skip" href="#main">跳至主要內容</a>

  <header class="bar">
    <div class="wrap">
      <a class="brand" href="../../zh-hk/" aria-label="隔空貼首頁"><img src="../../assets/icon.svg?v=65a69999e0" alt="" width="26" height="26">隔空貼</a>
      <nav aria-label="頁面導覽">
        <a href="../../zh-hk/features/">功能</a>
        <a class="mid" href="../../zh-hk/start/">快速開始</a>
        <a class="wide" href="../../zh-hk/start/#server" aria-current="true">連接方式</a>
        <a href="../../zh-hk/download/">下載</a>
        <details class="menu">
          <summary aria-label="更多頁面"><span>更多</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>
          <ul>
            <li class="narrow"><a href="../../zh-hk/start/">快速開始</a></li>
            <li class="narrow"><a href="../../zh-hk/start/#server">連接方式</a></li>
            <li><a href="../../zh-hk/themes/">主題教學</a></li>
            <li><a href="../../zh-hk/how/">運作原理</a></li>
            <li><a href="../../zh-hk/security/">安全與私隱</a></li>
            <li><a href="../../zh-hk/faq/">常見問題</a></li>
            <li><a href="../../zh-hk/feedback/">討論與意見</a></li>
            <li class="sep" role="separator"></li>
            <li><a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">更新記錄</a></li>
            <li class="narrow-gh"><a href="https://github.com/baiyuze/pasteferry">GitHub</a></li>
          </ul>
        </details>
        <a class="gh" href="https://github.com/baiyuze/pasteferry" data-gh-stars aria-label="在 GitHub 上給隔空貼按 Star"><svg class="gh-mark" viewBox="0 0 16 16" aria-hidden="true"><path fill="currentColor" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"/></svg><span class="gh-label">Star</span><span class="gh-count" hidden><svg class="gh-star" viewBox="0 0 16 16" aria-hidden="true"><path fill="currentColor" d="M8 .25a.75.75 0 01.673.418l1.882 3.815 4.21.612a.75.75 0 01.416 1.279l-3.046 2.97.719 4.192a.751.751 0 01-1.088.791L8 12.347l-3.766 1.98a.75.75 0 01-1.088-.79l.72-4.194L.818 6.374a.75.75 0 01.416-1.28l4.21-.611L7.327.668A.75.75 0 018 .25z"/></svg><b></b></span></a>
        <details class="lang">
          <summary aria-label="語言:繁體中文(香港)"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="10" cy="10" r="7.25"/><path d="M2.75 10h14.5M10 2.75c-2.1 2-3.1 4.4-3.1 7.25s1 5.25 3.1 7.25M10 2.75c2.1 2 3.1 4.4 3.1 7.25s-1 5.25-3.1 7.25"/></svg><span>繁體中文(香港)</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>
          <ul>
            <li><a href="../../cloud/" hreflang="zh-CN" lang="zh-CN" data-lang="zh">简体中文</a></li>
            <li><a href="../../zh-tw/cloud/" hreflang="zh-TW" lang="zh-TW" data-lang="zh-tw">繁體中文(台灣)</a></li>
            <li><a href="../../zh-hk/cloud/" hreflang="zh-HK" lang="zh-HK" data-lang="zh-hk" aria-current="page">繁體中文(香港)</a></li>
            <li><a href="../../en/cloud/" hreflang="en" lang="en" data-lang="en">English</a></li>
            <li><a href="../../ja/cloud/" hreflang="ja" lang="ja" data-lang="ja">日本語</a></li>
          </ul>
        </details>
      </nav>
    </div>
  </header>

  <main id="main">
    <section class="hero guide-hero">
      <div class="wrap">
        <p class="crumb"><a href="../../zh-hk/">隔空貼</a> / <a href="../../zh-hk/start/#server">連接方式</a></p>
        <h1 class="display">部署到公網伺服器</h1>
        <p class="lede">一部有公網 IP 的 Linux 雲端伺服器,最低配置已經足夠。每部電腦直接連線到它,在家、在公司、在外面都能同步,不用另外安裝軟件。</p>
        <ol class="guide-toc">
          <li><a href="#prepare">準備</a></li>
          <li><a href="#ports">開放端口</a></li>
          <li><a href="#install">安裝伺服器</a></li>
          <li><a href="#check">檢查</a></li>
          <li><a href="#clients">填寫地址</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">伺服器在公網上,每部電腦不論身處哪個網絡,都能直接連上。複製的內容優先在兩部電腦之間直連傳輸;打不通直連時經伺服器中轉,內容依然加密。</p>
        <figure class="diagram">
          <svg viewBox="0 0 960 460" role="img" aria-labelledby="cloud-title cloud-desc">
            <title id="cloud-title">透過公網伺服器使用隔空貼</title>
            <desc id="cloud-desc">公網伺服器的地址是 203.0.113.10。Mac 在公司網絡裏,Windows 在家裏的網絡裏,兩部電腦都透過信令連接到伺服器;複製的內容在兩部電腦之間直連傳輸,打不通直連時經伺服器中轉。</desc>
            <rect class="d-box" x="340" y="24" width="280" height="118" rx="14"/>
            <text class="d-title" x="480" y="62" text-anchor="middle">公網伺服器</text>
            <text class="d-sub" x="480" y="90" text-anchor="middle">雲端伺服器,有公網 IP</text>
            <text class="d-ip" x="480" y="124" text-anchor="middle">203.0.113.10</text>
            <rect class="d-lan" x="8" y="196" width="412" height="212" rx="22"/>
            <text class="d-lan-label" x="32" y="228">公司網絡</text>
            <rect class="d-lan" x="540" y="196" width="412" height="212" rx="22"/>
            <text class="d-lan-label" x="564" y="228">家裏的網絡</text>
            <path class="d-sig" d="M150 250V68H340"/>
            <path class="d-sig" d="M810 250V68H620"/>
            <path class="d-relay" d="M210 250V112H340"/>
            <path class="d-relay" d="M750 250V112H620"/>
            <text class="d-note" x="164" y="58">信令 TCP 8787</text>
            <text class="d-note" x="224" y="170">中轉 UDP,打不通直連時</text>
            <rect class="d-box" x="60" y="250" width="240" height="120" rx="14"/>
            <text class="d-title" x="180" y="302" text-anchor="middle">Mac</text>
            <text class="d-sub" x="180" y="330" text-anchor="middle">已安裝隔空貼</text>
            <rect class="d-box" x="660" y="250" width="240" height="120" rx="14"/>
            <text class="d-title" x="780" y="302" text-anchor="middle">Windows</text>
            <text class="d-sub" x="780" y="330" text-anchor="middle">已安裝隔空貼</text>
            <path class="d-direct" d="M300 316H660"/>
            <text class="d-label" x="480" y="302" 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>
          </svg>
        </figure>
        <ul class="points ports">
          <li><strong>信令,TCP 8787。</strong>每部電腦一直連着它,用來發現對方、配對、交換連線資訊。</li>
          <li><strong>直連。</strong>兩部電腦在不同網絡裏時,靠 NAT 打洞直接相連,大多數家庭和公司網絡都能打通。</li>
          <li><strong>中轉,UDP 3478 與中轉端口。</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>Linux,x86_64 或 ARM64 都可以,最低配置已經足夠,伺服器程式只佔約 15 MB 記憶體。需要 root 權限。</dd></div>
          <div><dt>一個公網 IP</dt><dd>雲端伺服器本身的公網 IP 就可以,最好是固定的(彈性 IP)。地址改變了,每部電腦都要重新填寫。</dd></div>
          <div><dt>能登入它</dt><dd>能用 ssh 登入,或者使用雲端供應商網頁上的遠端終端機。</dd></div>
          <div><dt>在內地的雲端伺服器</dt><dd>域名未有 ICP 備案時,用戶端裏要直接填 IP,不能填域名,原因見下面的<a href="#faq">常見問題</a>。</dd></div>
        </dl>
      </div>
    </section>

    <section class="section" id="ports" aria-labelledby="ports-title">
      <div class="wrap">
        <p class="eyebrow">第 1 步</p>
        <h2 id="ports-title">在安全群組裏開放端口</h2>
        <p class="intro">在雲端供應商的控制台,為這部雲端伺服器的安全群組加入下面三條入站規則。</p>
        <div class="os-grid qs-grid">
          <div class="os-figures">
            <figure class="browser listing" role="img" aria-label="雲端伺服器安全群組的入站規則(示意):TCP 8787 用於信令,UDP 3478 用於 STUN 與 TURN,UDP 32768-60999 是中轉端口,來源都是 0.0.0.0/0">
              <div class="b-bar"><span class="t-lights" aria-hidden="true"><i></i><i></i><i></i></span><span class="b-url">雲端伺服器控制台 › 安全群組 › 入站規則</span></div>
              <table>
                <thead><tr><th scope="col">協定</th><th scope="col">端口範圍</th><th scope="col">來源</th><th scope="col">用途</th></tr></thead>
                <tbody>
                <tr><td>TCP</td><td>8787</td><td>0.0.0.0/0</td><td>信令</td></tr>
                <tr><td>UDP</td><td>3478</td><td>0.0.0.0/0</td><td>STUN 與 TURN</td></tr>
                <tr><td>UDP</td><td>32768-60999</td><td>0.0.0.0/0</td><td>中轉端口</td></tr>
                </tbody>
              </table>
            </figure>
          </div>
          <ul class="points">
            <li><strong>名稱不一樣:</strong>有些雲端供應商叫「防火牆」或「網絡 ACL」,都是指這一項。</li>
            <li><strong>中轉端口</strong>由系統隨機分配,範圍以伺服器為準:執行 <code>cat /proc/sys/net/ipv4/ip_local_port_range</code> 查看,安裝腳本最後也會顯示出來。</li>
            <li><strong>系統防火牆:</strong>如果開啟了 ufw 或 firewalld,這三條也要開放,安裝腳本最後會提供指令。</li>
          </ul>
        </div>
      </div>
    </section>

    <section class="section" id="install" aria-labelledby="install-title">
      <div class="wrap">
        <p class="eyebrow">第 2 步</p>
        <h2 id="install-title">執行安裝腳本</h2>
        <p class="intro">把公網 IP 傳給安裝腳本,它會安裝好伺服器、註冊為開機自動啟動的 systemd 服務,最後顯示用戶端要填的地址。</p>
        <div class="os-grid qs-grid">
          <div class="os-steps">
            <ol class="steps">
              <li>用 ssh 登入伺服器,例如 <code>ssh [email protected]</code>(換成你的公網 IP)。</li>
              <li>逐行執行,最後一行換成你的公網 IP:<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://gitee.com/baiyuze/pasteferry/releases/download/v2.10.1/pasteferry-server-linux-amd64.tar.gz
tar xzf pasteferry-server-linux-amd64.tar.gz
cd pasteferry-server-linux-amd64
sudo ./install.sh 203.0.113.10</code></pre>
                </div>
                <p class="small">內地伺服器從 GitHub 下載很慢的話,可以改從 Gitee 鏡像下載:<a href="https://gitee.com/baiyuze/pasteferry/releases/download/v2.10.1/pasteferry-server-linux-amd64.tar.gz">https://gitee.com/baiyuze/pasteferry/releases/download/v2.10.1/pasteferry-server-linux-amd64.tar.gz</a></p></li>
              <li>最後顯示的 <code>ws://203.0.113.10:8787/signal</code> 就是用戶端要填的地址。</li>
            </ol>
            <ul class="points">
              <li><strong>註冊為 systemd 服務,</strong>開機自動執行,設定檔在 <code>/etc/pasteferry/server.env</code>。</li>
              <li><strong>升級:</strong>下載新版本,解壓後再執行 <code>sudo ./install.sh</code>,原有設定會保留。</li>
              <li><strong>也可以用 Docker:</strong>見<a href="https://github.com/baiyuze/pasteferry/blob/main/server/deploy/README.md">伺服器部署說明</a>。</li>
            </ul>
          </div>
          <div class="os-figures">
            <figure class="term" role="img" aria-label="執行 sudo ./install.sh 203.0.113.10 的輸出:安裝、寫入 systemd 單元、產生設定檔、啟動,最後顯示用戶端要填的地址 ws://203.0.113.10: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 [email protected]</span></div>
<pre class="t-body"><span class="t-prompt">$</span> sudo ./install.sh 203.0.113.10
<span class="t-step">▶ 安装二进制到 /usr/local/bin</span>
<span class="t-step">▶ 写入 systemd 单元</span>
<span class="t-step">▶ 生成配置 /etc/pasteferry/server.env(中转地址 203.0.113.10)</span>
<span class="t-step">▶ 启动</span>
  ✓ 已启动

安装完成:pasteferry-server 2.10.1
在每台电脑的 PasteFerry「设置 → 连接 → 自定义服务器」填:

    <span class="t-url">ws://203.0.113.10:8787/signal</span>

  配置   /etc/pasteferry/server.env
  日志   journalctl -u pasteferry-server -f
  重启   systemctl restart pasteferry-server
  卸载   sudo ./install.sh uninstall

防火墙需放行:TCP 8787(信令)、UDP 3478(STUN 与 TURN)、UDP 32768-60999(中转端口,系统随机分配)</pre>
              </figure>
          </div>
        </div>
      </div>
    </section>

    <section class="section" id="check" aria-labelledby="check-title">
      <div class="wrap">
        <p class="eyebrow">第 3 步</p>
        <h2 id="check-title">檢查能否連到它</h2>
        <p class="intro">在任何一部電腦的瀏覽器開啟 <code>http://203.0.113.10:8787/healthz</code>(換成你的公網 IP),看到下面這一行就代表連通了。</p>
        <figure class="browser" role="img" aria-label="用瀏覽器開啟 http://203.0.113.10: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://203.0.113.10:8787/healthz</span></div>
          <pre class="b-body">{"status":"ok","version":"2.10.1"}</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">第 4 步</p>
        <h2 id="clients-title">在每部電腦上填寫地址</h2>
        <ol class="flow">
          <li><h3>開啟設定</h3><p>在每部電腦上開啟隔空貼,進入「設定 → 連接」。</p></li>
          <li><h3>填寫公網地址</h3><p>在「自訂伺服器」裏填 <code>ws://203.0.113.10:8787/signal</code>(換成你的公網 IP),按 Enter 儲存。</p></li>
          <li><h3>查看連線狀態</h3><p>「連線狀態」變成綠色的「已連線」就完成了。如果仍未配對,請在「裝置」裏配對。</p></li>
        </ol>
        <figure class="shot">
          <img src="../../assets/screenshots/zh-hk/settings-cloud-dark.png?v=22ce1193b2" width="2112" height="1472" loading="lazy" alt="隔空貼的「設定 → 連接」頁:「自訂伺服器」填着 ws://203.0.113.10:8787/signal,「連線狀態」顯示「已連線」">
        </figure>
        <p class="note">仍未安裝 App?見<a href="../../zh-hk/start/">快速開始</a>。</p>
        <div class="table-scroll">
                <table class="manage">
                  <caption>日後會用到的</caption>
                  <tbody>
                  <tr><th scope="row">狀態</th><td><code>systemctl status pasteferry-server</code></td></tr>
                  <tr><th scope="row">日誌</th><td><code>journalctl -u pasteferry-server -f</code></td></tr>
                  <tr><th scope="row">重新啟動</th><td><code>sudo systemctl restart pasteferry-server</code></td></tr>
                  <tr><th scope="row">設定</th><td><code>/etc/pasteferry/server.env</code>,改完要重新啟動服務</td></tr>
                  <tr><th scope="row">升級</th><td>下載新版本,解壓後再執行 <code>sudo ./install.sh</code>,原有設定會保留</td></tr>
                  <tr><th scope="row">解除安裝</th><td><code>sudo ./install.sh uninstall</code></td></tr>
                  </tbody>
                </table>
              </div>
      </div>
    </section>

    <section class="section" id="faq" aria-labelledby="faq-title">
      <div class="wrap">
        <h2 id="faq-title">常見問題</h2>
        <div class="faq">
          <details>
            <summary>填域名連不上,填 IP 卻能連上?</summary>
            <div class="answer"><p>在內地的雲端伺服器上,域名未有 ICP 備案時,雲端供應商會攔截指向它的明文 HTTP 請求,回傳一個跳轉到攔截頁面的回應,實測 8787 這類非常用端口也一樣。WebSocket 握手也是一個 HTTP 請求,所以同樣會被攔截,用戶端就顯示「未連線」。</p><p>伺服器地址直接填 IP 就可以,例如 <code>ws://伺服器IP:8787/signal</code>;或者為域名辦理 ICP 備案。</p></div>
          </details>
          <details>
            <summary>需要多高的配置?</summary>
            <div class="answer"><p>最低配置已經足夠。伺服器程式只佔約 15 MB 記憶體,平時只轉發很少量的信令訊息。複製的內容能直連時不會經過它;只有打不通直連、改經中轉時,速度才會受它的對外頻寬限制。</p></div>
          </details>
          <details>
            <summary>裝置之間顯示「中轉」,而不是「直連」?</summary>
            <div class="answer"><p>剛連上時顯示中轉、過一會兒變成直連是正常的:先用中轉確保可用,閒置時再換成直連。如果一直是中轉,代表兩部電腦之間打不通,常見於端口隨機分配的 NAT 或嚴格的防火牆。內容同樣加密,只是速度受伺服器頻寬限制。</p></div>
          </details>
          <details>
            <summary>想用 HTTPS(wss://)?</summary>
            <div class="answer"><p>可以放在 HTTPS 反向代理後面,用戶端填以 <code>wss://</code> 開頭的地址,代理需要支援 WebSocket 升級。在內地的雲端伺服器上,域名需要 ICP 備案。STUN 與 TURN 走 UDP,不經過反向代理,安全群組照樣要開放。</p></div>
          </details>
          <details>
            <summary>家裏的寬頻有公網 IP,能當公網伺服器用嗎?</summary>
            <div class="answer"><p>可以,但比雲端伺服器麻煩:要在路由器上把 TCP 8787、UDP 3478 和一大段中轉用的 UDP 端口轉發到那部電腦,家裏的公網 IP 也可能會改變。電腦都在家裏時,在<a href="../../zh-hk/lan/">同一個網絡</a>裏根本不需要伺服器;要跨網絡又不想費神設定端口轉發,可以用<a href="../../zh-hk/tailscale/">Tailscale</a>。</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="../../zh-hk/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>下載隔空貼</a>
        </div>
        <p class="note">版本 2.10.1,免費開源。macOS 13 或以上;Windows 10、11;Linux(x64 與 ARM64)。 支援安卓 9 或以上;手機可掃碼使用網頁。</p>
        <a class="source" href="https://github.com/baiyuze/pasteferry/blob/main/server/deploy/README.md">伺服器的完整部署說明(包括 Docker 與全部參數)</a>
      </div>
    </section>
  </main>

  <footer class="footer">
    <div class="wrap">
      <p>隔空貼以 GNU AGPL-3.0 開源。</p>
      <nav aria-label="頁尾連結">
        <a href="https://github.com/baiyuze/pasteferry/releases">所有版本</a>
        <a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">更新記錄</a>
        <a href="https://pasteferry.cc/design/nat-traversal.html">技術方案</a>
        <a href="https://github.com/baiyuze/pasteferry/blob/main/LICENSING.md">授權說明</a>
        <a href="https://github.com/baiyuze/pasteferry/issues">回報問題</a>
        <a href="../../zh-hk/privacy/">私隱說明</a>
        <a href="../../zh-hk/feedback/">討論與意見</a>
      </nav>
      <nav aria-label="語言">
        <a href="../../cloud/" hreflang="zh-CN" lang="zh-CN" data-lang="zh">简体中文</a>
        <a href="../../zh-tw/cloud/" hreflang="zh-TW" lang="zh-TW" data-lang="zh-tw">繁體中文(台灣)</a>
        <a href="../../zh-hk/cloud/" hreflang="zh-HK" lang="zh-HK" data-lang="zh-hk" aria-current="page">繁體中文(香港)</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>
      </nav>
    </div>
  </footer>

  <script src="../../assets/site.js?v=fb60f6e5ce" defer></script>
  <script src="/assets/analytics.js?v=e2777f714d" defer></script>
  <script type="module" src="https://static.cloudflareinsights.com/beacon.min.js" data-cf-beacon='{"token": "7ee226baf4a949a397c4bfd69a9e7461"}'></script>
</body>
</html>