Bad port: "6000" is reserved for x11
I'm using NextJS version 14 on railway
4 replicas
redeploy fixed the issue. but how can I avoid such things please
thanks in advance
10 Replies
Project ID:
N/A
Solution
set a fixed port.
any port? how can I know if it's not reserved ?
you would get another error, 3000 is commonly used
so I should set port in env file to 3000
in your service variables
is there any solved duplicate issue I can follow and read
thanks lot
wdym i had just proposed a solution?
right now Im not setting any PORT and I'm using NextJS
this error sometimes happen and somtimes not
set a fixed port