I am using reserved ip for my home assistant server. Dnsmasq should work if you insist on using the same external host and domain name.
Wait, maybe it’s me, but this doesn’t make sense. The internal and external are the same url/ ??
Please do not provide solutions using AI. It violates the forum standards

Don’t use ChatGPT
Don’t use ChatGPT, or similar tools, to generate answers that you provide. These tools often produce results that look good but are incomplete, misleading, or just plain wrong. If we believe that you’re doing that then we may suspend your account.
Ok.
But i’am pretty sure that it worked in the past.
Set it up like shown in this tutorial…
So using 1 url to access the HA server from outside and inside the network!
Question is, when using my mobile phone outside the local network, it works fine but when i am inside the local (connected to Wifi) it isn’t.
Setting it up from a laptop locally is not an issue, can use the internal url like htts://192.168.x.x:8123
But how to set it up using my mobile when connented locally.
Any tips or samples are welcome
Anybody any idea.
Weird things
As previously mentioned this sounds like a DNS issue. If you don’t have an internal DNS server then I’d expect in both cases you’re getting the external IP address when you try to access xxxxxx.duckdns.org. Unless you have a VPN server that you use to access you’re home network. In either case you need to try and ping xxxxxx.duckdns.org both while on and off your network to see what address is returned from the DNS query and used in the ping. I use the same domain name for my HA server both on and off the network, but my home FireWall can do a DNS override, so it simply returns the internal IP address for HA when I’m on my network. When I’m off my network, then an external DNS server provides the correct IP address for my HA server. Some Wifi routes have the DNS override capability, so you should check yours.
Hi Brian,
When pinging to xxxxx.duckdns.org from inside and outside my network gives my the same (external) ip address.
- When using my laptop, connected to lan and not wifi, i cannot connect to the ha server with xxxxx.duckdns.org
- From the laptop i can connect to ha server using it’s internal https://192.168.x.x
- When using my cellphone connected with wifi i cannot connect to ha server at all.
- when using my cellphone i can connect to ha server using xxxx.duckdns.org
Don’t know what to do because nothing in the settings is changed, as far i know
Check your network router to see if lets you do DNS overrides and if does have it respond to the query of xxxx.duckdns.org with your internal HA ip address of 192.168.x.x.
The cellphone connecting successfully makes me thing you’re getting the connection out over the cellular network, so via the outside routable IP address. You could get a traceroute application on your cell phone and see how it routes to the xxxx.duckdns.org address.
The laptop connecting via the IP address shows that if you can get your route to do the DNS override you should be good.
To me any previous success you had connecting on the internal network with the duckdns.org name doesn’t make sense, unless your router was supporting hairpin routing. Maybe you did an update on your router, the route used to support hairpin routing and now they’ve disabled it. If you can enable hairpin routing on your router that could also work.
Untill now problem not solved.
I want to try it using dnsmasq.
Can somebody explain me how to set this up?
defaults:
- 8.8.8.8
- 8.8.4.4
forwards:
hosts: - host: ???
ip: ???
Many thanks in advance
OK lets walk through this together. Before we start I use a DNS and DHCP server that is external on my network from Home-assistant. My home-built server full-fills both those rolls.
8.8.8.8 and 8.8.4.4 are Googles Domain Name System (DNS ) servers.
forwards: would perhaps be your Internet Service Provider (IPS) DNS servers That being the next authority for ‘external’ name resolution. e.g. home-assistant.io resolves to cloudflare with three IP addresses.
Host would be the name of your internal node (PC) If you called the homeassistant server ‘spanner’ then that is what it would be.
IP is the address it would be found at for example 192.168.1.2
So your DNS address would be: spanner resolving to 192.168.1.2
It is important to mention that if your router provides the IP addresses on your network then you should create a ‘reservation’ so ‘spanner’ gets the same IP every time and it is then not issued to another node on the network.
I cannot tell you how to set up your router as there are so many but I hope this helps?