title: How to start 2660 port in IIS for Tridion Core Service connection using netTcp
body: <p><strong>I am trying to connect to Tridion using core service script, here is my code:</strong></p>
  
  <pre><code>public static SessionAwareCoreServiceClient Client;
  
  
  Client = new SessionAwareCoreServiceClient("netTcp_2011");
  Client.ClientCredentials.Windows.ClientCredential = new NetworkCredential(user, password);
  </code></pre>
  
  <p><strong>web.Config has following:</strong></p>
  
  <pre><code>&lt;system.serviceModel&gt;
      &lt;!-- Default/example WCF settings for Core Service. These settings should be copied into the host application's configuration file. --&gt;
      &lt;bindings&gt;
        &lt;!-- Default Core Service binding settings are provided here. These can be used as a starting point for further customizations. --&gt;
        &lt;basicHttpBinding&gt;
          &lt;binding name="basicHttp" maxReceivedMessageSize="10485760"&gt;
            &lt;readerQuotas maxStringContentLength="10485760" maxArrayLength="10485760"/&gt;
            &lt;security mode="TransportCredentialOnly"&gt;
              &lt;!-- For LDAP or SSO authentication of transport credentials, use clientCredentialType="Basic" --&gt;
              &lt;transport clientCredentialType="Windows"/&gt;
            &lt;/security&gt;
          &lt;/binding&gt;
          &lt;binding name="streamDownload_basicHttp" maxReceivedMessageSize="209715200" transferMode="StreamedResponse" messageEncoding="Mtom" sendTimeout="00:15:00"&gt;
            &lt;security mode="TransportCredentialOnly"&gt;
              &lt;!-- For LDAP or SSO authentication of transport credentials, use clientCredentialType="Basic" --&gt;
              &lt;transport clientCredentialType="Windows"/&gt;
            &lt;/security&gt;
          &lt;/binding&gt;
          &lt;binding name="streamUpload_basicHttp" maxReceivedMessageSize="209715200" transferMode="StreamedRequest" messageEncoding="Mtom" receiveTimeout="00:15:00"&gt;
            &lt;security mode="None"/&gt;
          &lt;/binding&gt;
        &lt;/basicHttpBinding&gt;
        &lt;netTcpBinding&gt;
          &lt;binding name="netTcp" transactionFlow="true" transactionProtocol="WSAtomicTransaction11" maxReceivedMessageSize="2147483647"&gt;
            &lt;readerQuotas maxStringContentLength="2147483647" maxArrayLength="2147483647"/&gt;
          &lt;/binding&gt;
          &lt;binding name="streamDownload_netTcp" maxReceivedMessageSize="2147483647" transferMode="StreamedResponse" sendTimeout="00:20:00"/&gt;
          &lt;binding name="streamUpload_netTcp" maxReceivedMessageSize="2147483647" transferMode="StreamedRequest" receiveTimeout="00:20:00"/&gt;
        &lt;/netTcpBinding&gt;
      &lt;/bindings&gt;
      &lt;client&gt;     
        &lt;!--Dev 2013   --&gt;
        &lt;endpoint name="netTcp_2011" address="net.tcp://localhost:2660/CoreService/2011/netTcp" binding="netTcpBinding" bindingConfiguration="netTcp" contract="Tridion.ContentManager.CoreService.Client.ISessionAwareCoreService"/&gt;
        &lt;endpoint name="streamDownload_netTcp_2011" address="net.tcp://localhost:2660/CoreService/2011/streamDownload_netTcp" binding="netTcpBinding" bindingConfiguration="streamDownload_netTcp" contract="Tridion.ContentManager.CoreService.Client.IStreamDownload"/&gt;
        &lt;endpoint name="streamUpload_netTcp_2011" address="net.tcp://localhost:2660/CoreService/2011/streamUpload_netTcp" binding="netTcpBinding" bindingConfiguration="streamUpload_netTcp" contract="Tridion.ContentManager.CoreService.Client.IStreamUpload"/&gt;
        &lt;!--  --&gt;
  
      &lt;/client&gt;
    &lt;/system.serviceModel&gt;
  </code></pre>
  
  <p><strong>Still I get this Error:</strong></p>
  
  <pre><code>Could not connect to net.tcp://localhost:2660/CoreService/2011/netTcp. The connection attempt lasted for a time span of 00:00:01.0520000. TCP error code 10061: No connection could be made because the target machine actively refused it localhost:2660.
  </code></pre>
  
  <p><strong>Note:</strong> localhost can also be an IP of a CMS instance.</p>
  
  <p>Can anyone help?</p>