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.
Dart airdrop-alternativeclipboardclipboard-sharingclipboard-synccopy-pastecross-platformend-to-end-encryptionfile-syncfile-transferfluttergolanglinuxmacosnat-traversalp2pself-hostedtailscaleuniversal-clipboardwebrtcwindows
<!doctype html>
<html lang="ja">
<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>Tailscale で PasteFerry をネットワークをまたいで使う:サーバーなしで自宅と会社を同期</title>
<meta name="description" content="各コンピューターに Tailscale を入れて同じアカウントでサインインし、ペアリング時に相手の Tailscale アドレスを入力するだけ。グローバル IP もサーバーも、電源を入れたままのコンピューターも要らず、会社や外出先からもクリップボードを同期できます。">
<link rel="canonical" href="https://pasteferry.cc/ja/tailscale/">
<link rel="alternate" hreflang="zh-CN" href="https://pasteferry.cc/tailscale/">
<link rel="alternate" hreflang="zh-TW" href="https://pasteferry.cc/zh-tw/tailscale/">
<link rel="alternate" hreflang="zh-HK" href="https://pasteferry.cc/zh-hk/tailscale/">
<link rel="alternate" hreflang="en" href="https://pasteferry.cc/en/tailscale/">
<link rel="alternate" hreflang="ja" href="https://pasteferry.cc/ja/tailscale/">
<meta name="theme-color" content="#141416">
<meta property="og:type" content="article">
<meta property="og:site_name" content="PasteFerry">
<meta property="og:title" content="Tailscale で PasteFerry をネットワークをまたいで使う:サーバーなしで自宅と会社を同期">
<meta property="og:description" content="各コンピューターに Tailscale を入れて同じアカウントでサインインし、ペアリング時に相手の Tailscale アドレスを入力するだけ。グローバル IP もサーバーも、電源を入れたままのコンピューターも要らず、会社や外出先からもクリップボードを同期できます。">
<meta property="og:url" content="https://pasteferry.cc/ja/tailscale/">
<meta property="og:image" content="https://pasteferry.cc/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?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="../../ja/" aria-label="PasteFerry ホーム"><img src="../../assets/icon.svg?v=65a69999e0" alt="" width="26" height="26">PasteFerry</a>
<nav aria-label="ページ内の移動">
<a href="../../ja/features/">機能</a>
<a class="mid" href="../../ja/start/">はじめかた</a>
<a class="wide" href="../../ja/start/#server" aria-current="true">接続方法</a>
<a href="../../ja/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="../../ja/start/">はじめかた</a></li>
<li class="narrow"><a href="../../ja/start/#server">接続方法</a></li>
<li><a href="../../ja/themes/">テーマガイド</a></li>
<li><a href="../../ja/how/">しくみ</a></li>
<li><a href="../../ja/security/">セキュリティ</a></li>
<li><a href="../../ja/faq/">よくある質問</a></li>
<li><a href="../../ja/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 で PasteFerry にスターを付ける"><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="../../tailscale/" hreflang="zh-CN" lang="zh-CN" data-lang="zh">简体中文</a></li>
<li><a href="../../zh-tw/tailscale/" hreflang="zh-TW" lang="zh-TW" data-lang="zh-tw">繁體中文(台灣)</a></li>
<li><a href="../../zh-hk/tailscale/" hreflang="zh-HK" lang="zh-HK" data-lang="zh-hk">繁體中文(香港)</a></li>
<li><a href="../../en/tailscale/" hreflang="en" lang="en" data-lang="en">English</a></li>
<li><a href="../../ja/tailscale/" hreflang="ja" lang="ja" data-lang="ja" aria-current="page">日本語</a></li>
</ul>
</details>
</nav>
</div>
</header>
<main id="main">
<section class="hero guide-hero">
<div class="wrap">
<p class="crumb"><a href="../../ja/">PasteFerry</a> / <a href="../../ja/start/#server">接続方法</a></p>
<h1 class="display">Tailscale でネットワークをまたぐ</h1>
<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="#pair">ペアリング</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">同じ LAN にあるように</h2>
<p class="intro">Tailscale はデバイスをひとつのプライベートネットワークにまとめるツールです。同じアカウントでサインインしたデバイスには、100 で始まる固定のアドレスが割り当てられ、実際にどのネットワークにいてもそのアドレスで互いに届きます。PasteFerry はペアリング時に相手のこのアドレスを覚え、あとは同じネットワークにいるのと同じように直接つながります。</p>
<figure class="diagram">
<svg viewBox="0 0 960 330" role="img" aria-labelledby="ts-title ts-desc">
<title id="ts-title">Tailscale で使う PasteFerry</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>電源を入れたままのコンピューターも要りません。2 台が起動していて Tailscale につながっていれば同期します。</li>
<li><strong>アドレスの入力は一度だけ。</strong>Tailscale のアドレスは変わらないので、ペアリング時に一度入力すれば、あとは 2 台が自動でお互いを見つけます。</li>
<li><strong>二重の暗号化。</strong>Tailscale の WireGuard トンネルの中を、PasteFerry 自身のエンドツーエンド暗号化接続が通ります。Tailscale にも内容は見えません。</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>Tailscale のアカウント</dt><dd>個人利用は無料で、Google、Microsoft、GitHub、Apple のアカウントでサインインできます。すべてのデバイスで同じアカウントを使います。</dd></div>
<div><dt>すべてのコンピューターに Tailscale</dt><dd>Windows、macOS、Linux 用のクライアントがあります。PasteFerry を使うコンピューターすべてに入れ、接続したままにします。</dd></div>
<div><dt>PasteFerry を入れておく</dt><dd>各コンピューターにアプリを入れ、バックグラウンド同期を有効にしておきます(<a href="../../ja/start/#app">はじめかた</a>)。サーバーのアドレスは空欄のままで大丈夫です。</dd></div>
<div><dt>ZeroTier でも可</dt><dd>各デバイスに固定の仮想アドレスを割り当てるツールなら同じ手順で使えます。ペアリング時にそのアドレスを入力します。ここでは Tailscale を例にします。</dd></div>
</dl>
</div>
</section>
<section class="section" id="join" aria-labelledby="join-title">
<div class="wrap">
<p class="eyebrow">ステップ 1</p>
<h2 id="join-title">各コンピューターに Tailscale を入れる</h2>
<p class="intro">同期するコンピューターすべてに入れて、同じアカウントでサインインします。</p>
<div class="os-grid qs-grid">
<div class="os-steps">
<ol class="steps">
<li>Tailscale の公式サイトから OS に合ったクライアントをダウンロードしてインストールします。<span class="aside">Linux では <code>curl -fsSL https://tailscale.com/install.sh | sh</code> を実行してから <code>sudo tailscale up</code> を実行し、表示されたリンクを開いてサインインします。</span></li>
<li>Tailscale を開いてサインインします。すべてのコンピューターで同じアカウントを使います。</li>
<li>サインインすると、Tailscale の管理画面にすべてのデバイスが並び、それぞれに 100 で始まるアドレスが付いています。</li>
</ol>
<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 の管理画面のデバイス一覧(イメージ):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><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>
</table>
</figure>
</div>
</div>
<div class="server-notes">
<h3>Tailscale をつないだままにする</h3>
<ul class="points">
<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>
</section>
<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">ペアリングするもう一台で、Tailscale のアイコン(Mac はメニューバー、Windows は通知領域)をクリックすると、メニューにこのデバイスのアドレスが表示されます。ターミナルで <code>tailscale ip -4</code> を実行しても分かります。</p>
<div class="address-term">
<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">></span> tailscale ip -4
<span class="t-url">100.92.41.17</span></pre>
</figure>
</div>
<p class="note">ここでは自宅の Windows の <code>100.92.41.17</code> を例にします。ご自分のアドレスに読み替えてください。</p>
</div>
</section>
<section class="section" id="pair" aria-labelledby="pair-title">
<div class="wrap">
<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>自宅の Windows で「デバイス」を開き、「デバイスを追加」をクリックして、6 桁のコードを控えます。</li>
<li>会社の Mac で「デバイスを追加」をクリックし、「コードを入力」に切り替えて入力します。続けて「別のサブネットにありますか?」をクリックし、<code>100.92.41.17</code> を入力して「続ける」をクリックします。</li>
<li>両方の画面に同じ 2 行の指紋が表示されたら、照合して確定します。これで 2 台はどこにいても同期します。</li>
</ol>
</div>
<figure class="shot">
<img src="../../assets/screenshots/ja/pairing-join-ts-dark.png?v=98b6936e13" width="2112" height="1472" loading="lazy" alt="コードを入力:コード K7MP2X を入力し、アドレス欄に Tailscale のアドレス 100.92.41.17 が入っている">
</figure>
</div>
<p class="note">2 台とも自宅にいるときは、PasteFerry が LAN の中で直接相手を見つけるので、データが遠回りすることはありません。</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>PasteFerry の「直接接続」は、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>tailscale ping 相手のアドレス</code> を実行し、応答があれば再度試してください。</p><p>ping は通るのに見つからないなら、相手のファイアウォールが止めている可能性が高いです。相手が Windows なら PasteFerry の「設定 → 接続」で「許可」をクリック、Mac なら「システム設定 → プライバシーとセキュリティ → ローカルネットワーク」で PasteFerry Daemon をオンにします。</p></div>
</details>
<details>
<summary>すべてのコンピューターに Tailscale が必要ですか?</summary>
<div class="answer"><p>はい。入っていないコンピューターは 100 で始まるアドレスに届きません。同じネットワークにある 2 台なら不要です(<a href="../../ja/lan/">同じネットワークでの手順</a>)。</p></div>
</details>
<details>
<summary>以前の手順で自宅にサーバーを置きました。まだ必要?</summary>
<div class="answer"><p>もう要りません。各コンピューターの「設定 → 接続」でサーバーのアドレスを消し、自宅のコンピューターからサーバーをアンインストールしてください。ペアリング済みのデバイスはそのままです。残しておいても問題はなく、サーバーと Tailscale は併用できます。</p></div>
</details>
<details>
<summary>Tailscale にコピーした内容は見えますか?</summary>
<div class="answer"><p>見えません。Tailscale の接続は WireGuard でエンドツーエンド暗号化され、その中を PasteFerry 自身の DTLS 暗号化接続が通ります。どちらの層も開けるのは 2 台のコンピューターだけです。Tailscale のサーバーが扱うのはデバイスの公開鍵とアドレスだけで、中継サーバーも暗号化されたパケットを転送するだけです。</p></div>
</details>
<details>
<summary>Tailscale のアドレスは変わりますか?</summary>
<div class="answer"><p>通常は変わりません。アドレスはデバイスに付いていて、再起動やネットワークの変更でも同じです。デバイスを Tailscale から削除して追加し直したときだけ変わります。変わったときは、「デバイス」でそのデバイスのアドレスをもう一度入力します。</p></div>
</details>
<details>
<summary>公開サーバーがあります。Tailscale は必要?</summary>
<div class="answer"><p>不要です。グローバル IP を持つマシンにサーバーを置き、すべてのコンピューターにそのアドレスを入力してください(<a href="../../ja/cloud/">公開サーバーでの手順</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="../../ja/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>PasteFerry をダウンロード</a>
</div>
<p class="note">バージョン 2.10.1、無料・オープンソース。macOS 13 以降、Windows 10・11、Linux(x64 と ARM64)。 Android 9以降。スマホはWeb版も利用可能。</p>
<a class="source" href="../../ja/lan/">同じネットワークでの手順に戻る</a>
</div>
</section>
</main>
<footer class="footer">
<div class="wrap">
<p>PasteFerry は 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="../../ja/privacy/">プライバシー</a>
<a href="../../ja/feedback/">ディスカッションとフィードバック</a>
</nav>
<nav aria-label="言語">
<a href="../../tailscale/" hreflang="zh-CN" lang="zh-CN" data-lang="zh">简体中文</a>
<a href="../../zh-tw/tailscale/" hreflang="zh-TW" lang="zh-TW" data-lang="zh-tw">繁體中文(台灣)</a>
<a href="../../zh-hk/tailscale/" hreflang="zh-HK" lang="zh-HK" data-lang="zh-hk">繁體中文(香港)</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" aria-current="page">日本語</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>