a year ago
I deployed my grpc service built in Go on railway but when i try to connect to the tcp port ballast.proxy.rlwy.net:32026, it shows service unavailable. I've been on this issue for hours. The grpc service works fine in development. I can call my service using localhost:6000 and it works but on railway the provided tcp domain and port does not work.
What could be the issue? can anyone help?
9 Replies
a year ago
Please check this out. https://help.railway.com/questions/g-rpc-public-endpoint-not-accessible-52f2c539
There's a solution in there.
Status changed to Awaiting User Response Railway • 12 months ago
unicodeveloper
Please check this out. https://help.railway.com/questions/g-rpc-public-endpoint-not-accessible-52f2c539There's a solution in there.
a year ago
It still did not work for me
Status changed to Awaiting Railway Response Railway • 12 months ago
Status changed to Awaiting User Response Railway • 12 months ago
brody
Hello,Are you listening on IPv4?
a year ago
Yes
Status changed to Awaiting Railway Response Railway • 12 months ago
Status changed to Awaiting User Response Railway • 12 months ago
brody
Looks like you are listening on IPv6
a year ago
So listening on ipv6 causes these kinds of errors?
Status changed to Awaiting Railway Response Railway • 12 months ago
Status changed to Awaiting User Response Railway • 12 months ago
brody
Its likely yes, please try IPv4 only.
a year ago
wow! it worked! I explicitly changed "tcp" to "tcp4":
listener, err := net.Listen("tcp4", config.GRPCServerAddress)
if err != nil {
log.Fatal("cannot create listener:", err)
} Status changed to Awaiting Railway Response Railway • 12 months ago
Status changed to Awaiting User Response Railway • 12 months ago
Status changed to Solved brody • 12 months ago