Get all IPv6 addresses on all interfaces (Windows)

你说的曾经没有我的故事 提交于 2019-12-08 13:11:35

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!