TCP port
erissonsiqueira
HOBBYOP

2 years ago

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

6 Replies

brody
EMPLOYEE

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"


brody
EMPLOYEE

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

<!doctype html><html lang="en"><head><title>HTTP Status 400 – Bad Request</title><style type="text/css">body {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b {color:white;background-color:#525D76;} h1 {font-size:22px;} h2 {font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style></head><body><h1>HTTP Status 400 – Bad Request</h1></body></html>). 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).


brody
EMPLOYEE

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!


Loading...