Expose a local web server
This tutorial will explain how to expose a localhost web server and give it a shareable link that is accessible from the internet.
We have here a website as follows
We will serve the website by using any webserver (apache, nginx..etc), in our case we chose
http-server(a simple, zero-configuration command-line http server).
Starting a webserver
Now we have website running on localhost at
loclx tunnel http --to 127.0.0.1:8081 --subdomain hello-world
After creating the tunnel and getting a shareable link to our website, we can access the website from that URL.
Our website accessible now from the internet
Last modified 8mo ago