To access application hosted locally over the network using HTTP, we can use ngrok
Download ngrok zip file from the website into your local machine and unzip. That gives you an executable file. Navigate to the executable file, and run
ngrok http 80
# OR
./ngrok http 80
# where 80 is the port on which the web server is listening
This should open secure tunnel to localhost and flash the ngrok URL that points to localhost. Use the URL to access the localhost from anywhere. Obviously, the URL works only when the ngrok is running locally.
There are alternatives to ngrok if you would like to explore. Forward for example has paid plans and works well w/ virtual hosts.