Skip to content

Host

host

Defines host network helpers for the launcher

The frontend container builds a self-signed TLS certificate for the host's LAN IPv4 at runtime, so the launcher must resolve and pass that address through as HOST_LAN_IP

get_host_lan_ip()

Resolves the host's primary LAN IPv4 address

Opens a throw-away UDP socket toward a public address to discover which local interface the OS would route through. No packets are sent

Returns:

Type Description
str

The primary LAN IPv4 address, or 127.0.0.1 if it cannot be resolved