TCP port
erissonsiqueira
HOBBYOP

2 years ago

How can I configure a TCP port to be accessed externally?

6 Replies

2 years ago

Add your desired TCP port in the service settings.


erissonsiqueira
HOBBYOP

2 years ago

Hello Brody, I verified that in Postgres there is a TCP port option in "Settings", but in my java application with springboot (which has a class for TCP Server) this option does not appear in "Settings"


2 years ago

I assume that means you have an domain, you need to remove the domain before you can add a TCP proxy.


erissonsiqueira
HOBBYOP

2 years ago

Thank you, very good! I just don't understand why after the connection he is receiving (Message Test

). It looks like it's waiting for an http request, but it should actually be TCP/IP, it should be an echo (the same message I sent should come back).


2 years ago

That would be a response from your application itself, are you sure you used the correct port for the TCP proxy?


erissonsiqueira
HOBBYOP

2 years ago

Yes I fixed the port in the code too. It must be my application, I'll check. Thanks!


Welcome!

Sign in to your Railway account to join the conversation.

Loading...