Open mvysny opened 3 years ago
Calling .withDfsEnabled(true)
unfortunately did not help.
Hi mvysny, I'm running into the same issue as the developer of zhanghai/MaterialFiles when adding SMB support. I saw you've resolved this issue in mvysny/photocloud-frame-slideshow#141, so I was wondering if you could share with me what was your solution to this? Currently I'm thinking of using codelibs/jcifs to resolve the NetBIOS hostname before sending it to SMBJ, but not sure if this would be a good solution.
@zhanghai unfortunately I haven't solved this yet - the users must enter an IP address in order to connect. The jcifs solution looks like a great suggestion though! However I wonder whether there are any netbios java client libraries... :thinking: quick google for 'java netbios' shows that everyone seems to be using jcifs.
I see, thanks anyway! I'll explore using jcifs for name resolution.
Hello, thank you so much for your excellent library.
Unfortunately the samba-proprietary/netbios name resolving doesn't seem to be supported by SMBJ.
In my network I use mdns which is supported by Linux but doesn't seem to be supported by Android. A couple of commands and their output:
You can see that the router itself doesn't provide any DNS services and therefore
mycloud
normycloud.local
is not resolvable via direct DNS query; howeverping mycloud.local
works since it resolves the name via mdns; browsing the samba servermycloud
also works since samba client resolves themycloud
host name via Samba host lookup.However, SMBJ doesn't seem to be supporting the lookup and will simply fail with: