• Post Reply Bookmark Topic Watch Topic
  • New Topic

Trying to get a list of SAMBA hosts on my network  RSS feed

 
Jordan Thompson
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have been looking high and low for a way to find a list of SAMBA hosts on a network. I have tried JCIF:



but it throws the following:



I did see that JCIFS depends on NETBIOS, so I made sure it was enabled.

I'm not stuck on using JCIFS to do this, but everywhere I look I am pointed back to JCIFS.

Any suggestions?
 
Jordan Thompson
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Lets try a different question:
How can I get a list of SAMBA severs on my network as a list of strings?
 
Jordan Thompson
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there no way to get a list of hosts on the network with Java? Am I asking in the wrong group?

thanks for any help you may be able to provide.
 
Jordan Thompson
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jordan Thompson wrote:Is there no way to get a list of hosts on the network with Java? Am I asking in the wrong group?

thanks for any help you may be able to provide.

Nobody?
 
Darryl Burke
Bartender
Posts: 5167
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Disclaimer: I haven't a clue what a SAMBA host is.

Is there a system command that lists the SAMBA hosts? If there is, you should be able to run a Process and read and parse it's output.

If this is an option, be sure to go through all sections of When Runtime.exec() won't before you even start coding.
 
Jordan Thompson
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Darryl Burke wrote:Disclaimer: I haven't a clue what a SAMBA host is.

Is there a system command that lists the SAMBA hosts? If there is, you should be able to run a Process and read and parse it's output.

If this is an option, be sure to go through all sections of When Runtime.exec() won't before you even start coding.

At first I wasn't sure how to respond, but then I re-read your post. Turns out that the command "net view" from a windows prompt will do the job. This is good enough for my needs.

thanks for your help.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!