HTTP tunnels allows you to expose your local web servers to the internet, you will be given a shareable URL that is accessible from the internet, This tunnel will be running in HTTP/s.
Example: Creating HTTP tunnel with random subdomain in United State and forward the traffic by default to 127.0.0.1:8080
loclx tunnel http
If the domain is
sub.loclx.iothen LocalXpose servers will do the TLS termination and forward the traffic for you through secure tunnel, if you use your own custom domain like
example.comthen LocalXpose will generate Let's Encrypt certificate for you automatically and your tunnel will be end-to-end encrypted.
For every HTTP connection from the public internet to your machine, a header
X-Real-Ipwill be added to the headers so you can get the real IP address of your clients.
loclx tunnel http --subdomain hello
loclx tunnel http --reserved-domain hello.example.com
# or hello.loclx.io or '*.example.com'
First reserve a wildcard custom domain, for this example we will assume our wildcard domain is
*.example.com, you can run HTTP/s tunnel with any subdomain of the mentioned wildcard domain (e.g.
loclx tunnel http --reserved-domain api.example.com
You can also run the tunnel with the wildcard domain itself:
loclx tunnel http --reserved-domain '*.example.com'
This will start HTTP/s tunnel with the wildcard custom domain
*.example.com, you will be able to access it through the internet using:
You can reserve multiple wildcard custom domains for the same domain name for example you can reserve
The precedence here will be for the nearest match for example: