Skip to main content

network

Local network discovery helpers.

Deliberately free of any bitfount.federated import: the patient-data API (bitfount.patient_api.service) uses it, and must not import the federated package.

Module​

Functions​

get_private_ip_address​

def get_private_ip_address() ‑> str | None:

Get the private IP address of this machine, without raising.

Falls back to the last successfully-resolved address if the lookup fails, rather than reporting no address at all.

Returns None only if a lookup has never yet succeeded.