Unable to reach access my web server via private network
tansandoteth
PROOP

8 months ago

I have Tailscale setup, so I can access some of my admin dashboards behind it. Specifically, I'm using the private networking hostname to access it via my browser: *.railway.internal

Right now, I tried to spin up smoothmq and it seems I can access it via a public network, but not through the private network. I set the ports and tried different host names like [localhost](localhost), and 0.0.0.0 , but it seems I am getting this error still:
netstack: could not connect to local backend server at [fd12:ef17:263b:0:9000:1d:e9be:a599]:3000: dial tcp [fd12:ef17:263b:0:9000:1d:e9be:a599]:3000: connect: connection refused

I could ping it, but I'm unsure why I have no issues accessing another web server. I am sure its something I misconfigured, but I am unsure what it might be.

Solved

6 Replies

tansandoteth
PROOP

8 months ago

c6b347a2-4303-459f-8d48-60e445d0b480


tansandoteth
PROOP

8 months ago

This seems related. I tried serving :: with port 3000, but still isn't working. https://docs.railway.com/guides/private-networking#what-if-i-am-making-a-request-server-side-but-from-vercel


tansandoteth
PROOP

8 months ago

Actually i think I figured out the problem through that documentation. It looks like the lib was not listening on IPv6: https://github.com/poundifdef/smoothmq/blob/a6094b12b2f13f3a0f6349ac12cccc2f4715a47b/cmd/smoothmq/server/server.go#L90-L92

However, it would be nice if someone could verify my findings


brody
EMPLOYEE

8 months ago

The private network is IPv6 only, so for any communication within the private network to work, the application you want to access would need to be listening on IPv6.


tansandoteth
PROOP

8 months ago

Thanks for reaffirming Brody!


brody
EMPLOYEE

8 months ago

!s


Status changed to Solved brody 8 months ago


Loading...