title: Error "An attempt was made to access a socket in a way forbidden by its access permissions"
body: <p>Running a WCF service for testing on a local machine. In App.config I have:</p>
  
  <pre><code>&lt;system.serviceModel&gt;
      &lt;services&gt;
        &lt;service name="Pizza.Services.PizzaService"&gt;
          &lt;host&gt;
            &lt;baseAddresses&gt;
              &lt;add baseAddress="http://localhost:8733"/&gt;
            &lt;/baseAddresses&gt;
          &lt;/host&gt;
          &lt;endpoint address="pizza"
                    binding="basicHttpBinding"
                    contract="Pizza.Services.IPizzaService"&gt;
  
          &lt;/endpoint&gt;
          &lt;endpoint address="net.tcp://localhost:8733/pizza"
                    binding="netTcpBinding"
                    contract="Pizza.Services.IPizzaService"&gt;
          &lt;/endpoint&gt;
        &lt;/service&gt;
      &lt;/services&gt;
  </code></pre>
  
  <p>If I run the app from VS2015 (as a regular user or administrator), I get:</p>
  
  <blockquote>
    <p>A TCP error (10013: An attempt was made to access a socket in a way
    forbidden by its access permissions) occurred while listening on IP
    Endpoint=0.0.0.0:8733. ---> System.Net.Sockets.SocketException: An
    attempt was made to access a socket in a way forbidden by its access
    permissions</p>
  </blockquote>
  
  <p>Now my co-worker has vaguely explained about a Windows 10 security feature that will prevent users from grabbing a random port and giving it away to some service. So I opened the command prompt as admin and did:</p>
  
  <pre><code>netsh http add urlacl url=http://+:8733/ user=Everyone
  </code></pre>
  
  <p>Still the same error.</p>
  
  <p>I've noticed similar questions, but none of them address my issue, I feel.</p>
  
  <p>EDIT: One more thing I forgot to mention is that I've tried turning off the firewal and anti-virus without success.</p>