How do I access TCP port internally?
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
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.Solution:Jump to solution
The public TCP proxy has nothing to do with accessing the service internally, it's a private network, so you use the port it binds to internally, in your case that's 51124
it also needs to bind to the ipv6 host
::
not the ipv4 host 0.0.0.0
since it's an ipv6 only network...6 Replies
Project ID:
27b12474-9c91-4e7d-a929-07eb3638ffc1
27b12474-9c91-4e7d-a929-07eb3638ffc1
Solution
The public TCP proxy has nothing to do with accessing the service internally, it's a private network, so you use the port it binds to internally, in your case that's 51124
it also needs to bind to the ipv6 host
::
not the ipv4 host 0.0.0.0
since it's an ipv6 only networkthank you! I will try it
I am not sure if I did it correctly, but ZeroMQ couldn't seem to bind to tcp://[::]:51124
some things simply don't support binding to ipv6, Google it and see if someone else has successfully got it to bind to ipv6
thanks! I'll try some more