Skip to main content

DEFAULT_HTTP_PORT

Constant DEFAULT_HTTP_PORT 

Source
pub const DEFAULT_HTTP_PORT: u16 = 7881;
Expand description

Default TCP port for tcode serve --http when --port is omitted.

Why: the trusty-* family reserves a block of fixed local ports so operators/tooling can find a daemon without a discovery file (trusty-memory 7070, trusty-search 7878, trusty-analyze 7879, trusty-review 7880). 7881 is the next free port in that sequence. Pass --port 0 to bind an OS-assigned ephemeral port instead (e.g. for tests or running multiple instances side by side); the real bound port is always logged to stderr regardless of which is used. What: 7881. Test: default_http_port_is_documented_value.