commands.sh

lt

all

Localtunnel exposes your localhost to the world for easy testing and sharing.

More info →

Options (4)

-p, --portboolean

Start tunnel from a specific port

Example: lt {{[-p|--port]}} {{8000}}
-h, --hostboolean

Specify the upstream server doing the forwarding

Example: lt {{[-p|--port]}} {{8000}} {{[-h|--host]}} {{host}}
-s, --subdomainboolean

Request a specific subdomain

Example: lt {{[-p|--port]}} {{8000}} {{[-s|--subdomain]}} {{subdomain}}
-o, --openboolean

Open the tunnel URL in the default web browser

Example: lt {{[-p|--port]}} {{8000}} {{[-o|--open]}}

Examples (5)

Start tunnel from a specific port

lt [-p|--port] 8000

Specify the upstream server doing the forwarding

lt [-p|--port] 8000 [-h|--host] host

Request a specific subdomain

lt [-p|--port] 8000 [-s|--subdomain] subdomain

Print basic request info

lt [-p|--port] 8000 --print-requests

Open the tunnel URL in the default web browser

lt [-p|--port] 8000 [-o|--open]
made by @shridhargupta | data from tldr-pages