0

I'm trying to host my app on 0.0.0.0:3000 and not localhost.

However each time I run the nx serve career --port=3000 --host=0.0.0.0

The app is hosted on:

tcp6 0 0 :::3000 :::* LISTEN 9112/node

Instead of:

tcp6 0 0 0.0.0.0:3000 0 0.0.0.0:* LISTEN 9112/node

the difference is ::: instead of 0.0.0.0.

What am I doing wrong, how can I host the app on 0.0.0.0

I'm using nrwl/nx and NextJS even if the port is correct the host is not.

Salman
  • 1,019
  • 1
  • 21
  • 51

1 Answers1

0

and you can use this IP

127.0.0.1:3000
  • Doesn't work either. – Salman Nov 23 '21 at 14:07
  • it should work I use this IP for run localhost – Seyed Kazem Mousavi Nov 23 '21 at 15:32
  • Although 0.0.0.0 and 127.0.0.1 often play the same role, they are [not the same thing](https://stackoverflow.com/a/20778887/2227743). You cannot blindly change one for the other in all situations - well, you cannot, at least, expect that it would magically solve the issue everytime. – Eric Aya Nov 23 '21 at 19:13