Xsocket doesn't work , If router or ISP is preventing ICMP Traffic

亡梦爱人 提交于 2019-12-13 09:44:57

问题


I am using Xsocket for Duplex communication between server -client .

Every thing was working fine . my sample can work on different network but i find out the Main issue in Xsocket..

if Client is behind Router , proxy and Fire Wall preventing ICMP traffic Then client Can Not Initiate Connection with Server.

mean those client who can't ping Google . yahoo etc but can access them . those can't initiate connection with server.

Should i've to enable ICMP protocol on client fire Wall ?

I don't know how to handle this issue in my Program .

Can you Help me please ??

Thanks Advance .


回答1:


Try SignalR or maybe SocketIO and see how they do ?

I talked to the best guy I know in networking and he said that

You should not disable ICMP totally, but instead be very careful if changing ICMP at all. Use WSS (ssl/tls), since routers will let that traffic through Out of scope, but turning ICMP off = "fake security" maybe solve your issue .



来源:https://stackoverflow.com/questions/27602120/xsocket-doesnt-work-if-router-or-isp-is-preventing-icmp-traffic

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!