TCP / IP connection via DataSnap

I wrote a multi-level application package in Delphi XE using DataSnap (VCL application).

This will be used internally in my company, mainly to replace outdated faxing.

Everything works fine, but I was faced with an unpleasant situation: the server computer is behind the router, so it has an internal IP address of the network. I redirected (to the router) all incoming connections to port 211 (the default DataSnap) to the server’s internal IP address and about 8 times out of ten of all clients connected to the server without any problems.

The problem is that for the remaining 2 times I get all kinds of connection errors (mainly connection time). When this happens, I have to close and reopen either the server application or (some of) the clients, and then it works.

Now I’m still at the development stage, so this is just a problem, but when I release it, I don’t want to tell anyone that it is NOT COMPLETED to close the application (as soon as it works, it works, there are no more problems), or close it , or reopen the application every time a connection problem occurs.

How can I fix this problem?

I had (only) a look at NetCat and SoCat, but (for me) it seems redundant for this situation. Is there any other way to solve this problem?

+5
source share
1 answer

The solution was to disable the router’s internal firewall.

+2
source

All Articles