diff --git a/src/cli.ts b/src/cli.ts index 05c3dd8b..1bf52df6 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -193,9 +193,11 @@ const main = async (): Promise => { console.log(" - Not serving HTTPS"); } - if (args["open"]) { - await open(serverAddress).catch(console.error); - console.log(` - Opened ${serverAddress}`); + if (!args.socket && args.open) { + // The web socket doesn't seem to work if using 0.0.0.0. + const openAddress = `http://localhost:${port}`; + await open(openAddress).catch(console.error); + console.log(` - Opened ${openAddress}`); } };