title: netstat says 443 is open, but I cannot connect to it with telnet .. why?
body: <p>I've built a self hosted wcf server, using <code>wsHttpBinding</code>. I'm running Win 2003 server R2 SP2.</p>
  
  <p>If I configure it to listen on <code>http://localhost:443/MyService</code>, everything works fine. I can connect to <code>http://localhost:443/MyService</code> with Internet Explorer, and I get the standard "Bad Request" message</p>
  
  <p>Now, if I try to switch to HTTPS, I'm witnessing a strange phenomenon.</p>
  
  <p>Here's what I've done :</p>
  
  <ol>
  <li>I've changed my wcf config file from <code>http://localhost</code> to <code>https://localhost</code> and from <code>Security=None</code> to <code>Security=Transport</code> (as explained in numerous wcf tutorials)</li>
  <li><p>I've registered my HTTP port like this :</p>
  
  <pre><code>httpcfg delete ssl -i 0.0.0.0:443
  
  httpcfg set ssl -i 0.0.0.0:443 -h ea2e450ef9d4...
  </code></pre></li>
  </ol>
  
  <p>Note that the certificate I've used is a "real certificate" (i.e. issued by a trusted CA, namely Comodo). The server responds to ping on the NS mentioned in the certificate.</p>
  
  <p>Now, the following will timeout : </p>
  
  <pre><code>Microsoft Telnet&gt; open localhost 443
  </code></pre>
  
  <p>Here's the output from <code>netstat</code> (The Pid '4' is the 'System' process):</p>
  
  <pre><code>netstat -nao
  
    Proto  Local Adress         Remote Adress          State           Pid
    TCP    0.0.0.0:443          0.0.0.0:0              Listening       4
  </code></pre>
  
  <p>And here's a screenshot from <a href="http://technet.microsoft.com/en-us/sysinternals/bb897437.aspx" rel="nofollow noreferrer">TCPView</a> captured when I issued the open command in telnet :</p>
  
  <p><a href="http://img26.imageshack.us/img26/3376/tcpview2si6.jpg" rel="nofollow noreferrer">alt text http://img26.imageshack.us/img26/3376/tcpview2si6.jpg</a></p>
  
  <p>I'm a bit puzzled. To me, if <code>netstat</code> says the server is listening on 443, the telnet connection to 443 shouldn't timeout, and I should have at least a blank prompt, expecting me to type some encrypted stuff :)</p>
  
  <p>So far I've tried to :</p>
  
  <ol>
  <li>Redo all the steps from scratch following exactly the MSDN tutorial</li>
  <li>Used port 10443 instead of 443</li>
  <li>Disable the firewall</li>
  <li>Use a self signed certificate</li>
  </ol>
  
  <p>I don't know what to try next .. any ideas?</p>