File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes network ip's scannnig Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "network ip Watch "network ip New topic

network ip's scannnig

moutaz salahat

Joined: Jul 06, 2005
Posts: 9
anybody knows how can i scan the network to find the available ip's on it
Stefan Wagner
Ranch Hand

Joined: Jun 02, 2003
Posts: 1923

I guess that's not possible.

Of course you may iterate over all possible IPs, and ping them, but often firewalls drop icmp-echo-requests.
No answer isn't guaranteed to mean 'IP unused'.

If your network is the internet (it often is, isn't it?), and you would try to get every IP - what a fun for young people hanging around...

Why do you need it?
Stuart Gray
Ranch Hand

Joined: Apr 21, 2005
Posts: 410 there are problems of machines being turned off at that particular time, but which may still use a given IP.

Even if your network is using a DHCP server, I don't think there is a way to find out the available addresses - just a way to be assigned a new one.
David O'Meara

Joined: Mar 06, 2001
Posts: 13459

... and (as I found out the hard way) it shows up as a port scan on any intrusion detection systems
I agree. Here's the link:
subject: network ip's scannnig
It's not a secret anymore!