Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# socket
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 7-Jun-13 11:13am
asm8086685
Edited 7-Jun-13 21:58pm
ridoy52K
v9
Comments
richcb at 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 at 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 at 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. at 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
good
Please Sign up or sign in to vote.

Solution 1

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
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 274
1 Sergey Alexandrovich Kryukov 255
2 Shweta N Mishra 216
3 PIEBALDconsult 200
4 BillWoodruff 174
0 OriginalGriff 7,630
1 Sergey Alexandrovich Kryukov 7,022
2 DamithSL 5,586
3 Manas Bhardwaj 4,946
4 Maciej Los 4,525


Advertise | Privacy | Mobile
Web02 | 2.8.1411023.1 | Last Updated 8 Jun 2013
Copyright © CodeProject, 1999-2014
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