This week's book / license giveaways are in the JDBC and Relational Databases and Java in General forums.
We're giving away four copies each of PostGIS in Action and Java Advanced Topics Training and have the authors on-line!
See this thread and this one for details.
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


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
Rancher

Joined: Mar 22, 2005
Posts: 42955
    
  73
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.
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?