title: Multiple endpoints in wcf
body: <p>I'm trying to do multiple endpoints for a single WCF Service, so that each endpoint has its separate interface / methods. I'm using TCP</p>
  
  <p><code>app.config</code>:</p>
  
  <pre><code>&lt;configuration&gt;
    ....
    &lt;system.serviceModel&gt;
      &lt;services&gt;
        &lt;service name="WCFLibrary.CalculatorService"&gt;
            &lt;host&gt;
              &lt;baseAddresses&gt;
                &lt;!--&lt;add baseAddress="http://localhost:8788/CalculatorService/" /&gt;--&gt;
                &lt;add baseAddress="net.tcp://localhost:8523/CalculatorService" /&gt;
              &lt;/baseAddresses&gt;
            &lt;/host&gt;
            &lt;endpoint name="ServiceTCPEndPoint" 
                address="" 
                binding="netTcpBinding" 
                contract="WCFLibrary.ICalculator"&gt;
              &lt;identity&gt;
                &lt;dns value="localhost" /&gt;
              &lt;/identity&gt;
            &lt;/endpoint&gt;
            &lt;endpoint name="ServiceMexEndPoint" address="mex" binding="mexTcpBinding" contract="IMetadataExchange" /&gt;
        &lt;/service&gt;
        &lt;service name ="WCFLibrary.MyWorldService"&gt;
          &lt;host&gt;
            &lt;baseAddresses&gt;
              &lt;add baseAddress="net.tcp://localhost:8524/MyWorldService"/&gt;
            &lt;/baseAddresses&gt;
          &lt;/host&gt;
          &lt;endpoint name="HelloWorldTCPEndpoint" 
              address="" 
              binding="netTcpBinding" 
              contract="WCFLibrary.MyWorld"&gt;
            &lt;identity&gt;
              &lt;dns value="localhost" /&gt;
            &lt;/identity&gt;
          &lt;/endpoint&gt;
          &lt;endpoint name="HelloWorldMexEndPoint" 
              address="mex" 
              binding="mexTcpBinding" 
              contract="IMetadataExchange" /&gt;
        &lt;/service&gt;
      &lt;/services&gt;
      &lt;behaviors&gt;
        &lt;serviceBehaviors&gt;
          &lt;behavior&gt;
            &lt;serviceMetadata/&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>My first endpoint is working, but my second endpoint doesn't work. What could be wrong here. Secondly why can't we browse tcp, like we can do for HTTP. I know we can test tcp using svcutil. Is there anyway to browse TCP.</p>
  
  <p>EDIT:</p>
  
  <p>WCF:</p>
  
  <p><a href="http://pastebin.com/gHHRKeYZ" rel="nofollow">http://pastebin.com/gHHRKeYZ</a></p>
  
  <p>WindowsService:</p>
  
  <p><a href="http://pastebin.com/kjM3iRYj" rel="nofollow">http://pastebin.com/kjM3iRYj</a></p>