端口80上的superwebsocket

时间:2012-02-08 11:33:25

标签: c# iis websocket shared-hosting

我正在使用SuperWebSocket(http://superwebsocket.codeplex.com)并尝试使其在共享主机(即端口80)下工作,因为它们不允许其他非标准端口。这可能使它在端口80上工作吗?我试过服务器关闭连接。如何实现?

<socketServer>
        <servers>
            <server name="SuperWebSocket"
                    serviceName="SuperWebSocket"
                    ip="Any" port="80" mode="Async">
            </server>
            <server name="SecureSuperWebSocket"
                    serviceName="SuperWebSocket"
                    ip="Any" port="2012" mode="Sync" security="tls">
                <!--Please install the certificate to your trusted certificates store, the password is 'supersocket'-->
                <certificate filePath="localhost.pfx"
                             password="supersocket"
                             isEnabled="true"></certificate>
            </server>
        </servers>
        <services>
            <service name="SuperWebSocket"
                     type="SuperWebSocket.WebSocketServer, SuperWebSocket" />
        </services>
    </socketServer>

enter image description here

2 个答案:

答案 0 :(得分:1)

不,您无法绑定已使用的端口。

答案 1 :(得分:0)

在HTML文件中使用wss:// localhost:2012 / ...它需要安全连接