LOGGER.debug(f"proxy.externalIP set to {external_ip}")
else:
print("proxy.externalIP not set, attempting to autodetect IP")
external_ip = get_external_ip()
lan_ip = get_lan_ip()
timeout_secs = config.get_option("proxy.waitForConnectionSecs")
if external_ip is None and lan_ip is None:
print("Did not auto detect external ip. Please go to "
f"{HELP_DOC} for debugging hints.")
return
external_url = get_report_url(external_ip, port, quoted_name)
lan_url = get_report_url(lan_ip, port, quoted_name)
print("=============================================================")
print("Open one of the URLs below in your browser within %s seconds."
% timeout_secs)
print("External URL:", external_url)
print("Internal URL:", lan_url)
print("=============================================================")
def _launch_web_client(name):