File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Sockets and Internet Protocols and the fly likes how to detect all machines connected (via LAN ) to a single machine? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "how to detect all machines connected (via LAN ) to a single machine?" Watch "how to detect all machines connected (via LAN ) to a single machine?" New topic
Author

how to detect all machines connected (via LAN ) to a single machine?

Arthy Vijayaraghavan
Greenhorn

Joined: Feb 28, 2006
Posts: 2
hello everybody,
is there any way in java by which a system can automatically detect all the other systems connected to it via LAN?


Arthy V
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41627
    
  55
What do you mean by "connected"? Reachable by TCP/IP? You can do a port scan on every IP address on your (and other) subnets, but be aware that this may be frowned upon by system administrators, not to mention the owners/users of those machines.


Ping & DNS - my free Android networking tools app
Arthy Vijayaraghavan
Greenhorn

Joined: Feb 28, 2006
Posts: 2
s i meant TCP/IP. and thanks for the reply..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to detect all machines connected (via LAN ) to a single machine?