如何在vc ++中从网络中连接的所有系统中获取ip [英] how to fetch ip from all system connected in network in vc++
本文介绍了如何在vc ++中从网络中连接的所有系统中获取ip的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想获取网络中所有系统的IP。例如我的办公室网络连接5个。我想要每台连接电脑的IP
Hi, I want to fetch IP of all system which are there in networks. For Example my office network connected with 5 pc. i want IP of each connected pc
推荐答案
看看如下:
GetAdaptersAddresses [ ^ ]
GetAdaptersInfo [ ^ ]
这里有一个类似的问题。 [ ^ ]
希望他们帮忙。否则会有一些窗口套接字api会为你做这个。
have a look at following :
GetAdaptersAddresses[^]
GetAdaptersInfo[^]
a similar question here .[^]
hope they help. Otherwise there will be some window socket api which will do this for you.
这篇关于如何在vc ++中从网络中连接的所有系统中获取ip的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文