CawideCawideDocs

Browser Preview

Inspect localhost dev servers on your iPhone over encrypted QUIC tunnels without port forwarding, complete with console logs and DOM inspection.

Cawide includes an in-app browser that lets you preview web applications running on your workstation directly from your phone.

How it works

When developing web applications, running a dev server typically binds to localhost or 127.0.0.1. Accessing this from your phone usually requires setting up ngrok, Cloudflare tunnels, or opening router ports.

Cawide routes browser requests directly through the existing encrypted QUIC tunnel between your phone and your host machine:

  • No open ports: Your local router and firewall settings remain unchanged.
  • No external accounts: No third-party tunneling services are needed.
  • End-to-end encryption: All HTTP traffic travels over the mutual TLS 1.3 tunnel.

Opening a dev server

The in-app browser runs all requests through your host computer's network over the encrypted tunnel. You can access any dev server, port, or internal web app directly from your phone:

  1. Directly in the iPhone app: Tap the Browser tab in your workspace navigation. Cawide detects active local ports automatically, or you can enter any port number or URL in the address bar.
  2. From your computer terminal: Run cawide open <port> as a convenient shortcut to launch the page on your phone immediately:
cawide open 3000

You can also pass a full URL including a path:

cawide open http://localhost:8080/dashboard

Built-in developer tools

The in-app browser includes a mobile developer inspection suite:

  1. Console logs: View console.log, console.warn, and console.error outputs in real time as your front-end code runs.
  2. Network inspector: Inspect outgoing fetch and XHR requests, response status codes, timing metrics, and headers.
  3. DOM inspector: Explore the rendered HTML tree, inspect element attributes, and view computed CSS styles.

These tools allow you to debug mobile rendering issues without connecting your iPhone to a Mac via a USB cable.

On this page