
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.
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.
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.

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:
sudo apt update && sudo apt install -y curl ca-certificatesmkdir -p /opt/piik && cd /opt/piikcurl -fsSLO https://github.com/TNTcraftHIM/Piik/releases/download/v2.8.0/piik-81b4f27-runtime.tar.gztar xzf piik-81b4f27-runtime.tar.gzAdded 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.
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:
PIIK_ENV=productionLISTEN_HOST=0.0.0.0PORT=8787PUBLIC_BASE_URL=https://192.168.2.125:8787TLS_SELF_SIGNED=trueSTUN_URLS=stun:192.168.2.125:3478Then ./piik-server --check-config answers config=ok, which is the video's proof the config parses before anything is started as a service.

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:
sudo systemctl daemon-reloadsudo systemctl enable --now piiksystemctl is-active piikcurl -sk https://127.0.0.1:8787/healthzThe 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.
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.

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:
curl -sk -X POST https://127.0.0.1:8787/api/rooms -H Origin:https://192.168.2.125:8787 -H 'Content-Type: application/json' -d '{"codeEntryPolicy":"open"}'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.
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.