Delphi XE2, datasnap "Socket error 10061 connection refused"?

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
0
Andrzej
11/24/2012 3:56:50 AM
embarcadero.delphi.multi-tier 396 articles. 0 followers. Follow

4 Replies
3477 Views

Similar Articles

[PageSpeed] 13

Hi Andrzej,

> 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.

Which protocol are you using? When using HTTPS, are you also deploying 
the SSL DLLs?

Can you ping from one computer to another?

Did you start the DataSnap Server on the other windows machine? (just 
checking - with the COM-based DataSnap, the server was automatically 
started).

Did you specify the correct hostname, etc. properties in the 
TSQLConnection or TDSRestConnection components?

> Any ideas?
>
> Thank you,
> Andre

Groetjes,
           Bob Swart

-- 
Bob Swart Training & Consultancy (eBob42.com) Forever Loyal to Delphi
Embarcadero Technology Partner -- Embarcadero MVP -- Spirit of Delphi
Delphi Reseller: www.bobswart.nl (Dutch)- www.bobswart.com (Eurozone)
http://drbob42.com/courseware - Facebook: http://facebook.com/drbob42
http://twitter.com/eBob42 LinkedIn: http://nl.linkedin.com/in/drbob42
Delphi paperbacks from Lulu.com http://www.lulu.com/spotlight/drbob42
Blog: http://www.drbob42.com/blog - RSS: http://eBob42.com/weblog.xml
Chairman Delphi Development Network (DDN) powered by SDN - www.sdn.nl
0
Bob
11/24/2012 8:16:38 AM
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
0
Andrzej
11/25/2012 5:21:03 AM
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
0
Andrzej
11/26/2012 4:49:06 PM
Hi Andrzej,

> 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.

Actually, if you do not specify the filters at all, they will be used 
automatically (and in the right order). Just make sure the units that 
define (and register) the filters are included in the uses clause 
somewhere in the client application...

> Thank you,
> Andre


Groetjes,
           Bob Swart

-- 
Bob Swart Training & Consultancy (eBob42.com) Forever Loyal to Delphi
Embarcadero Technology Partner -- Embarcadero MVP -- Spirit of Delphi
Delphi Reseller: www.bobswart.nl (Dutch)- www.bobswart.com (Eurozone)
http://drbob42.com/courseware - Facebook: http://facebook.com/drbob42
http://twitter.com/eBob42 LinkedIn: http://nl.linkedin.com/in/drbob42
Delphi paperbacks from Lulu.com http://www.lulu.com/spotlight/drbob42
Blog: http://www.drbob42.com/blog - RSS: http://eBob42.com/weblog.xml
Chairman Delphi Development Network (DDN) powered by SDN - www.sdn.nl
0
Bob
11/26/2012 6:48:53 PM
Reply:

Similar Artilces:

Delphi XE HTTP: error "Socket Error #10054 Connection reset by peer" [Edit]
Communication type is set to HTTP, LifeCycle is set to Invocation. Invocation represents a stateless connection, but when the network connection drops, the client throws the error "Socket Error #10054 Connection reset by peer". Are there any other properties to set up apart from LifeCycle? Hi Irina, > Communication type is set to HTTP, LifeCycle is set to Invocation. > > Invocation represents a stateless connection, but when the network connection drops, the client throws the error "Socket Error #10054 Connection reset by peer". Are there any other proper...

"Socket error # 10061 Connection refused" in a Firemonkey Android app
Goodmorning everybody, I'm developping a Client/Server Android (version 4.1) application with Delphi XE5 and Indy Componant v10.6 When I run the app on the tablet, the IdTCPServer is correctly activated (see the server code below) but when I try to reach it from the PC app with an IdTCPClient (see the client code below), I get this exception "Socket error # 10061 Connection refused" !!! SERVER CODE (running on the tablet) Server.Bindings.Add.IPVersion:=Id_IPv4; Server.DefaultPort:=9000; Server.Active:=true; CLIENT CODE (running on PC) Client.Host:='192.168.241...

[XE2] "Delphi.Personality" and platform "Win32" missing or unavailable
I'm using Windows Vista Business 32-bit and C++ Builder XE2. When I create a new VCL project, add some Delphi files (.pas) to the project and try to compile, I receive the following error messages: {code} [DCC Fatal Error] Exception Exception: Compiler for personality "Delphi.Personality" and platform "Win32" missing or unavailable. [DCC Error] Compiler for personality "Delphi.Personality" and platform "Win32" missing or unavailable. {code} Normally, in C++ Builder XE, when I add some Delphi files to my projects, it compiles without any prob...

[XE2] "Delphi.Personality" and platform "Win32" missing or unavailable
Today I reinstall XE2 with update 1, when I try to run the application, I got following error message, I am sure it used to works fine before rebuilding my PC. [DCC Fatal Error] Exception Exception: Compiler for personality "Delphi.Personality" and platform "Win32" missing or unavailable. [DCC Error] Compiler for personality "Delphi.Personality" and platform "Win32" missing or unavailable. so what I can do now to work around it? solved, I removed the environment varible platform(platform=win32) and not get this error message again. > {qu...

Delphi 2010 IDE throws error on "find" and "find in files"
I will greatly appreciate any advice how to cure the suddenly appeared misbehaviour: I just loaded the main project file and then tried to find code snippets fore re-use with "find" and "find in files" the Eurekalog extract is: 2.2 Address : 20EB30B6 2.3 Module Name : vclide140.bpl - (Integrated Development Environment Specific Components) 2.4 Module Version: 14.0.3593.25826 2.5 Type : EOutOfResources 2.6 Message : Unable to insert a line. 2.7 ID : 61FB 2.8 Count : 1 2.9 Status ...

Error "Multiple-step operation generated errors. Check each status value setting datetime field value" with TADOQuery and TDateTime (Delphi XE2)
Hello all, I've created an application which should do some automated tasks. When I run the application normally (as admin on a Window Server 2008 R2 x64 + MSSQL Server 2008 R2) everything works just fine. But whe I run the application a a 'sceduled taks' (with a different Windows User account), I get the following error when I modify a datetime field of a SQL query and I try to post the record Multiple-step operation generated errors. Check each status value setting datetime field value This is what I do (not exact query...): procedure Edit(aConn: T...

[Delphi XE2] "Search projects" missing in "Add to Project" dialog box [Edit]
"Search projects" missing in "Add to Project" dialog box when using windows classic theme (windows 7 64bits). Notepad on the contrary still have the "Seacrh ..." box in its open file dialog. Check the images below(they are not mine but show the issue) This one does have the "search document" box in the upper right corner. http://img98.imageshack.us/img98/9518/dialog2.png This one does not have it. http://img291.imageshack.us/img291/4793/dialogl.png Any help on this matter will be greatly appreciated. ...

upgrade error:"CONNECTIVITY ERROR:DB-Library: "SQL Server connection timed out."
PLEASE HELP OH WISE SYBASE GURUS! upgrading 11.9.2 to 12.0. unloaded software. rebooted server. selected "upgrade server" in Configure Sybase Servers window. typed in sa password. got "CONNECTIVITY ERROR: DB-Library: "SQL Server connection timed out." -- Chuck Boyce chuck_boyce@operamail.com http://www.geocities.com/chuck_boyce_jr/ Yahoo Messenger ID: chuck_boyce_jr http://messenger.yahoo.com AOL Instant Messenger ID: sg95m476 http://www.aol.com/aim/ ICQ Messenger ID: 41449031 http://www.icq.com ...

"Socket Error # 10054 Connection reset by peer" error in TidHTTPServer
I have been playing around with TidHTTPServer from Indy 10.5.8.0 (supplied with RAD XE2). I am not using any IO handlers, nor am I assigning a stream to Response.ContentStream. I am just returning some text back in Response.ContentText. I am Using IE 8.0 as my web browser, everything works fine until I close the browser, then I get the exception EIdSocketError "Socket Error#10054 Connection Reset By Peer." If I click on continue, the program continues to execute. The curious thing though, the exception only throws when I close the Browser with my server...

"SQL Error: Error mapping failed" with Delphi 6 Application and DBExpress
Im using Delphi 6, Firebird 2.x, dbExpress The problem is only with remote database connection and not with local connection. The following connection gives and error Database := MyServer:C:\DEMO.FDB But when locally connected i.e database in the same computer Database := C:\FBdatabases\dbAccounts.FDB Following solution from Firebird forun worked ----------------------------------------- Actually, the issue is inside Borland's DBX driver for InterBase. It's not very much compatible with Firebird. First of all, it uses some internal (metadata) queries in the...

Is "Bug Changes" multi-select an "and" or an "or"?
Either I'm confused, or there is a defect with the way that advanced searching in the "Bug Changes" box works (perhaps both). I created 2 new Bugs http://landfill.bugzilla.org/bugzilla-2.20-branch/show_bug.cgi?id=2841 and http://landfill.bugzilla.org/bugzilla-2.20-branch/show_bug.cgi?id=2842 2841 is just new. No PCR chagnes of any form. 2842 is new, but with the status changed (I accepted the bug). Then I ran two queries. First I unselected everything, then in the "Bug Changes" box I selected: Only bugs changed in 2d with "[Bug creation]" ...

NOT SOLVED "Delphi.Personality" and platform "win32" missing or unavailable
Hello, Just installed (21st February 2012) Delphi XE2 Starter. Build 16.0.4276.44006 *Installed Updates* (RAD Studio XE2 Delphi and C++ Builder Update 1) (BTW why can't this info be copied instead of typing from Help>About) Got: *[DCC Error] Compiler for personality "Delphi.Personality" and platform "win32" missing or unavailable* when trying to run 1st Sample VBlock (BTW why there is no standard Hello World to show that IDE works?) *In spite of CASE SOLVED:* Report #: 98901 Status: Closed "Delphi.Personality" and platform "Win32...

Delphi 2007 assert
The assertion message from Delphi 2007 is... "(!"SetThreadContext failed")" in ..\win32src\thread32.cpp at line 412 Any way I can patch this out? CodeGearâ„¢ Delphi® 2007 for Win32® Version 11.0.2902.10471 El 18/01/2014 21:48, Michael Leahy escribió: > The assertion message from Delphi 2007 is... > > "(!"SetThreadContext failed")" in ..\win32src\thread32.cpp at line 412 > > Any way I can patch this out? > > CodeGearâ„¢ Delphi® 2007 for Win32® Version 11.0.2902.10471 > An unofficial fix fo...

"submit" to Access DB returns "connection closed"error
The error when I submit data  is as follows: Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.InvalidOperationException: ExecuteNonQuery requires an open and available Connection. The connection's current state is closed.Source Error: Line 17: Dim comDatabase As New System.Data.OleDb.OleDbCommand(strSQL, conDatabase) Line 18: Line 19: comDatabase.ExecuteNonQuery() Line 20:...

Web resources about - Delphi XE2, datasnap "Socket error 10061 connection refused"? - embarcadero.delphi.multi-tier

Resources last updated: 1/20/2016 12:14:48 AM