title: WCF trying to expose a nettcp endpoint; TCP error code 10061: No connection could be made because the target machine actively refused it
body: <p>I don't understand what the problem is here. My wsHttpBinding works fine. Here is my configuration. Any help most appreciated.</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;configuration&gt;
    .....
    &lt;system.serviceModel&gt;
      &lt;services&gt;
        &lt;service behaviorConfiguration="DataService.Service1Behavior"
                 name="ODHdotNET.DataService"&gt;
          &lt;endpoint 
                 address="" 
                 binding="wsHttpBinding" 
                 bindingConfiguration="largeTransferwsHttpBinding"
                 contract="ODHdotNET.IDataService"&gt;
            &lt;identity&gt;
              &lt;dns value="localhost" /&gt;
            &lt;/identity&gt;
          &lt;/endpoint&gt;
          &lt;endpoint 
              address="net.tcp://139.149.141.221:8001/DataService.svc" 
              binding="netTcpBinding" 
              contract="ODHdotNET.IDataService"/&gt;
          &lt;endpoint 
              address="mex" 
              binding="mexHttpBinding" 
              contract="IMetadataExchange" /&gt;
          &lt;host&gt;
            &lt;baseAddresses&gt;
              &lt;add baseAddress="http://139.149.141.221:8000/DataService.svc" /&gt;
            &lt;/baseAddresses&gt;
          &lt;/host&gt;
        &lt;/service&gt;
      &lt;/services&gt;
      &lt;bindings&gt;
        &lt;wsHttpBinding&gt;
          &lt;binding name="largeTransferwsHttpBinding2" 
                   maxReceivedMessageSize="5000000" maxBufferPoolSize="5000000"&gt;
            &lt;security mode ="Message"&gt;
              &lt;message clientCredentialType="UserName"/&gt;
            &lt;/security&gt;
          &lt;/binding&gt;
          &lt;binding name="largeTransferwsHttpBinding" 
                   maxReceivedMessageSize="5000000" maxBufferPoolSize="5000000" /&gt;
        &lt;/wsHttpBinding&gt;
       &lt;/bindings&gt;
      &lt;behaviors&gt;
        &lt;serviceBehaviors&gt;
          &lt;behavior name="DataService.Service1Behavior"&gt;
            &lt;serviceMetadata httpGetEnabled="true"/&gt;
            &lt;serviceDebug includeExceptionDetailInFaults="true"/&gt;
          &lt;/behavior&gt;
        &lt;/serviceBehaviors&gt;
      &lt;/behaviors&gt;
    &lt;/system.serviceModel&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>edit: I am self-hosting in a Windows Service; I am not using IIS.</p>