title: WCF and IIS confusion on the wsdl location
body: <p>I created my WCF project and it works fine when I just run it from the debugger.</p>
  
  <p>But when I publish it to IIS and point a browser to the svc the path used has localhost in it.  Like this:</p>
  
  <pre><code>htpp://localhost/MyService/MyServices.svc
  </code></pre>
  
  <p>but the path that the webpage says to go to for the WSDL uses my computer name, like this:</p>
  
  <pre><code>http://MyComputerName.MyDomain.net/MyService/MyService.svc?wsdl
  </code></pre>
  
  <p>When I click on the link it times out.  (Also, trying to view the services like that in WCFTestClient times out.)</p>
  
  <p>However, if I go the wsdl using localhost then it works right away:</p>
  
  <pre><code>http://lcoalhost/MyService/MyService.svc?wsdl
  </code></pre>
  
  <p>Any link that uses my computer name times out ("takes too long to respond").</p>
  
  <p>Any idea on how to make my WCF service work with the computer name?</p>
  
  <p>(NOTE: I am using Visual Studio Ultimate and IIS 7)</p>