How to get the IP address of the wifi interface?

Jun Hu hujun.work at gmail.com
Sat May 14 01:40:01 EDT 2011


Hi python experts:
There are two network interfaces on my laptop, one is 100M Ethernet, the
other is wifi, both are connected and have IP addresses.
The question is: how to get the ip address of WIFI interface without parsing
the output of a shell command like "ipconfig" or "ifconfig"?

OS: Windows or Linux

H.J
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20110513/2b98c759/attachment.html>


More information about the Python-list mailing list