R
Railway2mo ago
mattey

Need to access the localhost Ip of my service

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} or ws://0.0.0.0:xxxx/ws/live/?token=${token} thanks.
Solution:
it should be wss://myapp.up.railway.app/ws/live/?token=${token} note we're using wss and not ws...
Jump to solution
3 Replies
Percy
Percy2mo ago
Project ID: 0c7fec98-322c-4deb-ac9d-d61c6c0278bf
Solution
Fragly
Fragly2mo ago
it should be wss://myapp.up.railway.app/ws/live/?token=${token} note we're using wss and not ws
mattey
mattey2mo ago
sure, thanks.