Skip to content

Commit

Permalink
Update README as per angular#6070
Browse files Browse the repository at this point in the history
The 0.0.0.0 host format will never work with current webpack version and will always show "invalid host header". Instead, a valid domain or public IP has to be specified. See angular#6070 .
  • Loading branch information
dimitrovs committed May 28, 2017
1 parent 0d3d9ef commit 1dcea3a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,9 @@ Navigate to `http://localhost:4200/`. The app will automatically reload if you c
You can configure the default HTTP host and port used by the development server with two command-line options :

```bash
ng serve --host 0.0.0.0 --port 4201
ng serve --host <public ip or valid domain> --port 4201
```
You have to use exactly the same `<public ip>` or `<domain` when opening the app or you will get "Invalid Host header".

### Generating Components, Directives, Pipes and Services

Expand Down

1 comment on commit 1dcea3a

@avbentem
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor typo: the `<domain` in the new paragraph is missing a closing bracket; `<domain>`.

Please sign in to comment.