Flutter SocketException: OS Error: No route to host, errno = 113, address = XXX

Or flutter   WebSocketChannelException: SocketException: OS Error: No route to host, errno = 113, address = XX

This type of access problem,

1. First of all, whether the port on the server side is open or not, MacOS or windows, please do it yourself

2. The problems encountered here, I will explain my situation. First of all, the test I did belongs to the type of LAN, and I know that my server IP and real mobile phone, including web page test, are all in the same network segment. For example, 192.168.1.xx to 192.168.1.250. There is no problem with the access of the extension computer, but the mobile phone has this problem, The IP of the mobile phone is also in the same segment with the server we tested, but why is the problem of not finding the host mentioned above?

Finally, we found that the mobile phone is linked in the 5g band of the router, which may be due to the IP isolation between 5g band and other IP when the router is set up, resulting in mutual inaccessibility

It’s OK to enter 2.4G


Read More: