From bd3aed67b496938951dfe13021613718a817e36c Mon Sep 17 00:00:00 2001 From: Valentin Haudiquet Date: Sat, 28 Nov 2026 01:17:12 +0100 Subject: [PATCH] docs: describe a local-network run --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index a62da11..9ffd201 100644 --- a/README.md +++ b/README.md @@ -59,6 +59,13 @@ create the first account. The server log also prints a one-time setup link, in case someone already opened the app before the database existed. +For a local-network test, bind `0.0.0.0:7800` and set +`TOGETHER_PUBLIC_URL` to the machine's LAN address, for example +`http://10.4.1.222:7800`. Invite links and cookies then use that +address. Preview hosts need a name that resolves from the other device; +`TOGETHER_PREVIEW_ORIGIN=http://preview.10.4.1.222.nip.io:7800` works +when the network can reach a public DNS resolver. + During client development, run `pnpm dev` in `web/` (port 3000) and keep the server on port 7800; the Nuxt dev proxy forwards `/api`, including the terminal WebSocket.