[jcifs] connect to jcifs using ip address

Michael B Allen ioplex at gmail.com
Thu Jan 28 08:43:03 MST 2010


On Thu, Jan 28, 2010 at 2:03 AM, Ori <oorrii at gmail.com> wrote:
> 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.

No CIFS servers use UTF-8. If your server cannot do the standard
UTF-16LE, then the proper jcifs.encoding should be Cp850 but some JVMs
do not support that in which case ASCII should suffice.

Regardless, I still do not know what the problem is. I would need more
information like an error message, stack trace, log, etc.

Mike

> 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/
>
>



-- 
Michael B Allen
Java Active Directory Integration
http://www.ioplex.com/


More information about the jCIFS mailing list