jcifs smb smbexception failed to connect 0.0 0.0 00

Problem Description: When you try to access shared folders created on Windows machine using java based program you may encounter an error Failed to connect hostname/IP Address or if you try to connect the shared folder with IP address the error could be Failed to connect 0.0.0.0<00>

Solution: The issue occurs because JAVA program makes call to Windows machine to access the shared folders using SMB V1/CIFS file sharing protocol and if that feature isn’t installed on Windows machine then Java will throw an error.

Resolution: To resolve the issue just install the SMB V1/CIFS file sharing on Windows machine.

Go to control Panel and then Program and Features. Click on Turn on Windows Feature on or Off

Then enable Features SMB V1/CIFS Client and SMB V1/CIFS Server

Please note a reboot is needed to complete the installation of features.

Leave a Reply

Your email address will not be published. Required fields are marked *

72 + = 75