Why is it necessary to upload the ng serve in 0.0.0.0?

0

I installed Angular inside a Docker container ( fabiojanio / ionic ) however, I can only access the application when I start the server this way:

ng serve --host 0.0.0.0

I would like to use only:

ng serve

How to do this?

    
asked by anonymous 06.10.2018 / 03:01

1 answer

0

Using the --host 0.0.0.0 you are releasing external access to the Angular development server.

By default the server goes up as host localhost

What would prevent access to the angular server from outside the container.

I think I should keep the host as it has already done.

I hope I have helped

    
08.10.2018 / 04:25