• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Trying to get a list of SAMBA hosts on my network

 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Bartender
Posts: 5167
11
Netbeans IDE Opera Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic