How to Access Localhost:4200 (Angular App) on Big Sur from Another Computer Within the Same Lan?
Screencapture: Linksys Port-Forward Table My Case Is Listed as Below: the Client Computer and the Server Computer Are on the Same Lan Where the Wifi Router Is...
screencapture : linksys port-forward table
My case is listed as below :
- The client computer and the server computer are on the same lan where the wifi router is : linksys model#ea6200
- The client computer can ping the server computer(where the server's OS is Big Sur 11.4 and its IP is 192.168.1.149)
- The server is already listening to , which is an Angular application .
- But , when I type in the client's browser, the site can’t be reached from the client's computer .
- I have checked that the Big Sur's firewall is off.
My Question is :
- What else should be further set so that the site on the server computer can be reached from the client's computer ?
- Should I consider to make some configuration on the linksys port forwarding policy?
Thanks.
1 Answer
Answers from "NSteinbusch @ " :
- this is an Angular issue rather than networking issue ;
- by default angular only listen on local interface 127.0.0.1 ;
- By using the cmd of “ng serve -- host 0.0.0.0” instead of simply typing “ng serve” to start the app, the client PC should be able to reach the Angular app of the server by
- By this method, the server will listen to all available interface, so your Ethernet NIC or Wi-Fi NIC as well.