Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi for PHP/IDE    [ Add a report in this area ]  
Report #:  111971   Status: Open
[ISAPI] DSRestConnection can only connect to localhost
Project:  HTML5 Builder Build #:  5.1.167.137
Version:    5.0 Submitted By:   Bob Swart
Report Type:  Crash / Data loss / Total failure Date Reported:  1/16/2013 5:04:37 AM
Severity:    Critical / Show Stopper Last Updated: 1/19/2013 11:13:35 PM
Platform:    All versions Internal Tracking #:   4995
Resolution: None (Resolution Comments) Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: (1 Total Rating)
5.00 out of 5
Total Votes: 11
Description
[ISAPI]
Creating the DataSnap REST import unit fails if the DataSnap server is not running on my localhost but on a different machine with a URLpath.

I've installed the HTML5 Builder Update 1, but that doesn't help.

Is there anyone who has made a HTML5 Builder client for a DataSnap REST server that does NOT run on "localhost"??

I have not been able to get it to work,
Steps to Reproduce:
The Delphi XE3 DataSnap REST server is deployed on my server as either http://www.bobswart.nl/cgi-bin/DataSnapREST.dll or (secure)
https://www.bobswart.nl/cgi-bin/DataSnapREST.dll

The necessary connection information is as follows:

protocol: http (or https)
language: PHP
Host: www.bobswart.nl
Port: 80 (or 443)
URL path: /cgi-bin/DataSnapREST.dll
context:
User name:
Password:

When running the DataSnaP REST server as a stand-alone application on localhost port 8080 it works just fine.

When as soon as I deploy the DataSnap REST server as an ISAPI DLL, it fails...

(I can connect to and use the DataSnap REST server on my domain using Delphi, so I *know* it's correctly working).

The sad part is... when I run the DataSnap REST Server as stand-alone application on the same machine,
but not specifying "localhost" but instead the IP-address (127.0.0.1 or the real IP-address, doesn't matter), it also DOES NOT WORK.

It looks like the DSRestConnection only work with localhost ???

Others have verified that this is a problem (I have not found anyone who could get this to work).
Workarounds
None
Attachment
None
Comments

Tomohiro Takahashi at 1/16/2013 5:36:55 PM -
> When as soon as I deploy the DataSnap REST server as an ISAPI DLL, it fails...
Does your issue occur only when the server is ISAPI dll?

Bob Swart at 1/19/2013 6:09:13 AM -
No, it also fails if I try to connect to a stand-alone server and enter something other than "localhost".

The ISAPI DLL even fails with localhost entered as host.



Right now, HTML5Builder can ONLY connect to a stand-alone DataSNap REST server running on "localhost". Unfortunately, that's what all the demos and videos show. I guess nobody has ever tried to enter an IP-address or connecto to another machine (which will fail), or try an ISAPI DLL (which will also fail)...
Right now, it just does not work, so HTML5Builder will be useless for me.

Server Response from: ETNACODE01