• Post Reply Bookmark Topic Watch Topic
  • New Topic

how should i get list object of machine which are in network

 
ganesh pol
Ranch Hand
Posts: 151
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how should i get list object of machine which are in network

can any one proivide me code
 
Mathias Nilsson
Ranch Hand
Posts: 367
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
platform?

Try using "net view" in command line on windows.
Parse the output to get the computers name.

// MAthias
 
Santhosh Kumar
Ranch Hand
Posts: 242
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Although Mathias Nilsson's suggestion would work out but I feel it would be better if you can write JNI wrapper to the Win32 function which would enumerate the network hosts. Guess getting the list of network host names should be as easy invoking an API.

Hope this helps.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!