Skip to content

Run a LAN chat room without internet

About 7 minutes · Updated 2026-11-28 · Open LAN chat alongside

The Cylora companion runs a chat room on your local network. Everyone on the same Wi-Fi or wired network can join from a browser, and it keeps working with the internet disconnected.

Before you start

You need Node.js 18 or newer on the machine that hosts the room, and a copy of the Cylora repository. Other devices only need a browser.

1.Start the companion on the host

npm run companion -- --room "Launch war room"

It binds to your private LAN address (not 0.0.0.0), also listens on 127.0.0.1 for the host console, and prints a room code and invite link such as http://192.168.1.20:47615/#room=…&code=…. Run node companion/cli.mjs --list-interfaces to choose a different network with --bind.

2.Allow the port through the firewall

On Windows, allow Node.js on Private networks when prompted, or run in an administrator PowerShell:

New-NetFirewallRule -DisplayName "Cylora companion" -Direction Inbound -Protocol TCP -LocalPort 47615 -Profile Private -Action Allow

macOS asks to allow incoming connections for node. On Linux with ufw: sudo ufw allow from 192.168.1.0/24 to any port 47615 proto tcp.

3.Join from other devices

Open the invite link, or type the host's address and port into a browser, choose the room, enter the 6-digit code and your name. If discovery is blocked on your network, the manual address always works. The host console at http://127.0.0.1:47615 shows codes, invite links and members, and can rotate the code or remove someone.

Chat room with messages, a reply and connection status

4.Talk and link work

Press Enter to send and Shift+Enter for a new line. Reply to a message to quote it. Task keys like LAUNCH-13 become chips; inside Cylora's LAN chat page, Link work sends a link to a task in your project. Unread counts appear next to each room.

5.When the connection drops

The status line changes to “Connection lost — reconnecting”. Messages you send meanwhile wait in the outbox. When the device reconnects it receives the messages it missed, in order, and the outbox sends once — the host ignores duplicates.

6.Where messages are stored

Rooms and messages are saved on the host in ~/.cylora-companion (one JSON Lines file per room). Use --ephemeral to keep them in memory only or --data to choose a folder. Back up that folder to keep history.

7.Limits

  • Traffic is plain HTTP on the local network; use it on networks you trust.
  • Only IPv4 clients on the bound subnet (and the host itself) can connect.
  • A browser page served over https (such as cylora.dev) cannot connect to a LAN http address; use the companion's own page, or run Cylora locally with npm run dev.
  • Supported hosts: Windows, macOS and Linux with Node.js 18+. Clients: any modern browser.

Next guide: Troubleshooting