title: How to use websockify with python on windows or compiling websockify as windows executable (for more multiple client connection at a time)
body: <p>I'm trying to get the <a href="https://github.com/kanaka/websockify/releases/tag/v0.6.0" rel="nofollow noreferrer">websockify 0.6.0</a> running on windows but without any luck,</p>
  
  <p>I have tried <code>python websockify.py 1501 10.0.0.141:1501</code> but its not good, getting errors , like that:</p>
  
  <p><code>
  Traceback (most recent call last):
  File "websockify.py", line 1, in &lt;module&gt;
  run
  NameError: name 'run' is not defined
  </code></p>
  
  <p>I also tried <a href="https://github.com/kanaka/websockify/wiki/Compiling-Websockify-as-Windows-Executable" rel="nofollow noreferrer">Compiling Websockify as Windows Executable</a> , but this also didn't work
  I use the following command <code>run.exe 1501 10.0.0.141:1501</code> and it looks promising at the beginning, outputting the following to the console:</p>
  
  <p><code>
  WARNING: no 'resource' module, daemonizing is disabled
  WebSocket server settings:
    - Listen on :1501
    - Flash security policy server
    - No SSL/TLS support (no cert file)
    - proxying from :1501 to 10.0.0.141:1501
  </code></p>
  
  <p>but then after trying to connect using the following from the browser <code>ws://localhost:1501</code></p>
  
  <p>**it outputs the following error</p>
  
  <p><code>
  Traceback (most recent call last):
    File "run", line 5, in &lt;module&gt;
    File "websockify\websocketproxy.pyc", line 419, in websockify_init
    File "websockify\websocket.pyc", line 1018, in start_server
  UnboundLocalError: local variable 'exc' referenced before assignment
  </code></p>
  
  <hr>
  
  <p><strong>Any idea on how to use the websockify on windows / or how to use the compiled websockify as windows executable ?</strong> </p>