Page 1 of 1

Wireguard - IP address changes during the night

Posted: Fri Nov 27, 2020 12:15 am
by Slipi089
Hello and first of all thank you very much for the great app.

But now to my question, how do I set up Wireguard to automatically reconnect when the IP address changes during the night? With openvpn it works, only wireguard never wants to connect and always seems to connect to the old IP and does not take the new one from dnydns. But as said before with openvpn it works without problems.

Re: Wireguard - IP address changes during the night

Posted: Fri Nov 27, 2020 9:44 am
by admin
Hello!
The two protocols are very different, and therefore have different behaviors.
This happens because in WireGuard the hostnames are resolved only when the VPN starts, just before adding peers.
The official WireGuard kernel implementation also has the same behavior.
Anyway I will try to see if it's possible to solve this problem in my implementation...

Re: Wireguard - IP address changes during the night

Posted: Fri Nov 27, 2020 7:13 pm
by Slipi089
That would be great, many thanks in advance

Re: Wireguard - IP address changes during the night

Posted: Mon Dec 07, 2020 9:29 am
by admin
The problem can be solve by using the option "Resolve hostname before reconnecting" introduced in new version 1.00.66.
This option forces the app to resolve the hostname each time a new handshake is initiated.

Here the steps to enable the new option:
  • edit the VPN profile
  • tap on "Peers"
  • tap on server's name
  • select "Resolve hostname before reconnecting"
  • save the changes

Re: Wireguard - IP address changes during the night

Posted: Tue Dec 08, 2020 12:06 am
by Slipi089
Thank you :)