How to launch a browser together with the server - lwsjs/local-web-server GitHub Wiki
Setting the --open flag will launch a browser and navigate to your web app.
By default, it navigates to 127.0.0.1. For example, this command will open a browser tab and navigate to http://127.0.0.1:8000.
$ ws --open
Listening on http://mba4:8000, http://127.0.0.1:8000, http://192.168.1.76:8000
Setting the --hostname option will override the default. This will open a browser tab and navigate to http://localhost:8000.
$ ws --hostname localhost --open
Listening on http://localhost:8000