#Private Networking Port

21 messages · Page 1 of 1 (latest)

ancient dust
#

When using private networking between services, how do I determine the port the app is listening on if no PORT variable is set in the app config?

sage wrenBOT
#

Project ID: N/A

ancient dust
#

N/A

wary thistle
#

The app is going to have to tell you.

#

Usually you can either define their variable or look up their documentation to find what the default is

#

Can I ask what service you're asking about?

ancient dust
#

It's an axum server I wrote myself, it will obey a port variable and I know Railway sets one, I just can't reference that value in another apps config without setting it myself

wary thistle
#

Yeah. You'll have to set it. That's standard.

#

Also I ❤️ axum

#

Pretty sure 3000 is default

ancient dust
#

3000 would be default if following the axum tutorial that is true, but it states somewhere in the railway docs that railway will set a PORT variable for networking. I guess its intended for you to set it if you need the application running on a specific port

wary thistle
ancient dust
#

Yeah, it does that, I am also creating an IPV6 tcpsocket

wary thistle
wanton sand
ancient dust
wary thistle
#

Doesn't need to be a shared variable

#

It can just be a service variable that you reference

ancient dust
#

I got it working, thanks for the input!

wanton sand
#

!s