I have a domain, example.com and it has a A record pointing to my external IP. Port 80 is forwarded to my server. However, when I try to access it from inside the local network (behind the external IP) I can not connect. (Not only for that port, but everything) This does work externally (Port forwards are set up correctly)
Can someone explain me why this is? (Does this have something to do with my router?) Right now, I've solved this problem using a change in my hosts file, so it points to the internal IP, but I would like to know why I had to do this.
Is there a non-hacky way to fix this? So devices in my local network can also access the server using the domain name (without having to make any changes)?