Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
This could be an non programming question , but i need some tips on improving on my code . I have written network discovery code which discovers the hosts on the network as per the flow chart. I usually use ping to check whether the host is discoverable or not . If the ping is disabled on the host machine side the device will not be discoverable . Please let me know the correct ways to do a network scan .

The flow chart is present at the below link.

<img src="http://i.imgur.com/SCoxesR.png" title="Hosted by imgur.com" />
Posted
Comments
The_Inventor 18-Jul-13 0:58am    
You need to remember that you are looking at a network in real time and output a flow chart to show their relationships, or if they were there before and are not now then what? If the device is longer connected to the network, for whatever reason, Ping.exe won't help. You won't ever see it, until you goto the physical device, and check its connections, and put it back on the same group or node or whatever network term you use.
singh_iitb 27-Jul-13 3:58am    
if ping port is disable then try arp command. arp return MAC address of corresponding IP address. Its mean that particular host is alive.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900