wireguard.lists.zx2c4.com archive mirror
 help / color / mirror / Atom feed
From: Renym <Renym@protonmail.com>
To: "wireguard@lists.zx2c4.com" <wireguard@lists.zx2c4.com>
Subject: Wireguard iOS: no route to host [Error]
Date: Sat, 26 Oct 2019 17:59:50 +0000	[thread overview]
Message-ID: <FMFm6l4aMU7yRmIgib2QDFHXVFxEarmC-QqQVIgq7-HaT8fVHsS3G2XSmJewCXQ65AQmyQae6fUT8dWluaGHVdzEzVyYn969_RXBxIRldQ4=@protonmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1957 bytes --]

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!

[-- Attachment #1.2: Type: text/html, Size: 2848 bytes --]

[-- Attachment #2: Type: text/plain, Size: 148 bytes --]

_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard

                 reply	other threads:[~2019-11-27  9:43 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='FMFm6l4aMU7yRmIgib2QDFHXVFxEarmC-QqQVIgq7-HaT8fVHsS3G2XSmJewCXQ65AQmyQae6fUT8dWluaGHVdzEzVyYn969_RXBxIRldQ4=@protonmail.com' \
    --to=renym@protonmail.com \
    --cc=wireguard@lists.zx2c4.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).