Wireguard - IP address changes during the night

Support requests about VPN Client Pro
Post Reply
Slipi089
Posts: 17
Joined: Mon Nov 02, 2020 7:32 pm

Wireguard - IP address changes during the night

Post 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.
admin
Site Admin
Posts: 670
Joined: Fri Feb 15, 2019 4:04 pm
Contact:

Re: Wireguard - IP address changes during the night

Post 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...
Slipi089
Posts: 17
Joined: Mon Nov 02, 2020 7:32 pm

Re: Wireguard - IP address changes during the night

Post by Slipi089 »

That would be great, many thanks in advance
admin
Site Admin
Posts: 670
Joined: Fri Feb 15, 2019 4:04 pm
Contact:

Re: Wireguard - IP address changes during the night

Post 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
Slipi089
Posts: 17
Joined: Mon Nov 02, 2020 7:32 pm

Re: Wireguard - IP address changes during the night

Post by Slipi089 »

Thank you :)
Post Reply