Private networking: ENOTFOUND

I have a Nodejs backend server bound to :: at 3001. I have added PORT variable for the service with value 3001. My other service, Nodejs BFF, cannot connect to either http://backend-service:3001 or http://backend-service.railway.internal:3001. I get getaddrinfo ENOTFOUND backend-service. Server and BFF are in the same project. When I add TCP proxy temporarily, it works fine at the proxy address, so the server is live.
7 Replies
Percy
Percy12mo ago
Project ID: 9723c328-faa5-4bcb-a950-9070892940fd
ryan_nookly
ryan_nookly12mo ago
9723c328-faa5-4bcb-a950-9070892940fd
Brody
Brody12mo ago
are you building with nixpacks?
ryan_nookly
ryan_nookly12mo ago
No nixpacks. But it looks like I solved my own problem. I am using Alpine on the BFF service (consumer). I needed the private networking Alpine fix: https://docs.railway.app/reference/private-networking#workaround-for-alpine-based-images That did it.
Railway Docs
Private Networking | Railway Docs
Documentation for Railway
Brody
Brody12mo ago
well you beat me to it!
ryan_nookly
ryan_nookly12mo ago
thanks Brody
Brody
Brody12mo ago
no problem!
Want results from more Discord servers?
Add your server