Reputation: 11
I run an angular 2 project with ng serve --host 0.0.0.0 --port 4000 and try to access it from computers on the same network. On some computers it loads perfectly and on some it shows an empty page with no error in the console. I checked the index page html and i see there the title and the icon but no directives on the app-root or the styles in the header. Thanks for helping :)
Upvotes: 0
Views: 1035
Reputation: 17600
try this
ng serve --host 0.0.0.0 --port 4000 --disable-host-check
and be sure that in that computer firewall allow it
Upvotes: 1