title: Can't use port 80 or 443 for WebSocket on XAMPP
body: <p>I've got a Windows 7 XAMPP setup that I use for quickly testing PHP code. I have been running tests with a PHP WebSocket script I wrote recently, and it works fine on every port I've tested except ports 80 and 443. Neither 80 nor 443 will work with the <code>ws</code> or <code>wss</code> protocol. When I try either port, absolutely nothing will go through and the script will just sit there running forever.</p>
  <p>The <a href="https://www.rfc-editor.org/rfc/rfc6455" rel="nofollow noreferrer">official WebSocket spec (RFC 6455)</a> states:</p>
  <blockquote>
  <p>The WebSocket Protocol attempts to address the goals of existing
  bidirectional HTTP technologies in the context of the existing HTTP
  infrastructure; as such, it is designed to work over HTTP ports 80 and
  443 ...</p>
  </blockquote>
  <p>And:</p>
  <blockquote>
  <p>By default, the WebSocket Protocol uses port 80 for regular WebSocket
  connections and port 443 for WebSocket connections tunneled over
  Transport Layer Security (TLS) [RFC2818].</p>
  </blockquote>
  <p>And:</p>
  <blockquote>
  <p>The port component is OPTIONAL; the default for &quot;ws&quot; is port 80, while
  the default for &quot;wss&quot; is port 443.</p>
  </blockquote>
  <p>So how am I supposed to get ports 80 and 443 to work?<br />
  Thanks.</p>
  <hr />
  <p><strong>Edit</strong>: Here's the first line of <code>netstat</code>:</p>
  <p><a href="https://i.stack.imgur.com/uh7oK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uh7oK.png" alt="netstat" /></a></p>
  <p>I guess that means that I can't use port 80, right?</p>