Peer enables invalid remote server ip address 127.0.0.0 when connected. Device is an iPhone 16 with latest public iOS. Server is running Ubuntu 24.04 LTS on Raspberry Pi 5
Client .conf configuration file:
[Interface] PrivateKey = <Peer’s private key> Address = 10.8.0.10/24 DNS = <My local DNS servers>
[Peer] PublicKey = <Remote server’s public key> Endpoint = <public FQDN>:51820 AllowedIPs = 0.0.0.0/0 PersistentKeepalive = 30
Any suggestion about what I have done wrong
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Heya,
<public FQDN>
provided in the Endpoint
field resolves correctly to the public IP address of your server. You can manually verify this by running a DNS lookup from your iPhone or any other device.127.0.0.0
, which is invalid.Endpoint
value to ensure it’s correctly formatted. It should be something like your.domain.com:51820
.AllowedIPs = 0.0.0.0/0
should allow all traffic through the VPN tunnel. However, this will route all traffic through the tunnel, which might be unnecessary if you only need specific routes.AllowedIPs
to the required subnets.PersistentKeepalive = 30
is fine, especially if you’re trying to maintain a connection behind NAT. However, this setting should not impact the IP address resolution.51820
(or whichever port you’ve chosen).Heya, @kjellingemeisal
I’ll recommend checking the logs and also restarting the Wiregard service.
To check the server logs you can run:
sudo journalctl -u wg-quick@wg0
Also if you’ve made any recent DNS changes this can take some time to properly update.
Regards
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.