开发者

Get all IPv6 addresses on all interfaces (Windows)

开发者 https://www.devze.com 2023-01-06 11:08 出处:网络
I have a solution using WMI, unfortunately only on Windows Vista and above. On WinXP/2003 WMI will only return IPv4 adresses. Is t开发者_如何学运维here any way to get all assigned addresses including

I have a solution using WMI, unfortunately only on Windows Vista and above. On WinXP/2003 WMI will only return IPv4 adresses. Is t开发者_如何学运维here any way to get all assigned addresses including IPv6 ones on WinXP?

Adt: No .NET, just WMI or WinAPI please.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消