Locating computer on subnet/network

淺唱寂寞╮ 提交于 2019-12-12 01:34:49

问题


Here is situation: I have special device that I can communicate via ethernet. It's connected to my computer via ethernet cable and the problem is that these devices are changed from time to time and they have different IP addresses. They always start 192.168. and the rest might be different. Device answers to IMCP (ping). Right now we have a list of IPs and we ping them to find device. We always know that there is only two devices on this network (this special device and laptop).

So I am looking for a solution which would find the computers on 192.168.255.255 subnet and according that I would reconfigure interfaces, bring them down/up and after that I could connect to device. How you have to manually configure the stuff.

Ideas how to locate computers under this subnet? I know that you can do broadcast ping, like: ping 192.168.1.255 But it doesn't work for 192.168.255.255

I could use nmap, but that would probably would take time, something like: nmap -n -sP 192.168.0.0/24

But I also already have to be on subnet 192.168.255.255 as I understand.

I am looking for why how to configure everything and find all machines on this very small local network with only two machines.

Thanks, -david


回答1:


You could try pinging the global broadcast address - 255.255.255.255.



来源:https://stackoverflow.com/questions/4798177/locating-computer-on-subnet-network

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!