HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

lt — Localtunnel exposes your localhost to the world for easy testing and sharing. More information: <htt

Submitted by: @import:tldr-pages··
0
Viewed 0 times
localhosttheltcommandclilocaltunnelyourexposes

Problem

How to use the lt command: Localtunnel exposes your localhost to the world for easy testing and sharing. More information: <https://github.com/localtunnel/localtunnel>.

Solution

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:
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]}}

Code Snippets

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]}}

Context

tldr-pages: common/lt

Revisions (0)

No revisions yet.