#1 2017-06-02 04:21:03

AntonE
Member
Registered: 2012-02-03
Posts: 74

Delphi 10.2 Android FMX client "Impossible to connect..."

Hi, I'm trying to get Delphi 10.2 Multi-device to work with mORMot.
I run the Project14ServerHttpWrapper project, then extract the mORMotClient.pas file, create a multi-device application with one button that does:

procedure TForm1.Button1Click(Sender: TObject);
var C : TSQLRestClientHTTP;
begin
 C:=mORMotClient.GetClient('192.168.0.13','User','synopse',8888);
 ShowMessage(TTimeLogToIso8601(C.ServerTimeStamp));
end;

On Win32 it works 100% from a remote PC(so firewall is no issue), but on Android I get "Impossible to connect to 192.168.0.13:8888 server."

I do not have older Delphi that can compile for Android so I cannot test if it's a Delphi 10.2 issue or not.

What can I do to further narrow down the issue or do I need to do something else Android-specific (https?).

Thanks!

Edit: I might add that the server side is compiled on XE4 but with same version mORMot library.
I also compiled the sample by Peter Evens from here https://synopse.info/forum/viewtopic.php?id=3418 (server and client in Delphi10.2) and I get the same error an Android, Win32 works fine.

Last edited by AntonE (2017-06-02 05:06:28)

Offline

#2 2017-06-02 06:45:25

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,237
Website

Re: Delphi 10.2 Android FMX client "Impossible to connect..."

Can you ping the PC from android?

Are you using https?

Offline

#3 2017-06-02 11:52:29

AntonE
Member
Registered: 2012-02-03
Posts: 74

Re: Delphi 10.2 Android FMX client "Impossible to connect..."

Thank you,
my oversight,
the SSID my Android device was connecting to on my WiFi had Client-Isolation on, working fine now at least for a basic http connection.
Good bye datasnap for good!
AntonE

Offline

Board footer

Powered by FluxBB