FeaturesGuidesDocumentationPricingGet Started

Test Localhost on Your Phone

Use LocalToLink's terminal QR code to open your local dev server on a phone or tablet over HTTPS.

Why you need a tunnel for phone testing

Your phone cannot reach localhost on your laptop — they are different devices on different networks. A tunnel gives your phone a public HTTPS URL that forwards to your dev server.

Quick workflow

npx localtolink --port 5173

LocalToLink prints:

  1. A public URL like https://k7m2x9p4q1.localtolink.com
  2. A QR code in the terminal

Scan the QR code with your phone camera to open the URL instantly.

Disable QR code

For CI or headless environments:

npx localtolink --port 5173 --no-qr

The public URL is still printed — share it manually or via messaging.

Browser interstitial

The first time you open the tunnel URL in a mobile browser, you see LocalToLink's visitor warning page. Tap through once — a cookie bypasses it for 24 hours on that subdomain.

Testing tips

Session limits

Framework-specific notes

Try it now

Start a tunnel from your project directory — no account required.

$ npx localtolink

See the full CLI reference for flags and exit codes.

LocalToLink CLI 1.0.1 — verified 2026-09-05