Sorry to do this to you but we need to cover the basics first. Can you ping the target host from the machine you're running the client side app from? Are you certain that the server side application is running on the target host? Are the firewalls off on both machines (this isn't 100% necessary but it rules them out as a cause to this problem)? Is the server side app listening on the same socket?
that's okay most of the time its all ways the simple things which cause this.
- Stopped windows firewall service
Even when the firewall is disabled I still could not ping, found this to be the file and printer sharing needed to be enabled to be able to ping it. Found this out a few hours ago.
It sounds like your Server side is not responding correctly. On the PC running the Server application open a command prompt and type netstat -a -b and look for the name of your executable to make sure that it is in the 'LISTENING' state and double check which port it is listening on.
Thank you very much for the help ComputerGeek01, I managed to get a bit more info.
Okay bit of an update (a:Win 7 to b:win 7) using the above cmd i can see that A:Win7 sent a packet to the correct IP and port.
However on the state on a:Win7 is SYN_SENT which means its ignoring the packet now on B:win7 it is listening on the correct port but has 0.0.0.0 for the IP bit (Both units are using WLAN).
If b:Win7 sends a packet to a:win7 the App works perfect..... I think more investigation is needed.
Everything works now needed to allow icmp for pings as this is part of file and printer sharing. And allow the port we are using. Thank you for all your help guys