How to get local IP address of Windows system?

心已入冬 提交于 2020-01-24 02:06:33

问题


Is there any code or method to get the IP addresses of the local system?


回答1:


To enumerate local IP addresses, use the Win32 API GetAdaptersInfo() (supports IPv4 only) or GetAdaptersAddresses() (supports IPv4 and IPv6) function. C/C++ examples are included in their documentation.



来源:https://stackoverflow.com/questions/37902643/how-to-get-local-ip-address-of-windows-system

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