Enumerating Network Adapters
olivier.parisy at free.fr
Wed Sep 1 16:14:06 CEST 2004
Dave Brueck wrote:
> Elbert Lev wrote:
>>>> It returned the least useful of my 3 IP addresses - my loopback
>>>> adapter - but didn't return my LAN and wireless IPs.
>> Interesting! I have Python installed on 10 W2K servers and I'm using
>> the same construct to get addresses. Works fine for me.
> WinXP Pro here - I wonder if that's the difference.
Interestingly, I have the same problem with XP Pro.
But socket.gethostbyname_ex seems to do the trick for me !
More information about the Python-list