Yuval
Yuval

Reputation: 11

Angular project shows blank page on some computers at the same network

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

Answers (1)

Cagri Tacyildiz
Cagri Tacyildiz

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

enter image description here

Upvotes: 1

Related Questions