<div dir="ltr"><div>I found the problem. The encoding was not set to UTF8 and that&#39;s why name couldn&#39;t be resolved.</div>
<div>I added the following line:</div>
<div>System.setProperty( &quot;jcifs.encoding&quot;, &quot;UTF8&quot; );<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">&lt;<a href="mailto:ioplex@gmail.com">ioplex@gmail.com</a>&gt;</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 &lt;<a href="mailto:oorrii@gmail.com">oorrii@gmail.com</a>&gt; wrote:<br>&gt;<br>&gt; Hello,<br>&gt;<br>&gt; I want to connect to a cifs server using server ip. Something like:<br>
&gt;<br>&gt; new SmbFile(&quot;smb://<a href="http://1.2.3.4/Share/" target="_blank">1.2.3.4/Share/</a>&quot;, authentication);<br>&gt;<br>&gt; (It works when I send the host name - smb://server/share)<br>&gt;<br>&gt; 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&#39;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>