File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Divith Shetty
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9214
9
Linux Mac OS X Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Divith Shetty
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic