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#

PortProgramListens onUsed by
7702/TCPOffice serverAll addressesThe office's computers: joining, heartbeats, model downloads, the app API through each relay. Mutual TLS
5353/UDPOffice serverAll addressesFinding the office on the local network
7710–7729/TCPComputer agentAll addressesThe office server only, over mutual TLS: questions to answer, and searches on the search computer
7700/TCPOffice server127.0.0.1The app and the admin console on the office server itself
7701–7720/TCPComputer agent127.0.0.1The app on the same computer: pause, resume, status
A free portRelay, model engine127.0.0.1The 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.