Skip to content

Say that host_address and host_addresses exclude loopback - #561

Merged
lo-simon merged 1 commit into
sony:masterfrom
garethsb:docs/host-address-not-loopback
Dec 2, 2026
Merged

lo-simon merged 1 commit into
sony:masterfrom
garethsb:docs/host-address-not-loopback

Conversation

@garethsb

@garethsb garethsb commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

The example config.json files suggested "host_address": "127.0.0.1". Other hosts reach the registry or node at the host_address and host_addresses advertised in response headers and in the data model, so a loopback address is not useful there. web::hosts::experimental::host_interfaces() also skips loopback interfaces, so the default host_addresses never includes one, and nmos-cpp-node given 127.0.0.1 aborts initialization with "No network interface corresponding to host_address?".

This changes only comments, in nmos/settings.h and both example config.json files:

  • The host_address/host_addresses description ends "so not loopback addresses".
  • Each setting says what is used when it is omitted: the host's non-loopback addresses for host_addresses, and the first of those for host_address.
  • The examples use 192.0.2.1, a documentation address from RFC 5737.

Co-authored-by: Gareth's 🤖 buddy

The example config.json files suggested "host_address": "127.0.0.1",
but other hosts reach the registry or node at these addresses, and
web::hosts::experimental::host_interfaces() skips loopback interfaces,
so the default host_addresses never includes one. Given 127.0.0.1,
nmos-cpp-node aborts initialization with "No network interface
corresponding to host_address?".

Say that the addresses exclude loopback and how the defaults are
chosen, and use a documentation address (RFC 5737) in the examples.

Signed-off-by: Gareth Sylvester-Bradley <garethsb@nvidia.com>

@lo-simon lo-simon left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lo-simon
lo-simon merged commit 6cc9138 into sony:master Dec 2, 2026
12 checks passed
@garethsb
garethsb deleted the docs/host-address-not-loopback branch December 2, 2026 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants