[jcifs] determining the workgroup of a server
Michael B Allen
mba2000 at ioplex.com
Wed Dec 8 19:49:02 GMT 2004
On Wed, 8 Dec 2004 17:19:28 +0000 (UTC)
Francis Dobi <francisdobi at yahoo.com> wrote:
> I am using jcifs for my file manager, but it has a bug because
> I cannot determine the workgroup for a given server.
Why do you need to know the workgroup of a server?
> Is it possible to determine the workgroup of a server?
> If yes how?
Look for the 0x00 group name in the NbtAddress.getAllByAddress()
output. That does a node status. Note, this only works with NetBIOS hosts
(although jcifs only works with NetBIOS hosts period so...)
Mike
--
Greedo shoots first? Not in my Star Wars.
More information about the jcifs
mailing list