Solved

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

Posted on 2004-08-13
7
197 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

708 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

17 Experts available now in Live!

Get 1:1 Help Now