Skip to content

Expose a local web server

Give a local web app or API a public HTTPS URL.

Start an HTTP service on port 3000. Confirm that curl http://127.0.0.1:3000 returns your app.

Publish your service

npx tubu-cli http 3000 --domain my-app.tubu.dev

An integer target port uses 127.0.0.1. To reach another machine or an HTTPS origin, provide the full target URL instead:

npx tubu-cli http http://192.168.1.20:3000 --domain my-app.tubu.dev

Wait for Tunnel ready:. See the HTTP reference for target URL rules.

Verify the result

curl --fail https://my-app.tubu.dev

Expect your local app response. See the FAQ for connection errors.

Use HTTP secret protection when callers must supply a shared secret.