Can't access my URL from inside my network

I setup a no-ip URL which works beautifully outside my network. But when I use the same URL form within my network then it takes extremely long to load compared to accessing remotely. I can access fine using the internal ip but that won’t really be practical to keep switching my account every time I’m home. I’m a beginner to all of this and used nextcloudpi.

I forwarded my ports 80 and 443 to point to the local ip.

I made an entry in my hosts file on the client machine to associate the domain to the internal network IP address. the hosts file is edited with a text editor. The hosts file is in different locations, depending on the client operating system. in linux, for example, it is /etc/hosts

I think it could be a router problem. Perhaps you can set something in your network router.