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 : 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 :

  1. What else should be further set so that the site on the server computer can be reached from the client's computer ?
  2. 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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Alexander Ross

Alexander Ross

Gaming, Esports & Interactive Media Writer

Alexander Ross has covered the video game industry for a decade, writing deep dives on game design, esports tournaments, VR developments, and gaming culture.

Share this article
Twitter Facebook Pinterest