[Fixed] How to allow access outside localhost


How can I allow access outside the localhost at Angular2? I can navigate at localhost:3030/panel easily but I can not navigate when I write my IP such as

Could you please allow me how to fix it? I am not using npm (node project manage – node install/node start ) to install and run the project.

If you want, I can provide my package.json and index.html.


Using ng serve --host will allow you to connect to the ng serve using your ip instead of localhost.


In newer versions of the cli, you have to provide your local ip address instead


In newer versions of the cli (I think v5 and up) you can use as the ip again to host it for anyone on your network to talk to.

Leave a Reply

(*) Required, Your email will not be published