Need to access the localhost Ip of my service
matteyahmed
HOBBYOP

2 years ago

Hi, good morning, quick question.
project id: 0c7fec98-322c-4deb-ac9d-d61c6c0278bf

In my development I am using ws://127.0.0.1:8000/ws/live/?token=${token} .
However in production I cannot use that Ip, so
should it be ws://[myapp.up.railway.app/ws/live/?token=${token}](myapp.up.railway.app/ws/live/?token=${token})
or ws://0.0.0.0:xxxx/ws/live/?token=${token}

thanks.

2 Replies

dev
MODERATOR

2 years ago

it should be wss://[myapp.up.railway.app/ws/live/?token=${token}](myapp.up.railway.app/ws/live/?token=${token})
note we're using wss and not ws


matteyahmed
HOBBYOP

2 years ago

sure, thanks.


Loading...