#Nextjs app running on wrong address

9 messages · Page 1 of 1 (latest)

worthy sequoia
#

Hello there I've been learning and building Reactjs projects and whenever I run any React app, it runs on http://127.0.0.1:3000. I recently moved to Nextjs ad whenever I run the app it runs on http://0.0.0.0:3000.
Whenever I visit localhost:3000 i get an error which is something I've never experienced with React. I want the Nextjs app to run on 127.0.0.1:3000 and not 0.0.0.0:3000
#1007476603422527558

open vale
#

0.0.0.0 is the same as localhost

#

What error are you getting?

worthy sequoia
#

@open vale Kindly have a look at this image

open vale
#

The server isn't running on the left.

worthy sequoia
open vale
#

When you run npm run dev you must not cancel it. Keep it running in the terminal then you can access the page

worthy sequoia
open vale
#

Then use a different shell instead