获取本地主机IP地址的最简单的C ++代码是什么? [英] What is the simplest C++ code to get the localhost's IP address?

查看:281
本文介绍了获取本地主机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 [ ^ ].


这篇关于获取本地主机IP地址的最简单的C ++代码是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆