PiVPN with Wireguard unreliable when IP changes?

Damn, okay. Thanks for pointing that out. I should have read more carefully. :slight_smile:

DDNS having the correct external IP address (mxtoolbox says yes) :heavy_check_mark:
port forwarding done :heavy_check_mark:
correct local device IP (static) :heavy_check_mark:
client having the correct settings (probably) :heavy_check_mark:
pass pivpn debug (ok) :heavy_check_mark:

I managed to resolve the situation. Simply rebooted the router, the iPhone, and the RaspberryPi. I guess there’s no way to run a sh script on an iPad or iPhone though. :wink:

It’s either the client side (i.e. iDevice) or some obscure configuration that makes PiVPN/Wireguard unstable for me. It mostly works, however from time to time it simply stops functionning. It’s fickle!
The client device mostly shows up as currently connected, when I then run pivpn -c, but I can’t connect to my local network.

I would wonder if this is possible :smiley:

But usually, you don’t keep the VPN active all time on your mobile device. Isn’t it? And while switching VPN active, the client will receive correct IP/DDNS. The script makes sense on systems keeping a VPN connection active for days, weeks aso.

1 Like

No, I just switch it sporadically on. Thanks for clearing that up.