This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread 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


Win a copy of Android Security Essentials Live Lessons this week in the Android 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: 41137
    
  45
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..
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to detect all machines connected (via LAN ) to a single machine?
 
Similar Threads
IP address of my computer
how to get system information(like ram size,OS,OS version) using ip address in java
LAN ID from the servlet
how to get ip addresses of clients under LAN