?
Solved

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

Posted on 2004-08-13
7
Medium Priority
?
212 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 200 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Suggested Courses
Course of the Month13 days, 19 hours left to enroll

801 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