Scanning for Gateway beacons over mDNS and wide-area DNS-SD. Part of the apus gateway reference.

Discover gateways (Bonjour)

gateway discover scans for Gateway beacons (_apus-gw._tcp).

Only gateways with Bonjour discovery enabled (default) advertise the beacon.

TXT hints on every beacon: role (gateway role hint), transport (transport hint, e.g. gateway), gatewayPort (WebSocket port, usually 18789), tailnetDns (MagicDNS hostname, when available), gatewayTls / gatewayTlsSha256 (TLS enabled + cert fingerprint). sshPort and cliPath are published only in full discovery mode (discovery.mdns.mode: "full"; default is "minimal", which omits them — clients then default SSH targets to port 22).

gateway discover

apus gateway discover

Per-command timeout (browse/resolve).

--json boolean

Machine-readable output (also disables styling/spinner).

Examples:

apus gateway discover --timeout 4000
apus gateway discover --json | jq '.beacons[].wsUrl'