How do I determine all of my IP addresses when I have multiple NICs?
Posted
by Wilson Fowlie
on Stack Overflow
See other posts from Stack Overflow
or by Wilson Fowlie
Published on 2008-11-06T23:20:28Z
Indexed on
2010/04/26
22:33 UTC
Read the original article
Hit count: 208
I have multiple Network Interface Cards on my computer, each with its own IP address.
When I use gethostbyname(gethostname())
from Python's (built-in) socket
module, it will only return one of them. How do I get the others?
© Stack Overflow or respective owner