def getIp(adapteridx):
    adapters = netifaces.interfaces()
    addrInfo = [netifaces.ifaddresses(a) for a in adapters]
    addrInfo = [filtre(info) for info in addrInfo]
    addrInfo = [info for info in addrInfo if (info is not None)]
    return addrInfo[(adapteridx % len(addrInfo))]
def getIp(adapteridx):
    adapters = netifaces.interfaces()
    addrInfo = [netifaces.ifaddresses(a) for a in adapters]
    addrInfo = [filtre(info) for info in addrInfo]
    addrInfo = [info for info in addrInfo if (info is not None)]
    return addrInfo[(adapteridx % len(addrInfo))]