15 Replies
Project ID:
N/A
Are you listening on the port railway provides?
Take a look at this: https://docs.railway.app/guides/fixing-common-errors
the port 8080
You need to listen on the port railway gives you, check the link I sent you
ok
but where does it says which is the provided port?
It's an environment variable named
PORT
, please check the link I sent youok
i'll check
here?
It doesn't display there by default since it's a Railway provided variable
if you're running something like a NodeJS app then you can get the port through:
but still the same
it fixed!!!
You wouldn't want to clarify the port, it's always recommended to let railway give you a random generated one
but if you have to use a specific port then that'll work fine too
thank you!!!
no problem!
although I don';t recommend you specify the port unless there's no other option
ok