如何使用Firedac将多设备应用程序连接到Datasnap Rest服务器 [英] How Do I Connect A Multi Device Application To A Datasnap Rest Server Using Firedac

查看:126
本文介绍了如何使用Firedac将多设备应用程序连接到Datasnap Rest服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Delphi XE7。我最近完成了一个客户端应用程序,它是delphi中的多设备应用程序,我创建了一个直接与SQL Server 2012通信的DataSnap REST服务器应用程序.DataSnap应用程序能够从SQL读取数据(应该如此) 。



现在我想通过FireDAC框架将客户端应用程序连接到DataSnap应用程序。每次我输入所需的参数并测试连接(当服务器运行时),它告诉我套接字错误#10061连接失败。



有没有什么我可能会失踪?我正在使用没有认证规范的http协议。

I am using Delphi XE7. I have recently completed a Client Application, which is a Multi Device Application in delp and I have created a DataSnap REST Server Application that communicates directly to SQL Server 2012. The DataSnap App is well able to read data from SQL (as it should).

Now I would like to connect the Client App to the DataSnap App via the FireDAC Framework. Each time I enter the required parameters and test the connection (while the server is running), it tells me "Socket Error #10061 Connection Failed".

Is there anything that I could be missing? I am using http protocol without authentication specifications.

推荐答案

您选择远程服务器吗?在XE7中当您将clientmoduleunit添加到Yours项目时,您需要选择远程服务器。选择远程服务器,并输入127.0.0.1作为主机名。同时选择一个特定的端口,例如3131系统可以使用其他端口,系统防火墙可以阻止它们用于其他应用程序
Are You choose remote server? In XE7 You need to choose "remote server" when you adding a clientmoduleunit to Yours project. Choose "remote server" and as host name enter 127.0.0.1. Also choose a specific port like e.g. 3131 Other ports may be used by system, and the syystem firewall can block them for other applications


这篇关于如何使用Firedac将多设备应用程序连接到Datasnap Rest服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆