snippettypescriptangularCritical
How to allow access outside localhost
Viewed 0 times
howaccesslocalhostallowoutside
Problem
How can I allow access outside the localhost at Angular2? I can navigate at
Could you please allow me how to fix it? I am not using
If you want, I can provide my
localhost:3030/panel easily but I can not navigate when I write my IP such as 10.123.14.12:3030/panel/. 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.Solution
Using
EDIT
In newer versions of the cli, you have to provide your local ip address instead
EDIT 2
In newer versions of the cli (I think v5 and up) you can use
ng serve --host 0.0.0.0 will allow you to connect to the ng serve using your ip instead of localhost.EDIT
In newer versions of the cli, you have to provide your local ip address instead
EDIT 2
In newer versions of the cli (I think v5 and up) you can use
0.0.0.0 as the ip again to host it for anyone on your network to talk to.Context
Stack Overflow Q#43492354, score: 730
Revisions (0)
No revisions yet.