Home » Microsoft TechnologiesRSS

TCP Error Code 10060 when attempting to access WCF Service hosted by WIndows Service from client run

Hello all,

We have a Framework 3.5 WCF Service which is in turn hosted in a Windows Service using Net.Tcp Binding. SvcUtil is used to generate the proxy which is used instead of a service reference in the client code. We are also using Tcp Port Sharing. The endpoint address is net.tcp://HostMachineName/MyServicePath. The service logs to the Event log and everything works perfectly on the same machine.

When attempting to run the client from a different machine we are getting TCP Error Code 10060 errors. Below is the error message:

System.ServiceModel.EndpointNotFoundException: Could not connect to net.tcp://HostMachineName/MyServicePath. The connection attempt lasted for a time span of 00:00:20.8592415. TCP error code 10060: 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 111.22.333.444:808.  ---> System.Net.Sockets.SocketException: 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 111.22.333.444:808... The IP Address displayed was the correct IP Address for the HostComputerName.

Has anyone encountered this problem? Also, client specs say no config files, so anything that would normally go into app.config needs to be explicity set in the confg database. Thanks in advance for any ideas and/or suggestions!


Have a great day!
 

4 Answers Found

 

Answer 1

Hello,

this can be firewall issue. Check that port 808 is openned in all firewalls (software and hardware).

Best regards,
Ladislav

 

Answer 2

Hello Ladislav,

That is indeed the case. Once I opened port 808, it ran immediately.

 

Answer 3

I am new to WCF. What do you mean by opened in software and hardware firewalls? Is My Network Places software or hardware?
 

Answer 4

Hello,

it is software. Hardware firewall is network device.

Best regards,
Ladislav

 
 
 

<< Previous      Next >>


Microsoft   |   Windows   |   Visual Studio   |   Follow us on Twitter