获取本地主机IP地址的最简单的C ++代码是什么?

问题描述:

我是需要编写C ++程序的C#开发人员...我需要一个简单/简短的C ++例程来获取localhost的IP地址.

在此先感谢!

I''m a C# developer needing to write a C++ program...I need a simple/short C++ routine to grab the IP address of the localhost.

Thanks in advance!

类似的内容经过了详细讨论,并在此处解决:
获取本地计算机的IP地址 [
Looks like this was discussed at length and resolved here:
Get the IP Address of local computer[^]
:thumbsup:


GetIpAddrTable [ ^ ].