B4J Question invalid IPv6 adress

rboeck

Well-Known Member
Licensed User
Longtime User
Hi, currently i try to create a B4J app with ftp transfer. This transfer is currently possible with filezilla, but i want to automate it.
The ftp server uses ftps. adress and implicite TLS/SSL.
What steps are needed to make the connection in B4J.

All my examples end with
java.net.UnknownHostException: ftps://xxx.xxx.xxx.xxx: invalid IPv6 address"

I will pay 20 € donation for the right tipp!
 

rboeck

Well-Known Member
Licensed User
Longtime User
I have disabled IPv6 protocol in adapter configurtation, but the message is the same. I believe, that this error message is missleading...
 
Upvote 0

giga

Well-Known Member
Licensed User
Longtime User
I have disabled IPv6 protocol in adapter configurtation, but the message is the same. I believe, that this error message is missleading...

Is this the complete error?
java.net.UnknownHostException: ftps://xxx.xxx.xxx.xxx: invalid IPv6 address"

If not can you paste it of course without the IP address?
 
Upvote 0

rboeck

Well-Known Member
Licensed User
Longtime User
I have tried many combinations of UseSSL, UseSSLExplicit and PassiveMode, i also disabled ipv6 on the lan adapter.
B4X:
    FTP.Initialize("FTP", "ftps://prod.exite.at", 990, "$GXX", "XXXXXXXXXXXXXXX")
    FTP.PassiveMode=False
    FTP.UseSSL = True
    FTP.UseSSLExplicit =True
 
    ssltrustmanager.InitializeAcceptAll
    FTP.SetCustomSSLTrustManager(ssltrustmanager)
 
    SendFile("CReceive24092015.htm")

The first thing i have to do is to send a file to the server, then i get back my data.
If needed, i can send you the real username and password with pm.
Thanks,
Reinhard
 
Upvote 0
Top