hierynomus / smbj

Server Message Block (SMB2, SMB3) implementation in Java
Other
713 stars 180 forks source link

Scan local network for SMB servers #558

Open zhanghai opened 4 years ago

zhanghai commented 4 years ago

Thanks for creating this library! I'm working on SMB support in an open-source Android file manager called Material Files, and planning to support showing SMB servers available in the local network to help users setup their connection more easily.

I saw that in jcifs, one can use (new SmbFile("smb://")).listFiles() to list the available workgroups/servers (mailing list thread, javadoc). Is there anything similar in this library? I search for things like netbios or nbt in this repo, but didn't find anything.

CSAapps commented 2 years ago

Did you find a solutions for this ?

kaushikramabhotla commented 2 years ago

Yes, there is a way to do that:

I am able to do that in this way, but there is an issue, more details here - >https://github.com/hierynomus/smbj/issues/734#issue-1363135977

tdtran commented 2 years ago

@kaushikramabhotla : the link you posted doesn't work. Please check.