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
loclx tunnel http
If the domain is then LocalXpose servers will do the TLS termination and forward the traffic for you through secure tunnel, if you use your own custom domain like then 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-Forwarded-For and X-Real-Ip will be added to the headers so you can get the real IP address of your clients.


Tunnel with custom temporary subdomain

loclx tunnel http --subdomain hello

Tunnel with custom reserved domain

loclx tunnel http --reserved-domain
# or or '*'
Make sure to reserved the domain before using it, check here.

Tunnel with custom wildcard domain

First reserve a wildcard custom domain, then run HTTP/s tunnel on that domain by running
loclx tunnel http --reserved-domain '*`
This will start HTTP/s tunnel with a wildcard custom domain, for example if the wildcard custom domain is * then you will be able to access it through the internet using:
  • ..etc itself will not be tunneled to your wildcard custom domain, it needs to be reserved too and create a separate tunnel for it.
You can reserve multiple wildcard custom domain for the same domain name for example you can reserve *, * and *
The precedence here will be for the nearest match for example:
Public URL
Matched Tunnel
No match