80 端口上的 superwebsocket
我正在使用 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>
I was playing with SuperWebSocket(http://superwebsocket.codeplex.com) and trying to make it work under shared hosting(i.e. port 80) as they don't allow other non standard ports. Is this possible to make it work on port 80? While I tried the server closes the connection. How to achieve that?
<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>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不可以,您不能绑定已使用的端口。
No, you cannot bind a port which has been used.
在 HTML 文件中使用 wss://localhost:2012/...它需要安全连接
use wss://localhost:2012/ in your HTML file...it requires a secure connection