diff --git a/packages/@angular/cli/tasks/serve.ts b/packages/@angular/cli/tasks/serve.ts index 7804d1549cc3..f323136b1104 100644 --- a/packages/@angular/cli/tasks/serve.ts +++ b/packages/@angular/cli/tasks/serve.ts @@ -46,7 +46,7 @@ export default Task.extend({ const serverAddress = url.format({ protocol: serveTaskOptions.ssl ? 'https' : 'http', - hostname: serveTaskOptions.host, + hostname: serveTaskOptions.host === '0.0.0.0' ? 'localhost' : serveTaskOptions.host, port: serveTaskOptions.port.toString() }); let clientAddress = serverAddress; @@ -181,7 +181,8 @@ export default Task.extend({ ui.writeLine(chalk.green(oneLine` ** - NG Live Development Server is running on ${serverAddress} + NG Live Development Server is listening on ${serveTaskOptions.host}:${serveTaskOptions.port}, + open your browser on ${serverAddress} ** `));