by Ken Task.
This isn't a response to the technical issues you are facing, but ... maybe a change to approach in testing ... depending ...
"... use Moodle in my workplace and have been assigned testing."
Will you be the true server admin going forward?
Will there be others who are involved in the decision making going forward?
Local host apps are provided true ... but as you have already experienced issues can rear their ugly heads.
If going forward, will you be Windows platform or Linux? (you'll find more Linux users in these forums than Windows).
A true server will be using https (which involves certs from a CA) and a fully quallfied domain name ... (which involves DNS), and good chance that EMail will be used to communicate (forums,notifications,student engagement, etc) (which involves an SMTP server).
Think your time would be better spent ... given all the above ... to spin up a moodle on your choice of poision in a true server environment. Might be accessible only inside corps private network for a while but then you could involve other stake holders in decision making, etc.
Actually, could be accessible to public internet but only users with manually created accounts can login.
My 2 cents!
'spirit of sharing', Ken