[jcifs] WINS setting being ignored

Michael B Allen mba2000 at ioplex.com
Fri Jun 18 02:02:04 GMT 2004


Michael Kerley said:
>> Yes. User error :)
>
> I *think* I'm doing it right, but maybe you can see something I did wrong.

Ahh, yes. This is a broadcast query but it's for the MSBROWSE name -- the
master browser which is necessary to retrieve the list of workgroups when
you use the "smb://" URL. The ONLY way to lookup the master browser is
with this special type of broadcast query on a NetBIOS over TCP network.
WINS does not maintain this information. On non-NetBIOS networks the
workgroup list is retrived by RPC or LDAP I'm not sure how exactly but
jCIFS doesn't support either method (yet).

> Jun 18 05:37:20.417 - nbt name service packet sent
> Exception in thread "main" jcifs.smb.SmbException: Unknown host:
> ..__MSBROWSE__.<01>
>          at jcifs.smb.SmbFile.connect0(SmbFile.java:552)
>          at jcifs.smb.SmbFile.list(SmbFile.java:1149)
>          at List.main(List.java:24)

Mike


More information about the jcifs mailing list