connection refused when I try to connect client with server

1.2k views Asked by At

I made a basic client / server datasnap applications and it work in local network through http but when I tried to connect from the internet I get connection refused, here are the steps I followed:

I set at the server component TDSHTTPService to connect through port no 8081 then in the client I set to use same port in TSQLConnection component, and I used my PC public IP in the HostName but when I try to connect I get connection refused.

Any advise ?

Forgot to say the client is Firemonkey app running on Android.

enter image description here

1

There are 1 answers

5
smooty86 On BEST ANSWER

You should go to router admin console, find something like "port forwarding" and route the port (8081) to your computer IP - you have to say the router that traffic on this port should go to your computer