Android Question FTP Net library

rafaelcamara

Member
Licensed User
Longtime User
I´m facing a problem to use a FTP library. I want to do a connection using the FTP library but without give any information about port number.

My application works integrated with windows application using INET. If the windows application execute a remote access the B4A application can´t get "connection success" without close the windows application. Just for information, the windows applications that I have I never had to inform any port number.

How to do a FTP connection using B4A without any port information. If I try to write the FTP.Initialize sintaxe I must always inform the port number? Is there any option? There is another library?


Thanks in advance
Rafael Câmara
 

rafaelcamara

Member
Licensed User
Longtime User
Normally port 21 is reserved for FTP or 22 for sFTP. Did you give it a try?

Yes, I am using port 21 to connect through b4a application, but If i connect through Windows aplication I can not provide the connection again with b4a aplication while Windows aplication is connected. I am Just informing port number using b4a application. Windows I can connect without port information.

Basically i want to do both connections in the same time.
 
Upvote 0

rafaelcamara

Member
Licensed User
Longtime User
Normally port 21 is reserved for FTP or 22 for sFTP. Did you give it a try?

In my B4A aplication i am using port 21 , but when my windows aplication does a connection , the B4A aplication not make a connection until close windows aplication, my windows aplication don't informe remote port
 
Upvote 0

KMatle

Expert
Licensed User
Longtime User
As I know FTP doesn't support multiple connections. But you can handle that. Just upload/Download what you need and then immediately close the connection. In the case that you can't connect, just wait (with a timer) and try to connect later.

Maybe it's better to use HttpUtils to do what you need. With it you can transfer files and data parallel with the .net application. I use php on the server side. Browse the forum how to do that or maybe you want to use MySQL to store the data or even Google Clud Messaging to exchange data messages.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…