[CentralOH] Local IP Address in Python

Mark Erbaugh mark at microenh.com
Wed May 18 14:08:15 CEST 2011


Is there a Python library function to determine the IP address or addresses of the local machine?  I'm looking for something that provides the information similar to what is displayed when you run ifconfig (Posix) or ipconfig (Windows)?

Thanks,
Mark

Yes, I realize I could run ip / ifconfig in a shell, but I'm looking for something else.


More information about the CentralOH mailing list