#1 2016-09-16 13:52:04

azzertymod
Member
Registered: 2016-09-16
Posts: 1

mORMot, Internet-facing load balancer, IPv6

On a 'Windows Server' hosted by Amazon (EC2), we have a running mORMot Server (written in Delphi). Because Apple requires all new apps to support IPv6 network communications, we had to add an Internet-facing load balancer to route traffic from the Internet to our EC2.

Since we added the load balancer, our Client app (written in Delphi) is no longer able to connect to EC2. Our 'GetClient' function always raises the exception.

function GetClient(const aServerAddress: string; aServerPort: integer; const aServerRoot: string; aHttps: boolean): TSQLRestClientHTTP;
begin
  result := TSQLRestClientHTTP.Create(aServerAddress,aServerPort, GetModel(aServerRoot),true,aHttps); // aOwnModel=true
  try
    if (not result.Connect) or (result.ServerTimeStamp=0) then
      raise ERestException.CreateFmt('Impossible to connect to %s:%d server',  [aServerAddress,aServerPort]);
  except
    result.Free;
    raise;
  end;
end;

Not being very knowledgeable about networks, I am not sure what to do next. Has anybody encountered the same type of problem and found a solution. Your help would be greatly appreciated. Thanks.

Last edited by azzertymod (2016-09-16 13:53:30)

Offline

Board footer

Powered by FluxBB