Solved

To get the IP Addresses of all the system in the network

Posted on 2004-08-13
7
198 Views
Last Modified: 2010-03-31
Hi
  I want to get the IP addresses of all the systems in the network. I tried this program by net package but did n't succeed
 
if u know any site from which i can get this program  or any help u know then i will really appreciate u
thanx a lot
Dinesh
0
Comment
Question by:econcepts
7 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 11792562
0
 
LVL 14

Expert Comment

by:sudhakar_koundinya
ID: 11792652
no CEHJ,

That returns the ip addresses of particular host

  say some thing like getAllByName("experts-exchange.com");
0
 
LVL 4

Accepted Solution

by:
astorer earned 50 total points
ID: 11792762
This surely is not possible.
Actually it depends what you mean by the network.  If you are connected to the internet, then the "network" consists of several million machines - you probably don't want that (and not possible anyway).

If you mean your local network, then you want to find the DNS used to identify your network machines - you may be able to connect to that using JNDI and do a simple search.
0
 
LVL 3

Expert Comment

by:pulupul
ID: 11792941
Do you really need all the adresses? you can send a packet to all the computers in a network by sending to the broadcast address. This is an special IP adress that means "everybody in a network".
If you really want all the POSSIBLE IPs in a network, you can deduce them from the IP of the interface, and the netmask, by appling a some bit-wise operations. If this is really what you want, tell me and I'll tell you the exact way.
And finally, if you want to know what computers in the network are up & running, you should use a network scanner, which what basically does is get all the possible IPs in a network as I mentioned earlier, and then try one by one to see which ones are up.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

929 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now