-
Notifications
You must be signed in to change notification settings - Fork 12k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ng serve - doesn't listen on all interfaces by default #2275
Comments
Do you know how to do that? I am facing the same issue. |
Nvm. Works with command |
Hello! I've launched ng serve using the command above, but when I'm trying to access the server through public IP address, I'm getting the error: Thank you! |
The full command should look like this: |
ng serve --port 8080 --host 0.0.0.0 This solution works fine |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
ng help
lists Listens on all interfaces by default under the ng serve section. However, in fact the server listens on127.0.0.1
only.Please, set the node.js to
0.0.0.0
or change the message.Win8.1
ng --version
. If there's nothing outputted, please runin a Terminal:
node --version
and paste the result here:angular-cli: 1.0.0-beta.15 node: 6.6.0 os: win32 x64
do on your code? etc.
ng init; ng serve
more information.
The text was updated successfully, but these errors were encountered: