diff --git a/packages/@angular/cli/tasks/serve.ts b/packages/@angular/cli/tasks/serve.ts index a455ef8e2afd..7cb5f917e9eb 100644 --- a/packages/@angular/cli/tasks/serve.ts +++ b/packages/@angular/cli/tasks/serve.ts @@ -44,7 +44,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; @@ -171,7 +171,7 @@ 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} ** `));