Skip to main content
← All guides

Open localhost on your phone

Why qURL here

One link opens the app on your phone over HTTPS, on mobile data or any Wi-Fi, so features that need a secure page, such as the camera and geolocation, work as they will in production. There is no LAN IP to find, nothing bound to 0.0.0.0, and nothing to install on the phone.

See how LayerV compares to Tailscale Serve →

Steps

With qURL™, publish the app with qurl publish, run qurl share, and open the link on your phone. It works on mobile data as well as Wi-Fi, without finding your laptop’s LAN IP or binding the app to 0.0.0.0, and without an account. The link opens over HTTPS, so browser features that need a secure page work on the phone too.

  1. Install the qURL CLI

    On macOS, install it with Homebrew. On Linux and Windows, download the package for your platform from the latest release; the CLI page lists each one. Nothing asks you to sign up.

    brew install layervai/tap/qurl
    qurl --version
  2. Publish the app

    The first publish creates this device’s identity, starts a background service that keeps serving after you close the terminal (while you stay logged in), and prints the app’s CRID, its stable ID. The Access row says who can open the app: a plain publish makes it private from qurl 3.4.1 on. qurl share turns the CRID into an access link, and the link is what you send.

    qurl publish http://127.0.0.1:3000
    Published
    
      Target:  http://127.0.0.1:3000
      Access:  private — only you and the people you allow can open it
      Status:  serving
    
    CRID: ae4jqpd7eaoslq7jinmjv4yikgzmcxgpjfsuobiniqnko32lpw743ivbeyha

What the recipient sees

Your phone’s browser lands on the app over HTTPS.

More

The session is tied to the network the phone opened the link from, not to the phone itself. If the phone switches between Wi-Fi and mobile data, or a VPN turns on, the app stops loading; run qurl share again and open the new link.

Troubleshooting

Troubleshooting
If you seeDo this
The app loaded on the phone, then stopped respondingThe phone changed network (Wi-Fi to mobile data, or a VPN or iCloud Private Relay switched on), or the session ended after its hour. Run qurl share again and open the new link on the phone; add --session-duration for a longer session, up to 24 hours.
The page loads but API calls, images, or sockets fail on the phoneThe app is calling http://localhost:PORT or another absolute URL. On the phone, localhost is the phone itself. Use relative URLs, or proxy the API through the same dev server.
Show 7 more fixes
More troubleshooting
If you seeDo this
Vite shows “Blocked request. This host is not allowed”Add .qurl.site to server.allowedHosts and restart Vite. See the dev server guide.
qurl publish says the local app is not accepting TCP connectionsStart the app first and check that curl works on the same address. qurl publish connects to localhost as 127.0.0.1, so if your app listens only on IPv6 (on macOS or Linux, lsof -iTCP -sTCP:LISTEN -nP shows [::1]), publish 'http://[::1]:PORT' instead, or start the dev server with --host 127.0.0.1 and publish that address. Neither requires listening on your LAN. Keep the quotes: zsh treats the brackets as a pattern.
The recipient sees “Access link invalid”The link was already used or has expired. Run qurl share again and send the new link.
The recipient sees “Resource not found”The resource was deleted after the link was made. Publish the app again, then run qurl share and send the new link.
publish rejects http://127.0.0.1 with “only HTTPS URLs are allowed”, asks you to log in, or prints no Access: lineYour qURL CLI is out of date. On macOS run brew update, then brew upgrade qurl; elsewhere install the latest release. After updating, qurl --version prints 3.4.1 or later, and every publish is private by default.
publish says this Linux session “can’t reach a systemd user manager”You are in a container or sandbox without a user service manager. Run qurl publish with --foreground; sharing lasts as long as that process runs. Container and CI setup →
publish says “Quota Exceeded” with “protected resource limit reached”, or “Your qURL account has reached a plan limit”You can see this without an account: a device with no account can keep up to 3 active resources, with links that last up to 24 hours. Run qurl list --status active, then qurl delete <CRID> for any you no longer need (it asks you to confirm; --yes skips that). qurl stop keeps the resource, so it does not free a slot.

Frequently Asked Questions

Does my phone need to be on the same Wi-Fi?

No. The phone opens the link and the app over ordinary HTTPS through LayerV, so it can be on mobile data or any network that allows web browsing. If it changes network while you test, open a fresh link.

Why not bind the app to 0.0.0.0 and use my LAN IP?

That makes the app reachable by every device on the network, needs both devices on the same network, and fails on guest and public Wi-Fi that isolate devices from each other. The phone would also load it over plain http://, where browsers block the camera, geolocation, and service workers. A qURL link keeps the app on localhost and serves it over HTTPS to the network the link was opened from.

Who else can reach my app while the link is open?

Opening the link starts a session for that browser, which lasts 1 hour by default. After a browser opens it, another browser on the same public IP cannot use its access. A script or agent that opens the link without a browser is admitted by its network address instead, which other devices on that public IP share until the session ends. A link admits whoever opens it: the API’s IP and country rules do not apply to the signed links qurl share issues. Keep your app’s own sign-in for anything sensitive.

Publish your app now

Install the CLI, then run one command. No sign-up, no API key.

Install the CLI →

Book a pilot

Tell us what to hide. We’ll scope a pilot.

Enterprise starts with a paid pilot on one application, typically 60 to 90 days, credited in full toward year one if you convert within 60 days. After that, an annual package sized to what you protect, not per seat.