localtunnel
exposes your localhost to the world through a public URL
TLDR
Expose local port
$ lt --port [3000]
Use custom subdomain$ lt --port [3000] --subdomain [myapp]
Specify local host$ lt --port [3000] --local-host [192.168.1.10]
Use custom server$ lt --port [3000] --host [https://tunnel.example.com]
Print only URL$ lt --port [3000] --print-requests
SYNOPSIS
lt [options]
DESCRIPTION
localtunnel exposes your localhost to the world through a public URL. It creates a tunnel from a public server to your local machine, useful for testing webhooks, sharing work in progress, or mobile testing.
No account required; tunnels are ephemeral and close when the client disconnects.
PARAMETERS
--port port
Local port to expose.--subdomain name
Request specific subdomain.--local-host host
Local host to expose.--host url
Tunnel server URL.--print-requests
Print request info.--open
Open URL in browser.
PROGRAMMATIC USE
$ const localtunnel = require('localtunnel');
const tunnel = await localtunnel({ port: 3000 });
console.log(tunnel.url);
const tunnel = await localtunnel({ port: 3000 });
console.log(tunnel.url);
CAVEATS
URLs are temporary. Subdomains not guaranteed. Free tier has rate limits. Not for production use. Requires Node.js.
HISTORY
localtunnel was created by Roman Shtylman as a simple alternative to ngrok, providing free tunneling without signup.
SEE ALSO
ngrok(1), cloudflared(1), serveo(1), ssh(1)
