<p>我试图让<a href="https://github.com/kanaka/websockify/releases/tag/v0.6.0" rel="nofollow noreferrer">websockify 0.6.0</a>在windows上运行,但是没有任何运气</p>
<p>我试过<code>python websockify.py 1501 10.0.0.141:1501</code>,但不太好,出现了这样的错误:</p>
<p><code>
Traceback (most recent call last):
File "websockify.py", line 1, in <module>
run
NameError: name 'run' is not defined
</code></p>
<p>我也试过<a href="https://github.com/kanaka/websockify/wiki/Compiling-Websockify-as-Windows-Executable" rel="nofollow noreferrer">Compiling Websockify as Windows Executable</a>,但也没用
{I}使用下面的命令{3>在输出时使用以下命令:</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>但是在尝试使用下列浏览器连接之后<code>ws://localhost:1501</code></p>
<p>**输出以下错误</p>
<p><code>
Traceback (most recent call last):
File "run", line 5, in <module>
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>关于如何在windows上使用websockify/或如何将已编译的websockify用作windows可执行文件有什么想法?</strong></p>