Express requests through private domain gone wrong?
phsebastiao
HOBBYOP

2 years ago

I have two applications both served using NodeJS Express and they dont seem to be communicating through private domain

Project ID: d6f12898-6068-4b22-a00e-af3f7da567b1

Solved

19 Replies

2 years ago

port 80 is likely wrong, you need to use the actual port the application is listening on


phsebastiao
HOBBYOP

2 years ago

im getting the port through .env


phsebastiao
HOBBYOP

2 years ago

default in web is 4200 so whats displayed there is the railway port


2 years ago

1343651029966782514


2 years ago

80 != 4200


phsebastiao
HOBBYOP

2 years ago

oh wait a min i might have caught something


2 years ago

fwiw botijela is listening on 8080


phsebastiao
HOBBYOP

2 years ago

isnt 80 and 8080 the same?


2 years ago

nope they are two different numbers


2 years ago

vtuber emoji lfg


phsebastiao
HOBBYOP

2 years ago

alright so do I just need to set the port on both?


phsebastiao
HOBBYOP

2 years ago

i was wrong


2 years ago

you need to use port 8080 in the url when calling your service via the private network


phsebastiao
HOBBYOP

2 years ago

it worked, how surprising


2 years ago

yippie


phsebastiao
HOBBYOP

2 years ago

thanks


2 years ago

No problem!


phsebastiao
HOBBYOP

2 years ago

!s


2 years ago

!s


Status changed to Solved brody • over 1 year ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...