[jcifs] connect to jcifs using ip address

Michael B Allen ioplex at gmail.com
Sun Jan 24 16:28:39 MST 2010


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/


More information about the jCIFS mailing list