title: How to find out Windows network interface name in Python?
body: <p>Windows command <code>netsh interface show interface</code> shows all network connections and their names. A name could be <code>Wireless Network Connection</code>, <code>Local Area Network</code> or <code>Ethernet</code> etc.</p>
  
  <p>I would like to change an IP address with <code>netsh interface ip set address "Wireless Network Connection" static 192.168.1.3 255.255.255.0 192.168.1.1 1</code> with Python script, but I need a network interface name. </p>
  
  <p>Is it possible to have this information like we can have a hostname with <code>socket.gethostname()</code>? Or I can change an IP address with Python in other way?</p>