[jcifs] connect to jcifs using ip address

Ori oorrii at gmail.com
Thu Jan 28 00:03:35 MST 2010


I found the problem. The encoding was not set to UTF8 and that's why name
couldn't be resolved.
I added the following line:
System.setProperty( "jcifs.encoding", "UTF8" );
And now all works fine. Tx.
On Mon, Jan 25, 2010 at 1:28 AM, Michael B Allen <ioplex at gmail.com> wrote:

> On Sun, Jan 24, 2010 at 3:53 AM, Ori <oorrii at gmail.com> wrote:
> >
> > Hello,
> >
> > I want to connect to a cifs server using server ip. Something like:
> >
> > new SmbFile("smb://1.2.3.4/Share/", authentication);
> >
> > (It works when I send the host name - smb://server/share)
> >
> > Is there a way to do it? Thanks.
>
> Hi Ori,
>
> An IP should work fine. In fact I test JCIFS with IP before each
> release. I think this will trigger a Node Status Request which is
> probably some logic that should be removed at this point but I don't
> think it should cause any trouble. If you are getting an error, you
> should post a stack trace, log, etc ...
>
> Mike
>
> --
> Michael B Allen
> Java Active Directory Integration
> http://www.ioplex.com/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.samba.org/pipermail/jcifs/attachments/20100128/a9d5fac5/attachment.html>


More information about the jCIFS mailing list