Network
The flags and environment variables that set these are in the CLI reference. A server shared with other people is set up in Run a Shared Server.
| Port | Protocol | Use | Set with |
|---|---|---|---|
5555 | TCP, WebSocket (ws://, no TLS) | Clients: VSCode, terminal views | --port; VSCode: resonon.server.port |
5556 | UDP multicast, group 239.255.82.78 | Discovery beacon | Fixed |
The server binds 127.0.0.1 for this machine only by default. Use --host to bind another
address, such as 0.0.0.0 for every interface. When it is ready it prints:
[server] Listening on 127.0.0.1:5555The language server opens no port; it talks to VSCode over stdio.
Discovery
Section titled “Discovery”Loopback-only binds send no beacon. Network-bound servers send the following beacon:
| Fact | Value |
|---|---|
| Sent | Once a second, on the loopback interface: only views and editors on the same machine receive it |
| Content | JSON: service ("resonon"), ws_port, name |
name | --name, or the machine’s host name |
| Listeners | The terminal views’ connect screen and VSCode’s Servers view, on loopback and the default interface |
| Removed from the list | 6 s after the last beacon in a terminal view; 4 s in VSCode, for a server not connected |
A server that discovery does not reach is added by address: Add Server… in VSCode, the address
field of the connect screen, or --host and --port.
Trust and access
Section titled “Trust and access”The loopback default limits direct network exposure; local programs remain trusted. Any program
that can connect can control the session. Explicit network binding provides no authentication or
encryption (ws://, not TLS). Loopback binding does not provide browser-origin protection.
Connection
Section titled “Connection”The server pings every client every 30 seconds. VSCode tries to reconnect 3 times after the connection drops; a terminal view returns to its connect screen.