Upload not going to defined private ip in hosts file but still going through public

I know this, because before this I setup one up without domain and now my speed is more than halved, my desktop is closer to my nas than my nas is to my router so that’s why i can get better speeds if it goes to my private ip from there.

For this I added:

in the hosts files.
Any idea why this is?

If i ping the domain name it does indeed go to my private ip.

Unfortunately you ignored to provide basic information about your environment and used device, but this is usually a dns problem on your client. You have to be MORE PRECISE and describe IN DETAIL what you are trying, what you’ve done etc., etc.