title: WCF Windows Service. Can connect locally, but not remotely
body: <p>I spent two days trying to figure this out and I am stumped.  I have a WCF servers running as a service on Windows.  A client can connect to it on the same machine, but as soon as I move try to connect to the service from another machine I cant.</p>
  
  <p>So if the client and host are on the same machine, no problems.  If the Host and Client are on separate machines I get exceptions errors.  </p>
  
  <p>Here is the weird part, I can use the svcutil to generate the app config and proxy.cs files from a remote machine, but as soon as I call the function it spits errors.</p>
  
  <p>Could not connect to net.tcp://ipaddress:port/Service1. TCP Error code 10061.  NO connection could be made because the target machine actively refused it.</p>
  
  <p>If I call it from the same machine Host / Client no errors.</p>
  
  <p>Any ideas?</p>
  
  <p>Updated:</p>
  
  <p>Here is the service end point settings.  </p>
  
  <pre><code>&lt;system.serviceModel&gt;
      &lt;services&gt;
          &lt;service behaviorConfiguration="Service1Behavior" name="WcfServiceLibrary1.Service1"&gt;
              &lt;endpoint address="net.tcp://192.168.1.75:8523/Service1" binding="netTcpBinding"
                  contract="WcfServiceLibrary1.IService1" /&gt;
              &lt;endpoint address="net.tcp://192.168.1.75:8523/mex" binding="mexTcpBinding"
                  contract="IMetadataExchange" /&gt;
              &lt;host&gt;
                  &lt;baseAddresses&gt;
                      &lt;add baseAddress="net.tcp://192.168.1.75:8523/" /&gt;
                  &lt;/baseAddresses&gt;
              &lt;/host&gt;
          &lt;/service&gt;
      &lt;/services&gt;
      &lt;bindings&gt;
          &lt;netTcpBinding&gt;
              &lt;binding name = "TcpBindingConfiguration"&gt;
                  &lt;security mode="None"/&gt;
              &lt;/binding&gt;
          &lt;/netTcpBinding&gt;
      &lt;/bindings&gt;
      &lt;behaviors&gt;
          &lt;serviceBehaviors&gt;
              &lt;behavior name="Service1Behavior"&gt;
                  &lt;serviceMetadata /&gt;
              &lt;/behavior&gt;
          &lt;/serviceBehaviors&gt;
      &lt;/behaviors&gt;
  &lt;/system.serviceModel&gt;
  </code></pre>
  
  <p>I have tried everything.  </p>
  
  <p>Any ideas?</p>
  
  <p>Again is the client and host are on the same machine everything is fine, as soon as I put the client on a different computer, no dice...</p>
  
  <p>I have never had this much headache with network programming back in the day...</p>
  
  <p>Thanks</p>