Mega Search
23.2 Million


Sign Up

Make a donation  
Delphi XE2, datasnap "Socket error 10061 connection refused"  
News Group: embarcadero.public.delphi.database.multi-tier

I cannot get it a datasnap application to work when
a server app is installed on another Windows computer.
It works fine on the when both client and server run on
the same system. I have opened the port I am using
in the Firewall on both computers.
Any ideas?

Thank you,
Andre

Vote for best question.
Score: 0  # Vote:  0
Date Posted: 23-Nov-2012, at 11:56 PM EST
From: Andrzej Brzezinski
 
Re: Delphi XE2, datasnap "Socket error 10061 connection refu  
News Group: embarcadero.public.delphi.database.multi-tier
Hi Bob,

Your message got me on the right track - I was setting Params
dynamically and I used 'Host' instead of 'HostName'.

But now, I am getting a different error :
"Socket error 10060, connection timeout.'

I am using tcp/ip protocol and telnet is able to connect to
the port I am using. I have copied libeay32.dll and ssleay32.dll
files to the datasnap server app folder.

Thank you,
Andre

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 25-Nov-2012, at 1:21 AM EST
From: Andrzej Brzezinski
 
Re: Delphi XE2, datasnap "Socket error 10061 connection refu  
News Group: embarcadero.public.delphi.database.multi-tier
It took me a while to find out that Filters on the client
must be listed in reverse order compared to Filters
on the server. Finally, everything seems to work now.

Thank you,
Andre

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 26-Nov-2012, at 12:49 PM EST
From: Andrzej Brzezinski