Skip to main content
← All guides

Test a localhost app on real devices in BrowserStack, LambdaTest or Sauce Labs

Why qURL here

Publish the app once and open a link in a device browser that preserves the complete URL. You can use that session without installing a vendor tunnel, and the app stays on your machine behind a link that opens once and a session that ends on time.

See how qURL compares to localhost tunnels →

Steps

BrowserStack Local, the LambdaTest tunnel and Sauce Connect connect a remote device to localhost. If the device browser accepts a complete URL including its # fragment, qURL™ by LayerV offers another route: publish the app locally and open one single-use link per browser. Check fragment transfer in your provider session first. This walkthrough has not been run on the three device farms.

  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
    brew upgrade qurl
    qurl --version
  2. Start the app on 127.0.0.1 and check it answers

    Run your dev server as usual, on the loopback address. Replace 3000 with its port. qURL connects to the app there, so nothing needs to listen on your network.

    curl --fail http://127.0.0.1:3000/

    Check: curl prints your app’s page and exits without an error. If it says it couldn’t connect, start the app first, or use the port it runs on.

  3. Allow qURL’s hostname if your dev server checks Host

    The device’s browser arrives at your app with Host set to c-….qurl.site, not localhost. A dev server that checks the Host header refuses it until that hostname is allowed: for Vite, add .qurl.site to server.allowedHosts. The linked guide lists the setting for each framework. Skip this step if your server does not check Host.

    Allow a tunnel’s hostname in your dev server →

    Check: After the setting, curl with the header still answers: curl --fail -H "Host: c-test.qurl.site" http://127.0.0.1:3000/ prints the page instead of a host error.

  4. Publish the app once, with a name

    The first qurl publish creates this device’s identity, with no account, starts a background service that keeps serving after you close the terminal, and prints the app’s CRID, its stable ID. The name is what a tester sees on the access page; it is public text, so keep secrets out of it. A plain publish is private: nobody can open the app until you share a link. Publishing the same address again reuses the resource and its CRID.

    qurl publish http://127.0.0.1:3000 --name "Mobile test" -o json

    Check: The reply says private: true. Save the CRID it returns: every link below needs it.

  5. Start a live session on a real device in the vendor’s dashboard

    BrowserStack Live is its manual testing platform for websites and web apps on Windows, macOS, Android and iOS devices, and BrowserStack’s device FAQ says all its Android and iOS mobile devices are real devices stationed in its data centres, not emulators or simulators. In LambdaTest (TestMu AI) real-device browser testing, you pick a device and enter the website URL in the address bar. In Sauce Labs Live Testing, you enter the complete URL of the website or web application you want to test, and a real device there is a physical Android or iOS device hosted by Sauce Labs. Leave the vendor’s Local Testing, Tunnel or Sauce Connect option off: nothing in this flow uses it. When the launcher asks for a URL to start with, any page will do; check its browser address bar before you issue a link. First paste a harmless URL ending in #check in the remote browser and confirm the fragment survives. BrowserStack Live supports pasting from the local keyboard; Sauce Labs provides a clipboard under Tools on real devices. Clipboard transfer on LambdaTest and the complete qURL journey on vendor devices have not been tested here. If your session cannot transfer a full URL privately, stop before creating a link.

    Check: A real iPhone or Android device is on screen with its browser open, and a harmless URL ending in #check keeps that fragment in the address bar. If it does not, stop before creating a link.

  6. Test, in that browser and that session

    Click through the app as the tester would. Live updates reach the device through qURL: WebSockets and Server-Sent Events pass through, so a dev server’s hot reload keeps working. The session lasts for the --session-duration you set, whether or not the link has since expired. A new device, or a new session on the same device, is a new browser, so make a new link with qurl share for each; the app does not need to be published again.

    Check: Edits you save on your machine show up on the device without a new link, as long as the same browser session is open.

  7. Stop sharing when the run is done

    qurl stop pauses serving the app; qurl start resumes it, with the same CRID. An opened session also ends on its own at its --session-duration.

    qurl stop <CRID>

    Check: qurl status <CRID> -o json no longer reports connection_state "serving".

What the recipient sees

When the remote browser opens the complete link, expect the app on a recipient-specific qurl.site hostname.

More

Pages, WebSockets and Server-Sent Events pass through, so hot reload and live updates reach the device. The session belongs to that browser: another browser on the same public IP cannot use its access, and the same link opened again shows “Access link invalid”. Your app’s own sign-in still applies, so give the tester a test account.

Each vendor’s route to localhost, and the qURL route

The middle columns are each vendor’s documented path. The last column is the same for all three.

Each vendor’s route to localhost, and the qURL route
VendorDocumented route to localhostWhat runs on your machineWith qURL
BrowserStackLocal Testing: the BrowserStack Local app on Windows and macOS, or the Local binary on Linux. In Live, a green indicator beside Local Testing on the vertical toolbar confirms it is on, and you then enter an address such as localhost:3000 in the remote browser../BrowserStackLocal --key YOUR_ACCESS_KEYqurl publish once, then qurl share for each device; paste the link into the device’s browser
LambdaTest (TestMu AI)The TestMu AI tunnel, which its docs describe as the way to test locally hosted web apps on cloud-based real machines. In a real-device session, you select the Tunnel option in the top right corner.LT --user <login email> --key <access key> --tunnelName <name>The same: one publish, one link per device, pasted into the device’s browser
Sauce LabsSauce Connect 5, a client application that creates a tunnel between your environment and Sauce Labs, with binaries for Linux, macOS, Windows and Docker. In Live Testing, you select a Sauce Connect Proxy when the site is on localhost or a private network.sc run --username <username> --access-key <UUID> --region <data center> --tunnel-name <value>The same: one publish, one link per device, pasted into the device’s browser

Sources: Vendor: Set up Local Testing in BrowserStack Live, BrowserStack Live: paste text into a remote session, Vendor: Open a website in BrowserStack Live, Vendor: BrowserStack Local Testing overview, Vendor: BrowserStack Live overview, Vendor: BrowserStack FAQ on real devices, Vendor: TestMu AI local testing (tunnel) on Windows, Vendor: LambdaTest testing locally hosted pages, Vendor: LambdaTest browser testing on real devices, Vendor: Sauce Connect 5, Vendor: Sauce Connect 5 installation, Vendor: sc run (Sauce Connect 5 CLI), Vendor: Sauce Labs live cross-browser testing, CLI README.

Free and trial live sessions are short

Set --session-duration to cover the run. The limits below are the vendors’ own statements for free and trial use.

Free and trial live sessions are short
VendorStated limit for free or trial live testing
BrowserStackFree trials are limited to 30 minutes of Live (and 30 minutes of App Live)
LambdaTest (TestMu AI)Free plan: live sessions of 2 minutes each, 5 free sessions a month on real devices
Sauce LabsCross-browser tests for free users have an 11-minute limit from the session start
qURL session1 hour by default, up to 24 hours with --session-duration; the link that opens it waits up to --ttl, 24 hours at most without an account

Sources: Vendor: BrowserStack FAQ on usage limits, Vendor: TestMu AI pricing, Vendor: Sauce Labs live cross-browser testing, qURL access behaviour.

Troubleshooting

Troubleshooting
If you seeDo this
The device opens the qurl.link homepage or stays on the opener instead of loading the appThe part of the link after # was dropped on the way in, so the browser reached qurl.link without the secret. Make a new link with qurl share, and paste the whole link into the address bar of the browser on the device, not into a URL field on the session launcher.
The device’s first open says the link was already usedA browser-capable scanner, you, or an earlier device opened it first; a plain preview cannot use the secret after #. Make a new link with qurl share and send it straight to the device. Fix a one-time link that was already used →
Show 8 more fixes
More troubleshooting
If you seeDo this
The device shows “Blocked request”, “Invalid Host header” or a similar host errorYour dev server rejects qURL’s hostname. Allow .qurl.site, as in step 3; the linked guide lists the setting for each framework. Allow a tunnel’s hostname in your dev server →
The app stopped answering on the device partway through the testThe qURL session ran out, or the vendor ended the live session. A session lasts 1 hour by default; make the next link with qurl share --session-duration 2h or longer, and check the vendor’s free or trial session limit against your run. A new vendor session is a new browser, so it needs a new link.
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

Do I still need BrowserStack Local, the LambdaTest tunnel or Sauce Connect?

Only if the device browser preserves the whole URL, including the # fragment, can qURL replace the vendor tunnel for this manual walkthrough. That has not been verified on these three device farms. The vendor tunnels remain the documented route for automated runs.

Can I use one link on several devices?

No. A link from qurl share opens once, and the session it starts belongs to the browser that opened it. Make one link per device with qurl share; the app stays published, so there is nothing to redo on your machine.

Does hot reload work on the device?

Yes, through the same session. WebSockets and Server-Sent Events pass through qURL, so a dev server’s reload channel reaches the device’s browser. If the page loads but never updates, the hot reload guide lists the client settings each dev server needs behind a tunnel.

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.

Does my computer have to stay on?

Yes. The app is served from your machine, so the machine and the app must be running and connected. The background service reconnects after sleep, but the app is unavailable while the machine is asleep.

How do I stop sharing?

Run qurl stop <CRID> to pause serving the app, and qurl start <CRID> to resume it; a stopped app still counts toward your resource limit. qurl delete <CRID> removes the resource for good after asking you to confirm; its CRID can never be shared again.

Put your app on a real device now

Publish the running app, make one link per device, and paste each link into the browser on that device. Use your device-farm account; publishing the app needs no LayerV account.

Or use 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.