Xsocket doesn't work , If router or ISP is pre

2019-09-22 03:08发布

问题:

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 .