What is the most efficient way to get all of the external ip address of a machine with multiple nics, using python? I understand that an external server is neeeded (I have o
Get address of all NICs without any external package
import socket print socket.gethostbyname_ex(socket.gethostname())[2]