2 months ago
I am trying to have one service communicate with another on private network and it doesn't work regardless if I use ip4 or 6. Public network works. I have tried creating new services but doesn't matter, it keeps failing. I am using http to connect, not https and the port number is set to 8081. Don't know what else may be useful. I see other similar threads but don't see answers.
1 Replies
2 months ago
your service on 8081 is probably binding to 127.0.0.1 or 0.0.0.0 which doesn't work on railway private network. you need to bind to :: (ipv6) instead.
so like if you're using express do app.listen(8081, '::') or whatever the equivalent is in your framework. the service needs to actually listen on ipv6, not just ipv4. that's usually why private network fails but public works
also make sure you're using servicename.railway.internal:8081 as the url