Wireguard iOS: no route to host [Error]

Renym Renym at protonmail.com
Sat Oct 26 19:59:59 CEST 2019


To WireGuard Developer,

    Hello, When I use WireGuard For iOS (https://apps.apple.com/us/app/wireguard/id1441195209) I found that it could not connect to the server side properly. When I checked the logs I found this error, which is consistent with the feedback in the following link:
https://www.reddit.com/r/WireGuard/comments/ax3h0c/failed_to_send_handshake_initiation_on_ios/

    When I further checked the problem, I found that there is no Wireless Setting option in the WireGuard settings page in the iOS settings. I understand that this setting will only appear in iOS devices with Cellular sold in China. Under normal circumstances, China region devices will pop up the user permission to use data when an app first runs (You can select: off / WLAN Only / WLAN & Cellular Data), but WireGuard does not pop up the alert when it first runs, so the Wireless setting option does not appear in the iOS settings, it results in It is WireGuard that can never use any network (WLAN and Cellular Data).

    Further inquiry and learning related materials, I learned that it is possible that WireGuard only uses the underlying socks to connect, there is no operation to actively connect to the network, causing iOS to not pop up an alert. This should be a system bug that has not been well resolved since iOS10. However, due to the experience of some developers, there is an easy way to solve this problem. When the app first runs or there is a related error, open a URL session to force internet access attempt, then the system will pop up the network permission, and all problems will be solved. Here is a code to solve the same problem for reference:
https://stackoverflow.com/a/43670783

    I hope the above information can help you solve this problem. I really like the design of WireGuard and iOS App, It is very convenient to use. I am looking forward to updating it to a version that can be used normally.

    Sincerely, I wish you all the best!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.zx2c4.com/pipermail/wireguard/attachments/20191026/971123f7/attachment.html>


More information about the WireGuard mailing list