a year ago
I have a container that confirms it's network connectivity by connecting to itself on a predefined port. Since we are probably behind some type of NAT will will need to use the proxy feature. However, I cannot currently see how to know the proxy port and define that port as our listening port.
11 Replies
a year ago
Is this an HTTP or TCP service? because right now the linked service is not publicly exposed at all.
a year ago
it will be tcp. I disable the proxy bc I was trying to determine if the port variables were still defined after removing the proxy.
a year ago
So here, I would like to define my application port to be the same as the port I get back from the proxy
Attachments
a year ago
After entering the port, I get two disparate ports, but I would like them to be the same. So I would either need to be able to request a port before setting up the the container port, or define the proxy port and container port as the same.
Attachments
a year ago
Yes. It's a p2p networking service
a year ago
The goal of using Railway is to provide users of our operator software a simple template to run our operator client without a lot of hassle and server management.
The Operator client communicates with other operator clients to determine whether or not they need to respond to an event.
It's a distributed network of sorts where users get to participate in the network. We are trying to give them an easy way to deploy the software.
Website:
https://dev.drosera.io/docs/intro/
a year ago
You could add variables TCP_PROXY_DOMAIN=${{RAILWAY_TCP_PROXY_DOMAIN}} and TCP_PROXY_PORT=${{RAILWAY_TCP_PROXY_PORT}} to your service and then use them in code.
a year ago
Yeah, I think we will need to add a proxy port configuration parameter/argument in order to allow us to broadcast the location of the proxy as the entrypoint of our p2p networking. Then we can run the application on whatever port we want and direct the proxy there while broadcasting the proxy as the p2p location.
Thanks
As a side note ( though I'm not sure how many people will need this) it might be nice to be able to request the port number they will get from the proxy before defining the port that their application will be listening on.
Status changed to Solved brody • about 1 year ago