How do I do Server/client Application Using Delphi 7

I made a simple Server Application and a Client application by Delphi 7 and using DataSnap technology(Socket Connection Component). When I run the client from the same computer using the IP Address of the same machine  it wakes up the server well and connect to the database and retrieve the data successfully. But when I put the client application exe on a remote machine and use the IP Address of the server machine. The connection to the server failed and give this message "Windows socket error 10060..etc" So how can I connect a remote Client app over IP to a remote server smothely using Delphi.

Thank you in advance
 
AsheblyAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

moorhouselondonCommented:
Has the Port you are using to communicate with been opened up (in your Firewall) and Port Forwarded to the correct PC?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
moorhouselondonCommented:
Welcome to EE!

Look at the instructions for your Router in www.portforward.com for how to forward the port you are using (you can use the instructions for say, SMTP, substituting the port you are using for port 25 in the instructions).  This is for incoming traffic: traffic that is instantiated outside of the LAN perimeter.  

Traffic that is generated internally and sent outside the perimeter is given a method for having replies sent back to the same pc (a reply port outside of the "well-known" range), so it doesn't have to be port forwarded.  

Firewalls are setup on consumer devices to automatically allow outgoing traffic on all ports, so you shouldn't need to do anything there.

You can tell if there is a problem with an outside port seeing your pc by running the Shields Up utility in the Gibson Research website www.grc.com  Don't do a scan of all ports - use Custom Port Probe for just the port you are interested in.  If there is connectivity then you will get a "failed" result (which is good).

Any questions, please let us know.
0
moorhouselondonCommented:
You can do but it is "cutting corners", there are of course risks in doing that.  It still won't solve the problem of forwarding ports though: that still needs to be done.
0
EscuroAnjoCommented:
from what i can understand ..

you use direct connection to connect the client to the server but this fails if one of the exe's is behind router then the connection fails .. and the solution for this is to use 'Reverse Connection'  not the 'Direct Connection' and here an example to how to connect to your server by using the reverse connection .

Attention : use this example at your own risk

the password for the zip is 123456 .

i hope this solve your problem .

0
rotem156Commented:
You're welcome.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.