Android Question FTP explicit time out

koffie

Member
Licensed User
Longtime User
Hi,

I am on a shared server from hostnet and try to reach it with a small app. With Filezilla, FTP implicit is not working, but FTP explicit works flawless, after clicking away the " Server's certificate is unknown" warning.

With B4A 11.80 and NET 1.81 I use the following code:

FTP Explicit:
Dim ftps As FTP
Dim ctm As CustomTrustManager

ftps.Initialize("ftps","prod.hostnet.nl",21,"username","password")
ftps.PassiveMode = True
ftps.UseSSLExplicit = True
ctm.InitializeAcceptAll
ftps.SetCustomSSLTrustManager(ctm)
ftps.List("/_httpdocs")

WITH the UseSSLexplicit=True I get a timeout and FTPS_listcompleted gives a success=false. Deleting UseSSLexplicit=True gives a success=true after about two seconds.

What am i doing wrong. Is it a problem with the certificate ?
 
Top