R
Railway7mo ago
Adel

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
Solution:
set a fixed port.
Jump to solution
10 Replies
Percy
Percy7mo ago
Project ID: N/A
Solution
Brody
Brody7mo ago
set a fixed port.
Adel
AdelOP7mo ago
any port? how can I know if it's not reserved ?
Brody
Brody7mo ago
you would get another error, 3000 is commonly used
Adel
AdelOP7mo ago
so I should set port in env file to 3000
Brody
Brody7mo ago
in your service variables
Adel
AdelOP7mo ago
is there any solved duplicate issue I can follow and read thanks lot
Brody
Brody7mo ago
wdym i had just proposed a solution?
Adel
AdelOP7mo ago
right now Im not setting any PORT and I'm using NextJS this error sometimes happen and somtimes not
Brody
Brody7mo ago
set a fixed port
Want results from more Discord servers?
Add your server