Easily access a localhost website from your mobile device.
- Start your localhost server.
- Create a QR code with localview.
npx localview --port 8080
The --port
argument should match the port exposed by the server.
- To visit the exposed URL, scan the QR code with your mobile device.
- Both the server and the mobile device need to be connected to the same network.
- You may need to set you server's host to
0.0.0.0
.