title: WCF service host returns "TCP error 10061 - connection refused" when client tries to connect
body: <p>I created a self hosted WCF service with netTcpBinding. I am using a WinForm based client to connect to this service. I have observed that while the client is up and running, I always lose connection to the WCF service - faulted state!. </p>
  
  <p>To resolve this, I created a thread to keep the connection alive. I let the client sit and, after about a week, found an error message in my logs : TCP connection error 10061 - client was refused connection. The keep alive thread cannot recreate the connection object - the logs still display "connection refused". </p>
  
  <p>In my configuration file for the service host, I have a base address but no endpoint address. MSDN says that the when no endpoint address is given, the endpoint address becomes the base address when the Open method is called. </p>
  
  <p>Do I still need to give an endpoint address to resolve the "TCP connection refused" issue?</p>
  
  <p>Thanks in advance for any advice.</p>