Android Question I can't conect via wifi to send file

Sergio GermánRassino

Member
Licensed User
Hi. I'm trying to put this example to work, but no success

https://www.b4x.com/android/forum/t...nd-and-receive-files-with-asyncstreams.30493/

I get this error; "Error: (SocketTimeoutException) java.net.SocketTimeoutExeption failed to conect to/192.168.1.110 (port 21341) after 300000 ms"

The tutorial has a link to download a library, but it is broken.

Can you help me with this?

All I need for my project is to send a txt file by wifi, to another local network computer.

Thank you

Prof. Sergio Rassino
 

Sergio GermánRassino

Member
Licensed User
Thank you derez for your help.
Not the first time, but now I did it, due to your suggest, but no success.
I have only one router in my lan. I checked that all pc's and android devices see each other sending pings
What am I doing wrong?

Sergio
 
Upvote 0

Sergio GermánRassino

Member
Licensed User
Thanks Erel for your reply. Unfortunaly, I have no access to the target pc, so I can't install anything there.

I've been looking for alternatives. I found SMB library, and I've been testing it. It works grate when the target computer is configured to allow share without users account or passwords. But when I try to conect to a computer with not such configuration, it takes up to 2 minutes to upload or download a small txt file.

Is that correct? Is it the apropiate time to wait?

Thank you again
 
Upvote 0
Top