S-SCOTTEK← HomepageNewsGuidesBuyingTeamForumSupportlog in · sign up
self-hosting 2026-11-23

Piik Server Setup: Your Own Watch-Together Site on Ubuntu

This guide is a companion to the video Piik Server Setup: Your Own Watch-Together Site on Ubuntu, which is the starting point for the install below. Watch the video first for the walkthrough, then use this page for the exact commands, the expected outputs, and the honest limits.

What Piik is

In the video, the presenter sets up Piik, a free and open-source screen-sharing server for private watch parties: you share your screen and friends watch in any browser, with no accounts and no cloud in the middle. Added research from the project page: the code is MIT licensed, and version v2.8.0 was published 2026-11-21 (the release page carries the pinned piik-81b4f27-runtime.tar.gz archive used here). This guide follows the documented Private LAN without a domain path on Ubuntu 24.04 x86-64. The video's sandbox test ran every step below on a throwaway Ubuntu 24.04 container and destroyed it afterwards; I have not re-run these commands here, so treat them as video-verified rather than independently re-tested.

Before you start

In the video, the prerequisites are a 64-bit Ubuntu 24.04 machine with internet access and sudo, about 60 MB of free disk space, your server's LAN address, and two reachable LAN ports: TCP 8787 for the site and UDP 3478 for connection setup. No account, no domain, and no paid service are needed. Replace 192.168.2.125 in every command below with your own server's LAN address.

Prerequisites card: 64-bit Ubuntu 24.04 with internet and sudo, about 60 MB of disk, the server LAN address, TCP port 8787 plus UDP port 3478 open, and no account, domain, or paid service
Prerequisites card: 64-bit Ubuntu 24.04 with internet and sudo, about 60 MB of disk, the server LAN address, TCP port 8787 plus UDP port 3478 open, and no account, domain, or paid service (Still from the walkthrough video.)

Step 1 - download and extract the runtime

In the video, the install starts with the two prerequisites tools, then downloads the pinned v2.8.0 archive from the official release page and extracts it:

Added research: the archive is about 15 MB and extracts to four files, LICENSE, REVISION, THIRD-PARTY-NOTICES.txt, and the piik-server binary itself. The video pins this exact revision rather than tracking latest, so a future release cannot silently change what you installed. The terminal frames in the video recreate this real sandbox run rather than showing a live capture.

Step 2 - write the LAN config and check it

In the video, the server reads a .env file, so the next step creates /opt/piik/.env with LAN mode: production mode, listen on all interfaces, port 8787, the public base URL set to your server's own address, self-signed TLS on, and connection setup pointed at your server too:

Then ./piik-server --check-config answers config=ok, which is the video's proof the config parses before anything is started as a service.

LAN-mode config file with production mode, all-interfaces listen, port 8787, the server LAN address as public base URL, self-signed TLS on, and connection setup pointed at the same server, with the check command answering config equals ok
LAN-mode config file with production mode, all-interfaces listen, port 8787, the server LAN address as public base URL, self-signed TLS on, and connection setup pointed at the same server, with the check command answering config equals ok (Still from the walkthrough video.)

Step 3 - run it as a service and verify health

In the video, persistence comes from one systemd unit at /etc/systemd/system/piik.service pointing at /opt/piik/piik-server with Restart=on-failure, then:

The expected answers are active and {"status":"ok"}. Added research from the sandbox notes: the server also holds TCP 0.0.0.0:8787 and UDP 0.0.0.0:3478 listeners, and there is no --version flag, so the version is proven through the REVISION file and the startup log instead. This step writes to system directories and opens ports, so confirm you are on your own machine before running it.

Step 4 - open the site and accept the certificate once

In the video, opening https:// plus your server address plus :8787 in any browser on your network shows the Piik room screen. Your browser warns about the self-signed certificate, which is expected with no domain: compare the certificate fingerprint shown by the browser with the one in the server log, and only then accept it once.

Piik web UI running from the test server on port 8787, with the self-signed certificate accepted once after comparing fingerprints
Piik web UI running from the test server on port 8787, with the self-signed certificate accepted once after comparing fingerprints (Still from the walkthrough video.)

Step 5 - prove the server issues rooms

In the video, the final proof is one API call that creates a real room, stored in SQLite on your own box. Note the Origin header is required; without it the server answers Origin not allowed, which is its cross-site protection working:

The response carries a room code and an invite link. Friends on your network open the link and watch. If your LAN uses a firewall, the video's close covers the example rules sudo ufw allow 8787/tcp and sudo ufw allow 3478/udp.

Limits and next steps

Be honest about what this path does not prove. Media travels directly between viewers, so everyone needs a working UDP path, and the video did not exercise live sharing with two real clients. An idle room showing a not-connected state is the expected no-session signal, not a fault. For use beyond your LAN, add a domain with real HTTPS instead of the self-signed certificate; the self-hosting docs and the first-room guide are the next reads. If media serving is your lane, the companion Jellyfin 12 self-host guide covers your own streaming library next.

Watch the walkthrough

Watch on YouTube