Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can i get SmbFiles without username and password #143

Open
ghost opened this issue Dec 15, 2018 · 1 comment
Open

How can i get SmbFiles without username and password #143

ghost opened this issue Dec 15, 2018 · 1 comment

Comments

@ghost
Copy link

ghost commented Dec 15, 2018

How can i get SmbFiles without username and password, My pc has no password

@ghost
Copy link
Author

ghost commented Dec 15, 2018

 final Connection smbConnection = smbClient.connect("192.168.1.105");
 final AuthenticationContext smbAuthenticationContext = new AuthenticationContext("", "".toCharArray(), "");
final Session session = smbConnection.authenticate(smbAuthenticationContext);
 final RPCTransport transport = SMBTransportFactories.SRVSVC.getTransport(session);

I tryed to do like this but not working ,,,,,,,,

连接失败````java.net.ConnectException: failed to connect to /192.168.1.105 (port 445) from /192.168.1.112 (port 48855) after 5000ms: isConnected failed: ECONNREFUSED (Connection refused)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants