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="en">
<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>Use PasteFerry on one network: no server, just pair</title>
<meta name="description" content="When your computers share a Wi‑Fi or wired network, PasteFerry 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://pasteferry.cc/en/lan/">
<link rel="alternate" hreflang="zh-CN" href="https://pasteferry.cc/lan/">
<link rel="alternate" hreflang="zh-TW" href="https://pasteferry.cc/zh-tw/lan/">
<link rel="alternate" hreflang="zh-HK" href="https://pasteferry.cc/zh-hk/lan/">
<link rel="alternate" hreflang="en" href="https://pasteferry.cc/en/lan/">
<link rel="alternate" hreflang="ja" href="https://pasteferry.cc/ja/lan/">
<meta name="theme-color" content="#141416">
<meta property="og:type" content="article">
<meta property="og:site_name" content="PasteFerry">
<meta property="og:title" content="Use PasteFerry on one network: no server, just pair">
<meta property="og:description" content="When your computers share a Wi‑Fi or wired network, PasteFerry 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://pasteferry.cc/en/lan/">
<meta property="og:image" content="https://pasteferry.cc/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?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">Skip to content</a>
<header class="bar">
<div class="wrap">
<a class="brand" href="../../en/" aria-label="PasteFerry home"><img src="../../assets/icon.svg?v=65a69999e0" alt="" width="26" height="26">PasteFerry</a>
<nav aria-label="Page">
<a href="../../en/features/">Features</a>
<a class="mid" href="../../en/start/">Quick start</a>
<a class="wide" href="../../en/start/#server" aria-current="true">Ways to connect</a>
<a href="../../en/download/">Download</a>
<details class="menu">
<summary aria-label="More pages"><span>More</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="../../en/start/">Quick start</a></li>
<li class="narrow"><a href="../../en/start/#server">Ways to connect</a></li>
<li><a href="../../en/themes/">Themes guide</a></li>
<li><a href="../../en/how/">How it works</a></li>
<li><a href="../../en/security/">Security</a></li>
<li><a href="../../en/faq/">FAQ</a></li>
<li><a href="../../en/feedback/">Discussion & feedback</a></li>
<li class="sep" role="separator"></li>
<li><a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">Changelog</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="Star PasteFerry on GitHub"><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="Language:English"><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>English</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="../../lan/" hreflang="zh-CN" lang="zh-CN" data-lang="zh">简体中文</a></li>
<li><a href="../../zh-tw/lan/" hreflang="zh-TW" lang="zh-TW" data-lang="zh-tw">繁體中文(台灣)</a></li>
<li><a href="../../zh-hk/lan/" hreflang="zh-HK" lang="zh-HK" data-lang="zh-hk">繁體中文(香港)</a></li>
<li><a href="../../en/lan/" hreflang="en" lang="en" data-lang="en" aria-current="page">English</a></li>
<li><a href="../../ja/lan/" 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="../../en/">PasteFerry</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">PasteFerry 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 PasteFerry</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 PasteFerry</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. Its name is added only while Search nearby is open.</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 PasteFerry may get through the firewall; allow it. If you clicked Cancel, click Allow under Settings → Connection in PasteFerry, 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 PasteFerry Daemon may find devices on your local network; allow it. If you declined, turn it on in System Settings → Privacy & Security → Local Network.</dd></div>
<div><dt>No server address</dt><dd>Leave the server field in Settings → Connection empty. To sync across networks later, turn on Service; 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 any 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?v=0f0a9ff3bc" 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?v=f3e8ad175d" width="2112" height="1472" loading="lazy" alt="Add device: the pairing code K7MP2X, with this computer's address 192.168.1.20 below it">
</figure>
</div>
<div class="os-grid qs-grid">
<div class="qs-app">
<h3>Without a code: Search nearby</h3>
<ol class="steps">
<li>On both computers, open Devices and click Search nearby. Only while this window is open can devices on the network see this computer's name.</li>
<li>When the other one shows up on the radar, click it. Both screens show the same two fingerprint lines; check them, then confirm on each.</li>
<li>This works within one subnet only. If the other computer doesn't show up, use a pairing code as above.</li>
</ol>
</div>
<figure class="shot">
<img src="../../assets/screenshots/en/nearby-dark.png?v=1fee32bdae" width="2112" height="1472" loading="lazy" alt="Nearby devices: this computer in the middle, with Design PC and Meeting room iMac around it, plus the already paired MacBook Air">
</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?v=489545092a" 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 → Connection; on a Mac, make sure PasteFerry Daemon is on under System Settings → Privacy & 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. To sync across networks, turn on <a href="../../en/official/">Service</a>, or use a <a href="../../en/cloud/">public server</a> or <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 PasteFerry device is there, but not whose: the broadcast carries an anonymous token that changes daily, with no device name or ID. The name is added only while you have Search nearby open, and removed when you close it. 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="../../en/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 PasteFerry</a>
</div>
<p class="note">Version 2.10.1, free and open source. macOS 13 or later; Windows 10 and 11; Linux (x64 and ARM64). Android 9 or later; phones can also use the web page.</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>PasteFerry is open source under the GNU AGPL-3.0.</p>
<nav aria-label="Footer">
<a href="https://github.com/baiyuze/pasteferry/releases">All releases</a>
<a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">Changelog</a>
<a href="https://pasteferry.cc/design/nat-traversal.html">Design notes (Chinese)</a>
<a href="https://github.com/baiyuze/pasteferry/blob/main/LICENSING.md">License</a>
<a href="https://github.com/baiyuze/pasteferry/issues">Report an issue</a>
<a href="../../en/privacy/">Privacy</a>
<a href="../../en/feedback/">Discussion & feedback</a>
</nav>
<nav aria-label="Language">
<a href="../../lan/" hreflang="zh-CN" lang="zh-CN" data-lang="zh">简体中文</a>
<a href="../../zh-tw/lan/" hreflang="zh-TW" lang="zh-TW" data-lang="zh-tw">繁體中文(台灣)</a>
<a href="../../zh-hk/lan/" hreflang="zh-HK" lang="zh-HK" data-lang="zh-hk">繁體中文(香港)</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?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>