Test your local dev server from a real phone. No ngrok, no tunnels, no separate IP for your laptop. Tailscale gives your phone a path to your dev box's localhost.
GalleryDev WorkflowIntermediate~30 minPrereqs: M3
Why this project
Real-device testing of a web app is fiddly. Same-wifi tricks break when your laptop and phone are on different networks. ngrok works but burns tunnel limits and gives random URLs that change. Tailscale Just Works — your laptop and phone are on a stable network with stable hostnames, regardless of where either is. OAuth callbacks and HTTPS-gated browser features (camera, PWA install) suddenly work in dev.
Who this helps
You're building a web app and need real-device Safari/Chrome testing
You're tired of ngrok's free-tier limits and random URLs
Your app uses OAuth or browser features that need a stable HTTPS URL even in dev
What you get
Your dev server reachable from your phone at http://your-laptop:5173 (or HTTPS via Serve)
Stable hostname that doesn't change between sessions
Real Let's Encrypt cert if you use Tailscale Serve (unlocks PWA install, camera, getUserMedia)
OAuth callbacks that actually work in dev because the redirect URI is stable
Phone hits the laptop's tailnet hostname; Tailscale Serve provides HTTPS + cert; the dev server (bound to all interfaces) responds. OAuth callback URIs are stable across reboots, so cloud OAuth configs keep working.
Prerequisites
Tailscale running on your laptop and phone (M3)
A dev server you're already running locally
HTTPS Certificates enabled in admin → DNS (only if you want HTTPS)
Steps
Confirm both devices see each other ~2 min
From either, tailscale status should list the other.
Bind your dev server to all interfaces ~3 min
By default, dev servers bind to 127.0.0.1 only — meaning only the local machine can reach them. Bind to 0.0.0.0:
Vite: vite --host
Next.js: next dev -H 0.0.0.0
Django: python manage.py runserver 0.0.0.0:8000
Flask: flask run --host=0.0.0.0
Most node servers: HOST=0.0.0.0 npm run dev
Reach it from your phone ~1 min
On your phone's browser, navigate to http://your-laptop:5173 (use your actual hostname/port). The page loads.
Optional: HTTPS for service workers, camera, geolocation ~5 min
Browsers gate PWA install, camera, getUserMedia to HTTPS. Tailscale Serve gives you HTTPS for free: