I followed a tutorial to set up duckdns and nitrux so I can access home assistant away from home. After I set it up and restarted home assistant it boots and it shows the local IP. When I try to access the duckdns address it gives me a 502 error. I’m very new to home assistant.
That solved using the local address. Thank you. But my duckdns address does not work still.
Have you set up port forwarding?
Does the IP address on the DuckDNS admin page (where you set up your domain) match the the public IP address shown in your router?
DuckDNS add-on logs?
I have port forwarding set up. I’m not sure how to see if it matches. I have DuckDNS installed on home assistant.
DuckDNS Logs:
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
INFO: Using main config file /data/workdir/config
- Account already registered!
[22:09:56] INFO: OK
72.223.75.144
NOCHANGE
[22:09:57] INFO: Renew certificate for domains: (my duck dns address) and aliases:
INFO: Using main config file /data/workdir/config
Processing (my duckdns address)
- Checking domain name(s) of existing cert… unchanged.
- Checking expire date of existing cert…
- Valid till Mar 8 03:08:40 2024 GMT (Longer than 30 days). Skipping renew!
Whenever I try to access the duckdns address it says 400 bad request.
It matches.
Ok, good.
What ports did you forward (internal and external ports)?
I have NGINX set to port 8126. I set a port forward of 8126 external to 8126 internal.
That is the first time you have mentioned you are using a reverse proxy. Disable or remove it and see if you have DuckDNS working correctly first.
I disabled it and the link is still not working. Should I try to change the port forward to the home assistant port? Sorry for not mentioning NGINX before. I used this tutorial: https://youtu.be/zbchVXoMskk?si=QJj64XVh8FqAmsYr The logs just say the same thing over again.
NOCHANGE
[12:56:51] INFO: OK
72.223.75.144
I got it to work when I turned off the proxy and used a port forward from external port 443 to internal port 8123.