i set the server into listen after a button click.
if me click connect from "client" the server show a connect but the client stay in status disconnected.
the client get a connection reset in LastException
B4X:
'client.Initialize("client")
client.InitializeSSL("client",Null,"") '< my try
i just need a simple encryption for data transport because the connection i will make from phone via internet connection.
i will send "type" data between a desktop app and android app.
You can also use InitializeSSLAcceptAll method to accept all certificates automatically. This method is less secure and should be mainly used for testing.
hmm the b4j version did not have InitializeSSLAcceptAll
me tested the network between b4j and b4j desktop app first.
my end constellation should be
windows app connected to linux app (its the same app act as client or server)
android app connected to windows/linux app
i put it here by mistake (sorry ) but the b4x examples was in b4a.
currently my ssl problem is related to b4j at pc.
i attached my test project. i make the jar in release then i started it 2x at pc, in one app i click the start listen button. then i try to send a message.
after searching here in forum maybe i will switch my project into WebSockets.