Docs›Reference›Ports and firewall
Ports and firewall
An Emergic computer takes connections from the office network on three ports only. Everything else listens on 127.0.0.1, so only the computer itself can reach it.
Every port#
| Port | Program | Listens on | Used by |
|---|---|---|---|
| 7702/TCP | Office server | All addresses | The office's computers: joining, heartbeats, model downloads, the app API through each relay. Mutual TLS |
| 5353/UDP | Office server | All addresses | Finding the office on the local network |
| 7710–7729/TCP | Computer agent | All addresses | The office server only, over mutual TLS: questions to answer, and searches on the search computer |
| 7700/TCP | Office server | 127.0.0.1 | The app and the admin console on the office server itself |
| 7701–7720/TCP | Computer agent | 127.0.0.1 | The app on the same computer: pause, resume, status |
| A free port | Relay, model engine | 127.0.0.1 | The app and the agent on the same computer |
Windows#
The office service adds firewall rules that allow 7702/TCP and 5353/UDP into the office server and 7710–7729/TCP into the agent from the local subnet, and block every other inbound port of Emergic's programs. The rules apply on every network profile, because Windows often classes an office network as Public.
Mac#
The macOS Application Firewall allows or blocks a program, not a port. The model engine and SearXNG need no entry, because they listen on 127.0.0.1. Stealth mode works with Emergic.
Check a computer#
From a terminal, emergic-node ports lists what Emergic listens on, and exits with status 1 if a port that should stay on 127.0.0.1 faces the network.