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
Percy14mo ago
Project ID: 9723c328-faa5-4bcb-a950-9070892940fd
ryan_nookly
ryan_nooklyOP14mo ago
9723c328-faa5-4bcb-a950-9070892940fd
Brody
Brody14mo ago
are you building with nixpacks?
ryan_nookly
ryan_nooklyOP14mo 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
Brody14mo ago
well you beat me to it!
ryan_nookly
ryan_nooklyOP14mo ago
thanks Brody
Brody
Brody14mo ago
no problem!
Want results from more Discord servers?
Add your server