I have an application load balancer (ALB) and a number of web servers behind it. Apart from HTTP and HTTPS, the web servers also serve long-lasting TCP socket connections on port 52345.
When a client socket tries to connect to the ALB on port 52345, it fails, because ALB does not have a listener on this port.
When I tried to add a listener on this port, I realized that ALB only allows listeners on HTTP and HTTPS. So I tried to add a HTTP listener on port 52345. It still didn't work.
Error message:
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 34.199.41.181:52345
How do I get over this hurdle? Why doesn't AWS allow TCP listener on ALB?