A simple CLI tool to generate QR codes for local servers, making it easy to open your development server on mobile devices connected to the same network.
- Detects active local servers on common development ports (e.g., 3000, 8000, 8080, 5173, 5000, etc.).
- Generates a QR code for each detected server, so you can quickly open the site on your phone or tablet.
- Shows your local IP address for easy reference.
- Optional flag to show all checked ports (not just active ones).
- Works with any framework or server (React, Vite, Next.js, Express, etc.).
Install globally from npm:
npm install -g open-local-cliFrom your terminal, simply run:
open-localThis will:
- Scan a set of common local development ports.
- Print your local IP address.
- For each active server found, display a QR code you can scan with your mobile device.
To see the status of all checked ports (not just the active ones):
open-local --showor
open-local -s🔍 Checking local server ports...
Local IP Address: 192.168.1.42
✅ Server found on port 3000: http://12.169.1.42:3000

Scan the QR code above to open http://12.169.1.42:3000 on your mobile device.
❌ No server found on port 8000.
❌ No server found on port 8080.
...
By default, the tool checks these ports:
- 1234, 1337, 19000
- 27017
- 3000, 3001, 3002, 3006, 3007, 3100, 3101, 35729
- 4000, 4001, 4040, 4200
- 5000, 5001, 5005, 5050, 5051, 54321
- 6000, 6006, 6060, 6379, 6543, 6767
- 7000, 7070, 7777
- 8000, 8001, 8002, 8080, 8081, 8082
- 9001, 9876
When developing locally, it's often useful to test your site or app on a real mobile device. This tool makes it effortless to:
- Find your local server's address
- Generate a QR code for instant access on your phone
MIT