问题
I have a solution using WMI, unfortunately only on Windows Vista and above. On WinXP/2003 WMI will only return IPv4 adresses. Is there any way to get all assigned addresses including IPv6 ones on WinXP?
Adt: No .NET, just WMI or WinAPI please.
回答1:
Well, after some more hours of googling, I finally found GetAdaptersAddresses() in the MSDN library.
Sometimes you just use the wrong search terms it seems.
来源:https://stackoverflow.com/questions/3214653/get-all-ipv6-addresses-on-all-interfaces-windows