def METHOD_NAME():
    pyver = "{}.{}.{}".format(sys.version_info.major, sys.version_info.minor,
                              sys.version_info.micro)
    try:
        use_port = int(os.getenv("SPYTEST_SCAPY_INST_PORT", str(default_port)))
    except Exception:
        use_port = default_port
    logger.info("Python: %s", pyver)
    logger.info("NS = %s PORT = %d", str(use_ns), use_port)
    os.environ["PYRO_DETAILED_TRACEBACK"] = "1"
    for _ in range(10):
        try:
            port = use_port or next_free_port()
            host = get_ip_address('mgmt', None, True)
            if not host:
                host = get_ip_address('eth0', None, True)
            if host:
                logger.info("Creating Deamon %s:%d", str(host), port)
                custom_daemon = CustomDaemon(host=host, port=port)
            else:
                logger.info("Creating Deamon %d", port)
                custom_daemon = CustomDaemon(port=port)
            break
        except Exception as exp:
            logger.exception(exp)
            custom_daemon = None
            time.sleep(2)
    if use_ns:
        startNameServer("0.0.0.0")
    web_server()
    logger.info("PYRO ScapyService started: %s", custom_daemon)
    Pyro4.Daemon.serveSimple(
        {
            PyRoScapyService: "scapy-tgen"
        },
        ns=use_ns, daemon=custom_daemon, verbose=True)