Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello,

I get the following exception:
"A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond ...".
State of play:
The client and server are written in C #.
3 remote computers, lets call A (Seven Ultimate), B (Seven Family) & C (XP Pro).
I did the port translation NAT on the PC 3.
A and B have a static IP configured via DHCP (I do not know if it's really useful).
Client / server work perfectly well in local on the 3 PC, so I do not think it is a programming problem.

Server A, Client B does not work (Exception).
Client A, Server B works.
Server A, Client C works.
Client A, Server C does not work (Exception).

I ping A and B without any problem, and (for whatever reason) not C (but I do not have access to this machine, this is a friend's computer), I do not know if this information may be useful.

I can not understand at all why the configurations server A / Client B and Client A / Server C does not work while the opposite yes...

So, if someone has an idea don't hesitate ...
Thank you in advance for your help.
Posted
Updated 7-Jun-13 20:58pm
v9
Comments
Richard C Bishop 7-Jun-13 16:16pm    
FYI, this is an English speaking site. Use a translator next time if your English is not sufficient.
Sergey Alexandrovich Kryukov 7-Jun-13 16:30pm    
Everything like that is pretty easy to screw up. But how can we see what have you done wrong?
—SA
Farzad Nozarian 7-Jun-13 16:37pm    
use static ip (manually config your ip not dhcp) and turn off firewall on all computers and try again!
R.B. 7-Jun-13 20:35pm    
Start with one server - just pick A. Can it handle multiple clients (eg, B and C)? Or just a single connection? Show us what code you are using on the server and you'll get more help.

1 solution

hi,

If you want to be safe check the connection install the wireshark software on each machine and to verify that packets sent/received because the ping is not enough.

good luck

jeremy
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900