'How to connect my vcl client to my vcl server remotely using datasnap from delphi
I am using Windows 11 Pro.
I am on a local network, and I am using a No-IP address and connected to No-IP address.
I opened port 7777 on my Windows firewall and my router.
I have created a server DataSnap application (Windows VCL) and a client DataSnap application (Windows VCL).
Server components:
DSServer1DSServerClass1 connected to DSServer1DSTCPServerTransport1 connected to DSServer1DSTCPServerTransport1 Port = 7777
Client components:
SQLConnection1Driver = DataSnapConnectionName = DataSnapCONNECTIONParams
[ DriverName = DataSnap , HostName = ?????.ddns.net , Port = 7777 , ConnectionName = DataSnapCONNECTION ]
When running the server and trying to connect SQLConnection1 from the client side, if I connect to localhost or 127.0.0.1 or my local network IP 192.168.1.7, it connects successfully.
But, if I try to connect to my No-IP host, I get a error
Socket Error # 10060
Connection timed out
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
