cant connect: sockettimeoutexception

Samba/CIFS client for android.
Post Reply
tcarlyle
Posts: 2
Joined: Sun Jul 14, 2013 11:44 am
AntiSpam sum: 8

cant connect: sockettimeoutexception

Post by tcarlyle »

When I try to connect to my samba server through AndSMB I get the message:

Failed to connect: 0.0.0.0<00>/192.168.1.200 jcifs.e.a.d
java.net.SocketTimeoutException: failed to connect to /192.168.1.200(port 445)

On the android client side, I am using anonymous login and I have tryed using both the ip address of the samba server in the hostname field and the hostname itself. It is perhaps worth mentioning that I cant connect using other similar android applications (AndroXplorer, ES File Explorer)

On the server side, I have the following configuration http://pastebin.com/V0BRW3vK and I can access it through windows, ubuntu and even through my playstation =D But not with my android device.

Is there something I need to do in the android device beforehand in order to connect to the network drive?

support
Posts: 853
Joined: Sun Apr 20, 2008 4:40 pm

Re: cant connect: sockettimeoutexception

Post by support »

Could you make sure port 445 is opened on the server/firewall?

tcarlyle
Posts: 2
Joined: Sun Jul 14, 2013 11:44 am
AntiSpam sum: 8

Re: cant connect: sockettimeoutexception

Post by tcarlyle »

Thanks, it was something related to the ports. I had some conflicting rules on my firewall which I think it was allowing just TCP and on ipv4 local ips on the 445 port, and denying the rest. After I solved my conflicts it worked

support
Posts: 853
Joined: Sun Apr 20, 2008 4:40 pm

Re: cant connect: sockettimeoutexception

Post by support »

Great !

Post Reply