I am unable to connect to the tcp domain and port for my grpc service on railway
yelsnik
TRIALOP

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?

Solved

9 Replies

unicodeveloper
PRO

a year ago


Status changed to Awaiting User Response Railway about 1 year ago


unicodeveloper

Please check this out. https://help.railway.com/questions/g-rpc-public-endpoint-not-accessible-52f2c539There's a solution in there.

yelsnik
TRIALOP

a year ago

It still did not work for me


Status changed to Awaiting Railway Response Railway about 1 year ago


a year ago

Hello,

Are you listening on IPv4?


Status changed to Awaiting User Response Railway about 1 year ago


brody

Hello,Are you listening on IPv4?

yelsnik
TRIALOP

a year ago

Yes


Status changed to Awaiting Railway Response Railway about 1 year ago


a year ago

Looks like you are listening on IPv6


Status changed to Awaiting User Response Railway about 1 year ago


brody

Looks like you are listening on IPv6

yelsnik
TRIALOP

a year ago

So listening on ipv6 causes these kinds of errors?


Status changed to Awaiting Railway Response Railway about 1 year ago


a year ago

Its likely yes, please try IPv4 only.


Status changed to Awaiting User Response Railway about 1 year ago


brody

Its likely yes, please try IPv4 only.

yelsnik
TRIALOP

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 about 1 year ago


a year ago

Awsome!


Status changed to Awaiting User Response Railway about 1 year ago


Status changed to Solved brody about 1 year ago


Loading...