Consolidate and document get_external_ip_addresses()