def get_ip():
    nics = netifaces.interfaces()
    addrs = netifaces.ifaddresses(nics[1])
    worker_ip = addrs[netifaces.AF_INET][0]['addr']
    return worker_ip
get worker ip addrs
dataset/ETHPy150Open idumpling/robotx/robotx/utils/misc.py/get_ip