<div dir="ltr"><div>I found the problem. The encoding was not set to UTF8 and that's why name couldn't be resolved.</div>
<div>I added the following line:</div>
<div>System.setProperty( "jcifs.encoding", "UTF8" );<br></div>
<div>And now all works fine. Tx.<br></div>
<div class="gmail_quote">On Mon, Jan 25, 2010 at 1:28 AM, Michael B Allen <span dir="ltr"><<a href="mailto:ioplex@gmail.com">ioplex@gmail.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div class="im">On Sun, Jan 24, 2010 at 3:53 AM, Ori <<a href="mailto:oorrii@gmail.com">oorrii@gmail.com</a>> wrote:<br>><br>> Hello,<br>><br>> I want to connect to a cifs server using server ip. Something like:<br>
><br>> new SmbFile("smb://<a href="http://1.2.3.4/Share/" target="_blank">1.2.3.4/Share/</a>", authentication);<br>><br>> (It works when I send the host name - smb://server/share)<br>><br>> Is there a way to do it? Thanks.<br>
<br></div>Hi Ori,<br><br>An IP should work fine. In fact I test JCIFS with IP before each<br>release. I think this will trigger a Node Status Request which is<br>probably some logic that should be removed at this point but I don't<br>
think it should cause any trouble. If you are getting an error, you<br>should post a stack trace, log, etc ...<br>
<div>
<div></div>
<div class="h5"><br>Mike<br><br>--<br>Michael B Allen<br>Java Active Directory Integration<br><a href="http://www.ioplex.com/" target="_blank">http://www.ioplex.com/</a><br></div></div></blockquote></div><br></div>