如何在网络中查找所有系统IP地址。 [英] How to find all System ip address in a network.

查看:112
本文介绍了如何在网络中查找所有系统IP地址。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须在c#.net中找到所有系统IP地址及其名称。并告诉我解除C#中任何网络的命令。

I have to find all system ip address and their names in c# .net. and also tell me the command to dismiss any network in C#.

推荐答案

只需 ping 所有技术上可能的地址本地网络并分析其结果。请注意,某些计算机可能配置为不应答ping请求 - 但结果与不存在的IP地址不同。
Just ping all technically possible addresses of the local network and analyse its results. Note that some machine may be configured not to answer a ping request - but the result is different from a non-existing IP address.


请参见此处:检索局域网的IP和MAC地址 [ ^ ] - 您可以获取机器详细信息包括来自IP地址的主机名和 Dns.GetHostEntry [< a href =http://msdn.microsoft.com/en-us/library/ms143997(v=vs.110).aspx\"target =_ blanktitle =New Window> ^ ]方法。
See here: Retrieving IP and MAC addresses for a LAN[^] - you can get the machine details including hostname from the IP address with the Dns.GetHostEntry[^] method.


请查看这篇文章

如何获取机器的IP地址 [ ^ ]
Please check this article
How To Get IP Address Of A Machine[^]


这篇关于如何在网络中查找所有系统IP地址。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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