2020-10-06 16:33:14 +05:30
|
|
|
# lt
|
|
|
|
|
|
|
|
> Localtunnel exposes your localhost to the world for easy testing and sharing.
|
|
|
|
> More information: <https://github.com/localtunnel/localtunnel>.
|
|
|
|
|
|
|
|
- Start tunnel from a specific port:
|
|
|
|
|
2025-04-25 21:19:03 +03:00
|
|
|
`lt {{[-p|--port]}} {{8000}}`
|
2020-10-06 16:33:14 +05:30
|
|
|
|
|
|
|
- Specify the upstream server doing the forwarding:
|
|
|
|
|
2025-04-25 21:19:03 +03:00
|
|
|
`lt {{[-p|--port]}} {{8000}} {{[-h|--host]}} {{host}}`
|
2020-10-06 16:33:14 +05:30
|
|
|
|
|
|
|
- Request a specific subdomain:
|
|
|
|
|
2025-04-25 21:19:03 +03:00
|
|
|
`lt {{[-p|--port]}} {{8000}} {{[-s|--subdomain]}} {{subdomain}}`
|
2020-10-06 16:33:14 +05:30
|
|
|
|
|
|
|
- Print basic request info:
|
|
|
|
|
2025-04-25 21:19:03 +03:00
|
|
|
`lt {{[-p|--port]}} {{8000}} --print-requests`
|
2020-10-06 16:33:14 +05:30
|
|
|
|
|
|
|
- Open the tunnel URL in the default web browser:
|
|
|
|
|
2025-04-25 21:19:03 +03:00
|
|
|
`lt {{[-p|--port]}} {{8000}} {{[-o|--open]}}`
|