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

Michael B Allen mba2000 at ioplex.com
Mon Apr 10 05:24:35 GMT 2006

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@ 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.


More information about the jcifs mailing list