[Ilugc] Scanning a network for live hosts

  • From: codeshepherd@xxxxxxxxx (Deepan Chakravarthy)
  • Date: Sat Aug 12 01:13:49 2006

On Fri, 2006-08-11 at 18:57 +0100, amit saha wrote:

 I want a code which will scan the network to which my host is
 connected for all the live hosts.For eg.My ip is 198.58.50.1 (Say) wid
 the Net ID as 198.58.0.0.What I would like to do is scan the complete
 network for currently live hosts.(from 198.58.xx.xx to 198.58.yy.yy)
 
 Any idea how to do this from my program without takin the help of the
 ping or nmap source code?

Any help is appreciated!

nmap -sP 10.*.*.*  
will tell you all machines up in 10.x.x.x network. It will take a long
time though. 
You can also ping to broadcast ip.
Thanks
Deepan
www.codeshepherd.com

Amit Saha
Student,Programmer
  Department of Computing & Informatics
  Haldia Institute of technology
  Haldia
  http://amitsaha.in.googlepages.com
  +91 9903140286
   
   

                              
---------------------------------
 Here's a new way to find what you're looking for - Yahoo! Answers 
Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it 
NOW
_______________________________________________
To unsubscribe, email ilugc-request@xxxxxxxxxxxxx with 
"unsubscribe <password> <address>"
in the subject or body of the message.  
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Other related posts: