[jcifs] Re: Question about SmbTransport.java, Performance improvement

Michael B Allen mba2000 at ioplex.com
Mon Apr 10 16:40:06 GMT 2006


Based on previous dialog I suspect you're on a home network with 1 or
2 machines on 1 subnet without WINS or DNS (for local machines). And
assuming you don't want to put names into an lmhosts file that pretty
much leaves only one option - BCAST.

Mike

On Mon, 10 Apr 2006 12:48:35 +0200
"Thomas Bley" <thomas.bley at simple-groupware.de> wrote:

> Yes I get name service query timeouts. My resolveOrder is lmhosts,dns.
> But WinXP has no WINS server and I think in Samba, WINS is not enabled
> by default, so do I always need it ?
> 
> Thanks and best regards,
> Thomas
> 
> On 4/10/06, Michael B Allen <mba2000 at ioplex.com> wrote:
> > On Mon, 10 Apr 2006 04:33:59 +0200
> > Thomas Bley <thomas.bley at simple-groupware.de> wrote:
> >
> > > Hi Mike,
> > >
> > > In SmbTransport.java there is in doConnect():
> > >         tconHostName = address.getHostName()
> > >
> > > I changed this to:
> > >         tconHostName = address.getHostAddress();
> > >
> > > Now connecting is (very) much faster, and I can even use
> > > smb://administrator:xxx@127.0.0.1/ as smb-url.
> > > (I tested Samba, WinXP, w2k3 and w2k3 as ad-controller)
> > >
> > > Are there any reasons why I need getHostName() ? Do I need it for NetBios ?
> >
> > I'm not sure how important it is but we do as Windows does so it
> > stays. As for it being faster I suspect you're just seeing name service
> > query timeouts because you don't have WINS. You could solve that by just
> > tweeking your resolveOrder.
> >
> > Mike
> >
> 


More information about the jcifs mailing list