In the iOS 26.4 beta version of WKWebView, it is impossible to establish an IP type WebSocket connection!

In iOS 26.4 beta, I noticed that when loading pages using WKWebView and using WebSocket to establish IP type addresses, the connection duration was several seconds and sometimes even failed to connect (normally, the connection duration should be in milliseconds). However, when establishing WebSocket connections using domain names, the connections were normal.

Additionally, I discovered a special scenario: When directly establishing WebSocket connections using IP type addresses, it remained in the "connect" state. At the same time, based on Wireshark packet capture, it was found that no TCP connection was sent at this time. However, if two connections with the same address were established simultaneously, those two connections could successfully connect.

This bug has seriously affected the use of my application service. Is there a chance that this version will solve the problem?

Same happening to me while debugging the "Home Assistant" app, connections using local IP tend to fail or be delayed for several minutes, while using ".local" or remote URLs it succeeds.

Submited as well in FB22124168

In the iOS 26.4 beta version of WKWebView, it is impossible to establish an IP type WebSocket connection!
 
 
Q