Thanks so much for your prompt response.
Asking out of curiosity, since I intended to use my server's private IP address instead of a public one, will the above still work?
Below is how I am currently accessing the website from a different machine in the same LAN:
The goal is to have the site accessible using a custom domain name like www.mydomain.com:8080/moodle.
Will remove the port number later.