Peer-to-peer website hosting, explained

· Guides

Almost every website lives on a server in a data centre, or passes through one. Link Node does something different: it serves a site straight from the owner's own computer to each visitor's browser, peer-to-peer. Here is how that works, and what it is good and not so good for.

The problem: home computers are hidden

A home computer sits behind a router. The router shares one public address among every device in the house and, by default, lets no one from outside start a connection in. That is good for safety, and it is why hosting at home has traditionally meant port forwarding, a fixed IP or dynamic DNS, or giving up.

How Link Node gets through

Browsers already know how to connect directly to another computer behind a router: it is how video calls work. The technology is called WebRTC, and Link Node uses it to serve websites.

  1. Your computer runs Link Node, which keeps a small connection open to the Link service and has a permanent address such as https://58310427.mdoc.us.
  2. A visitor opens that address. The Link service sends their browser a small page, the same for every site, that starts a connection to your computer.
  3. The Link service passes a few setup messages between the two sides, the way a phone exchange connects a call. Your router lets the reply through because your computer started talking first. Where the router allows it, Link Node also asks it for a port mapping.
  4. The browser and your computer now talk directly over an encrypted link, and your pages, images and files travel along it. The browser also checks that the computer answering is really the one behind that address, using a key that never leaves your machine.

The Link service never sees your pages. It knows which addresses exist and which are online, and it introduces visitors to them. That's all.

How it compares

The honest limits

Who it is for

People who want their own place on the web without renting one: a homepage, a portfolio, a page for a club or a small business, a way to share files with friends. And anyone who likes the idea that their website lives with them. The core is open source, so you can read exactly what runs on your machine.

Try it: Link Node is free, with no account. Download it for Windows, Mac or Linux, or run the open-source command-line node on a Raspberry Pi.

Download Link Node