Get the IP address of WIFI interface

Far.Runner far.runner at gmail.com
Sat May 14 01:09:24 EDT 2011


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

OS: Windows or Linux

F.R
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20110513/89b9a68e/attachment.html>


More information about the Python-list mailing list