I think the question says it all. I want a way to discover the ip address of the local interfaces in python.
I have seen lots of variants on this question (such as this one, but it seems that none of them quite cover ALL of the bases. (the one I cite, for instance, asks how to find "the" local IP address, not all of them).
To sum up the requirements:
- I want it to be reliably cross platform
- I want it to require NO additional libraries (I know about netifaces, for instance)
- I want it to discover ALL of the local interfaces, not just some
- No packets should have to be sent out of any interface.
That's being a bit demanding, I realize :-). The point is this is a common question that comes up in a variety of situations, and there should, IMHO, be a "copy and paste" solution (i.e. a snippet I can put in my code to provide this functionality cross platform).
EDIT
For reference, there's also this question, which presumes the sending of packets.