title: Getting " TCP error code 10060: While trying to add WCF service
body: <p>I am getting the following error while trying to add service in my application</p>
  
  <p>Metadata contains a reference that cannot be resolved: 'net.tcp://[address]/myWCFService'.
  Could not connect to net.tcp://[address]/myWCFService. The connection attempt lasted for a time span of 00:00:21.0010000. 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 [address]:808. 
  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 [address]:808
  If the service is defined in the current solution, try building the solution and adding the service reference again.</p>
  
  <p><strong>I have created a WCF service and added it to asp.net host application</strong> 
  when i am testing it locally on my system it is working fine but when hosted on our server 
  getting error .</p>
  
  <p>Web Config :-</p>
  
  <pre><code>&lt;system.serviceModel&gt;
      &lt;behaviors&gt;
          &lt;serviceBehaviors&gt;
              &lt;behavior name="myBehavior"&gt;
                  &lt;serviceMetadata /&gt;
              &lt;/behavior&gt;
          &lt;/serviceBehaviors&gt;
      &lt;/behaviors&gt;
      &lt;bindings&gt;
          &lt;netTcpBinding&gt;
              &lt;binding name="myBinding" /&gt;
          &lt;/netTcpBinding&gt;
      &lt;/bindings&gt;
      &lt;services&gt;
          &lt;service behaviorConfiguration="myBehavior" name="GChatService.Chat"&gt;
              &lt;endpoint address="net.tcp://[address]:808/myWCFService"
                  binding="netTcpBinding" bindingConfiguration="myBinding" name="nettcp"
                  contract="GChatService.IChat" /&gt;
              &lt;endpoint address="net.tcp://[address]:808/myWCFService/mex"
                  binding="mexTcpBinding" bindingConfiguration="" name="mex"
                  contract="IMetadataExchange" /&gt;
              &lt;host&gt;
                  &lt;baseAddresses&gt;
                      &lt;add baseAddress="net.tcp://[address]:808" /&gt;
                  &lt;/baseAddresses&gt;
                  &lt;timeouts closeTimeout="00:02:10" openTimeout="00:10:00" /&gt;
              &lt;/host&gt;
          &lt;/service&gt;
      &lt;/services&gt;      
  &lt;/system.serviceModel&gt;
  </code></pre>
  
  <p>
      
        
      
    </p>
  
  <p>Asp host code </p>