<div dir="rtl"><div style="text-align:left" dir="ltr">Hi,</div><div style="text-align:left" dir="ltr">I try to get the smbTree list - (all computers in the lan ) by this code:</div><div style="text-align:left" dir="ltr"><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr"><span class="" style="white-space:pre">                        </span>SmbFile[] domains = (new SmbFile("smb://",a)).list();</div><div dir="ltr"><span class="" style="white-space:pre">                        </span>for (int i = 0; i < domains.length; i++) {</div><div dir="ltr"><span class="" style="white-space:pre">                          </span>SmbFile[] servers = domains[i].listFiles();</div><div dir="ltr"><span class="" style="white-space:pre">                            </span>for (int j = 0; j < servers.length; j++) {</div><div dir="ltr"><span class="" style="white-space:pre">                                  </span>System.out.println("\t" + servers[j].getPath());</div><div dir="ltr"><span class="" style="white-space:pre">                             </span>}</div><div dir="ltr"><span class="" style="white-space:pre">                      </span>}</div><div><span style="white-space:pre">When the domain is secured i get this exception:</span></div><div><span style="white-space:pre">jcifs.smb.SmbAuthException: Logon failure: unknown user name or bad password.
</span></div><div>The ubuntu terminal command - "smbtree" returns the list of all the computers in my lan.</div><div><br></div><div>Is there a way to get the computer's list with jcifs? </div></div></div>