Click here to Skip to main content
13,004,446 members (74,400 online)
Rate this:
Please Sign up or sign in to vote.
See more:

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 7-Jun-13 10:13am
Updated 7-Jun-13 20:58pm
richcb 7-Jun-13 16:16pm
FYI, this is an English speaking site. Use a translator next time if your English is not sufficient.
Everything like that is pretty easy to screw up. But how can we see what have you done wrong?
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

Rate this: bad
Please Sign up or sign in to vote.

Solution 1


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


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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170627.1 | Last Updated 8 Jun 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100