title: WCF url rewriting for net.tcp binding
body: <p>I'm trying to rewrite URL (with IIS) for WFC service which uses net.tcp binding. I have WFC service which is hosted on first machine and all works fine - I can use it without any problems. 
  Now I have second IIS host where I'd created application which contains only web.config (it should rewrite it's address to first machine's WCF) and it looks like this:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;configuration&gt;
      &lt;system.webServer&gt;
          &lt;directoryBrowse enabled="true" /&gt;
          &lt;rewrite&gt;
              &lt;rules&gt;
                  &lt;rule name="ReverseProxyInboundRule1" stopProcessing="true"&gt;
                      &lt;match url="service/(.*)" /&gt;
                      &lt;action type="Rewrite" url="net.tcp://192.168.1.60/service/{R:1}" /&gt;
                  &lt;/rule&gt;
              &lt;/rules&gt;
          &lt;/rewrite&gt;
      &lt;/system.webServer&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>Input URL that should be rewritten is something like:</p>
  
  <blockquote>
    <p>net.tcp//localhost/service/SampleService.svc</p>
  </blockquote>
  
  <p>When I check logs of rewriting everything look fine but when I use address of this application to connect (which should rewrite url to WFC) I receive only errors that there is no WCF endpoint. I tried many combinations of URL rewrite rule but all in vain. Both ISS applications enables protocols: http, net.tcp, net.pipe, ARR enables proxy as well.</p>
  
  <p>I didn't find any threads about redirecting net.tcp WCF's however I get some hints from <a href="https://social.msdn.microsoft.com/Forums/vstudio/en-US/17a1c294-645f-4bca-ae48-65b668374b81/url-rewriting-wcf-services-and-wsdl?forum=wcf" rel="nofollow">URL Rewriting WCF services</a> but it's all about http bindings.
  I'm not sure if it is doable to rewrite my service url with IIS so if there is any other approach I'm looking forward for any suggestions.</p>