Next.js Discord

Discord Forum

next js 14 doesn't work on 6000 port ?

Answered
Transvaal lion posted this in #help-forum
Open in Discord
Avatar
Transvaal lionOP
next js 14 doesn't work on 6000 port ?
Answered by !=tgt
it's reserved for x11
View full answer

25 Replies

Avatar
how are you trying to serve it?
"scripts": { 
    "dev": "next dev -p 8080",
    "start": "next start -p 8080",
},


you need to change the package.json scripts like this
Avatar
nope
Avatar
it's reserved for x11
Answer
Avatar
Image
Avatar
Transvaal lionOP
but why does 6000 work in next js 12
Avatar
it does?
Avatar
Transvaal lionOP
yea only 13 and up version not working
Avatar
that port was likely added to [this](https://fetch.spec.whatwg.org/#port-blocking) list when nextjs 13 released
Avatar
yeah, next 12 may not work now?
never used port 6000, so IDK
Avatar
Do you have any reasoning for wanting port 6000?
Avatar
Transvaal lionOP
we already had 6000 for next 12 in a project and don't wanted to change it
for 3 portals. we using 6000, 6001, 6002
migrating to 14
Avatar
it isn't about nextjs ig?
depends on the os
Avatar
Transvaal lionOP
running in docker ubuntu: 20
and os next 12 works and 14 doesn't on 6000
I don't think it's the os
Avatar
6000 port is blocked
Avatar
Transvaal lionOP
yep seeems like need to change
Avatar
yeah