0

I am unable to access NestJs app running on port 3000, I am running the app using this code:

  await app.listen(3000, '0.0.0.0', function () {
    console.log('listening on port 3000');
  });
Hussain Wali
  • 183
  • 1
  • 4
  • 11

2 Answers2

0

I was able to solve this using the following method:

in start menu Search "Firewall & network protection"
Choose "Allow an app through firewall"
Click Change Settings button.
Search for "Evented I/O for V8 Javascript" OR "Node.js: Server-side Javascript" and click the public checkmarks (see the SS below)

enter image description here

Hussain Wali
  • 183
  • 1
  • 4
  • 11
0

Change your ENDPOINT in your frontend (http://localhost:3000 ---> http://myipbackend:3000)