From 2e812382774b769c1f486c9ae4a4b3dc9bdc9c2c Mon Sep 17 00:00:00 2001 From: Dominic Watson Date: Thu, 28 Jul 2016 15:23:43 +0200 Subject: [PATCH] Listen on Host 0.0.0.0 by default Before webpack, the server used to bind to 0.0.0.0 by default to allow connecting via network IPs like 192.168.5.1. This makes it easier to develop mobile applications as you can just connect to the same network and access via IP. --- addon/ng2/commands/serve.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addon/ng2/commands/serve.ts b/addon/ng2/commands/serve.ts index 7e048aff2a39..e96e960a8572 100644 --- a/addon/ng2/commands/serve.ts +++ b/addon/ng2/commands/serve.ts @@ -37,7 +37,7 @@ module.exports = Command.extend({ availableOptions: [ { name: 'port', type: Number, default: defaultPort, aliases: ['p'] }, - { name: 'host', type: String, default: 'localhost', aliases: ['H'], description: 'Listens on all interfaces by default' }, + { name: 'host', type: String, default: '0.0.0.0', aliases: ['H'], description: 'Listens on all interfaces by default' }, { name: 'proxy', type: String, aliases: ['pr', 'pxy'] }, { name: 'insecure-proxy', type: Boolean, default: false, aliases: ['inspr'], description: 'Set false to proxy self-signed SSL certificates' }, { name: 'watcher', type: String, default: 'events', aliases: ['w'] },