How do I access TCP port internally?

aalfath
PRO

a year ago

I have a service using ZeroMQ that binds to 0.0.0.0:51124 that acts as a publisher with the following private networking address:
endearing-strength.railway.internal

Then I enabled TCP proxy for this service, which generated this address:
[monorail.proxy.rlwy.net:56845](monorail.proxy.rlwy.net:56845)

Now, on the other hand, I have another service that acts as a subscriber.

How do I connect using private network to this service from my other service?
I tried using private network address with the TCP proxy but it doesn't seem to work, like so:
endearing-strength.railway.internal:56845

I can only seem to connect using public networking address, but not with private networking.

0 Replies

aalfath
PRO

a year ago

27b12474-9c91-4e7d-a929-07eb3638ffc1


a year ago

The public TCP proxy has nothing to do with accessing the service internally, it's a private network, so your use the port it binds to internally, in your case that's 51124


a year ago

it also needs to bind to the ipv6 host :: not the ipv4 host 0.0.0.0 since it's an ipv6 only network


aalfath
PRO

a year ago

thank you! I will try it


aalfath
PRO

a year ago

I am not sure if I did it correctly, but ZeroMQ couldn't seem to bind to tcp://[::]:51124


a year ago

some things simply don't support binding to ipv6, Google it and see if someone else has successfully got it to bind to ipv6


aalfath
PRO

a year ago

thanks! I'll try some more


How do I access TCP port internally? - Railway Help Station