title: How can I set the port for an iis hosted wcf svc?
body: <p><br>
  I have a IIS hosted service <code>http://localhost/someProject/services/myservice.svc</code> . Is it possible to somehow make say <code>http://locahost:9705</code> point to it? How do I set this up? It seems to be pretty straightforward with a Windows Service hosted WCF service, but I cannot figure how to accomplish this when using .svc files and IIS. In the app.config of a Windows Service I just add a host node...    </p>
  
  <pre><code>&lt;host&gt;
    &lt;baseAddresses&gt;
     &lt;add baseAddress="net.tcp://localhost:9705"/&gt;
    &lt;/baseAddresses&gt;
  &lt;/host&gt;
  </code></pre>
  
  <p>however when I do the same thing in an IIS hosted svc web.config</p>
  
  <pre><code>&lt;host&gt;
    &lt;baseAddresses&gt;
       &lt;add baseAddress="http://localhost:9705"/&gt;
    &lt;/baseAddresses&gt;
  &lt;/host&gt;
  </code></pre>
  
  <p>I browse to <code>http://localhost:9705</code> and I get an IE error cannot display the webpage etc... In the windows hosted services I'm able to browse to the page, although not in this example as I'm using net.tcp, but with other services, it works. What am I doing wrong here? Is this even possible? Please point me in the right direction. Thanks for any tips and/or help.</p>
  
  <p>Cheers,<br>
  ~ck in San Diego</p>