Skip to content

Commit 1dcea3a

Browse files
authored
Update README as per angular#6070
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 .
1 parent 0d3d9ef commit 1dcea3a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,9 @@ Navigate to `http://localhost:4200/`. The app will automatically reload if you c
5959
You can configure the default HTTP host and port used by the development server with two command-line options :
6060

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

6566
### Generating Components, Directives, Pipes and Services
6667

0 commit comments

Comments
 (0)