如何知道Intranet中所有系统都处于活动/打开状态

问题描述:

大家好



我想显示局域网中的所有系统都已打开..



egi想要在标签中显示系统名称



请告诉我们怎么做..



谢谢

Hi all

I want to display which all systems in a LAN is turned on..

e.g.i want to display the system names in labels

Please tell how to do it..

Thank you

这个:检索LAN的IP和MAC地址 [ ^ ]比您想要的更多 - 它检索IP和MAC地址,但您可以使用GetHostByAddress [ ^ ]从IP获取主机名。
This: Retrieving IP and MAC addresses for a LAN[^] does rather more than you want - it retrieves the IP and MAC addresses, but you can use GetHostByAddress[^] to get the host name from the IP.


您可以在计算机上安装nmap并让它来询问你的网络。有关它的信息可以在这里找到。



此工具将告诉您网络上的节点,MAC地址以及重新打开的端口。如果我的网络是192.168.1。*,我将使用的命令是



nmap -sP 192.168.1.0/24



扫描我的网络并报告其上的所有节点。
You can install nmap on your machine and get it to inquire about your network. Info about it can be found here.

This tool will tell you what nodes are on your network, their MAC address and what ports re open. If my network is 192.168.1.*, the command I would use is

nmap -sP 192.168.1.0/24

which scans my network and reports on all nodes on it.