[英]superwebsocket on port 80
I was playing with SuperWebSocket( http://superwebsocket.codeplex.com ) and trying to make it work under shared hosting(ie port 80) as they don't allow other non standard ports. 我在玩SuperWebSocket( http://superwebsocket.codeplex.com ),并试图使其在共享主机(即端口80)下工作,因为它们不允许其他非标准端口。 Is this possible to make it work on port 80?
是否可以使其在端口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>
不,您不能绑定已使用的端口。
在您的HTML文件中使用wss:// localhost:2012 / ...它需要安全的连接
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.