Remote Connection to my home assistant using wireguard and duckdns

Hi guys,

I’m relatively new to HomeAssistant and sadly I can’t get my remote Access to work. I’ve tryed to use WireGuard VPN + DuckDNS, but it keep telling me that handschake is not completed on my phone logs. I’m getting really frustrated and I spend hours searching the web for a different tutorials on how to do it properly, but whatever I tried I can’t get it to work…

I didn’t change a lot in the config. I just had to change the dns to use my AdGuard as dns.
My wireguard config looks like this:

  host: mydomain.duckdns.org
  addresses:
    - 172.27.66.1
  dns:
    - 172.30.32.1
peers:
  - name: hassio
    addresses:
      - 172.27.66.2
    allowed_ips: []
    client_allowed_ips: []

My DuckDNS config:

domains:
  - mydomain.duckdns.org
token: mytoken
aliases: []
lets_encrypt:
  accept_terms: true
  algo: secp384r1
  certfile: fullchain.pem
  keyfile: privkey.pem
seconds: 300

I’ve added this to my configuration.yaml

http:
  ssl_certificate: /ssl/fullchain.pem
  ssl_key: /ssl/privkey.pem

Also I defined this as my external address

https://mydomain.duckdns.org:51820

I’m using a FritzBox 6660 Cable and configured the portforward on port 51820 for my homeassistant

And also I activated dyndns in my FritzBox using the instruction on the duckdns site.
I really need help with this topic and I greatly appreciate every one of you!

Your wireguard addresses are surely not right: they should be public (internet) ones.

If you’re stuck with wireguard, use Tailscale, which also built above wireguard but with zero-configuration.

Zerotier might be a good bet.