I am building a python script in which I use the netifaces.interfaces() to get the available interfaces of the network. Then, I am using netifaces.ifaddre
netifaces.interfaces()
netifaces.ifaddre