my dog learned polymorphism*
The moose likes Performance and the fly likes How to find all the computers in my VLAN using java efficiently  Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Performance
Bookmark "How to find all the computers in my VLAN using java efficiently  " Watch "How to find all the computers in my VLAN using java efficiently  " New topic
Author

How to find all the computers in my VLAN using java efficiently

Divith Shetty
Greenhorn

Joined: Mar 17, 2008
Posts: 9
I am trying to develop a small application. Which is used to seach a given file in the VLAN. I thought of pinging all the IP's in my VLAN. But it takes a long time. Can anyone help me to come out of this problem.

Thanks in advance
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8971
    
    9

You are trying to identify a file by pinging?
There are ways for applications or devices to identify themselves on a network (Jini comes to mind). Just pinging away at every IP is frowned upon by network security folks because the same technique is used by hackers to examine a network.
Even if you identified a node by pinging, you won't have access to the files on that computer without some service on the client which granted you access (ftp, http, smb, some custom protocol).
Exactly what are you trying to do?


[How To Ask Questions On JavaRanch]
Divith Shetty
Greenhorn

Joined: Mar 17, 2008
Posts: 9
My computer is in some VLAN. I want to develop a small application which should be able to list all the computer in my VLAN. I tried "net view", but that was of no use since it displays all the computers in my LAN not VLAN,and most of those computers will not be accessible. So if i get the list of computers in my VLAN i can write a small code which will search for a shared folder in all the computer in the VLAN.
'nmap' command is incompatible with xp SP2, otherwise that could have been the solution i think
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to find all the computers in my VLAN using java efficiently