[jcifs] RE: NetBIOS adapter status request

Michael B. Allen miallen at eskimo.com
Sat Feb 1 07:47:31 EST 2003


On Fri, 31 Jan 2003 07:33:11 -0500
"Glass, Eric" <eric.glass at capitalone.com> wrote:

> Sorry, I hit the send button a bit too quickly.
> 
> > -----Original Message-----
> > From: Glass, Eric 
> > Sent: Friday, January 31, 2003 7:27 AM
> > To: 'jcifs at lists.samba.org'
> > Subject: NetBIOS adapter status request
> > 
> > 
> > Hello,
> > 
> > I was messing around with NbtAddress.getMacAddress() -- I 
> > noticed that it seemed to work only in the case that the host 
> > was running the "Server" service

Well the "Server" service is the SMB server which is also the NBT server
so yes, that does need to be running.

> (had a <20> entry, I think). 

I don't think it has anything to do with what the type is.

> >  Otherwise, I would get:
> > 
> > Exception in thread "main" java.net.UnknownHostException: no 
> > name with type 0x00
> >  with no scope for host 10.60.38.202
> >         at 
> > jcifs.netbios.NbtAddress.getAllByAddress(NbtAddress.java:523)
> >         at nbttest.main(nbttest.java:10)

This is what you get when jCIFS just doesn't get an answer. There may
be a host that will answer if you provided a different type (hex code,
e.g. 0x20) or scope or a different IP but no one is answering with those
parameters thus the UnknownHostException.

> > 
> > running "nbtstat -a host"
> > 
> 
> To continue, running "nbtstat -a host" shows two entries of type <00>, a
> "unique" entry for the hostname and a "group" entry for the domain.  I can
> connect to several other boxes just fine, and the common thread seems to be
> that all working hosts have a <20> entry (running the file sharing service).
> Is this a jCIFS limitation?  Is nbtstat doing something different to
> successfully connect to the hosts without sharing enabled?

I'd need a packet capture to be able to tell. Capture a nbtstat -a
working and jCIFS failing and look at the difference. I've never had a
problem stating NT 4.0. Maybe it's a W2K or XP thing?

Mike

-- 
A  program should be written to model the concepts of the task it
performs rather than the physical world or a process because this
maximizes  the  potential  for it to be applied to tasks that are
conceptually  similar and, more important, to tasks that have not
yet been conceived. 


More information about the jcifs mailing list