TCP port unavailable on lightsail container

0

Hi, I installed node-red with docker and lightsail container. In my node-red app I have a 'tcp in' process that needs to listen on port 4000 but lightsail seems to be blocking the port. I have configured the public termination port to http port 1880 and added tcp port 4000 in the install but it doesn't work. Could you help me please?

asked a year ago305 views
1 Answer
0

Hello,

Thank you for using Amazon Lightsail Container Services.

I understand that you are trying to expose TCP port 4000 of your node-red container but that port is not accessible via internet.

Please note that, the public endpoint of Lightsail container service supports HTTP/HTTPS only, and it does not support TCP or UDP traffic. This means you won't be able to expose port 4000/TCP over the Internet directly.

As a work-around, you may set up a proxy container that communicates to the Internet via HTTP/HTTPS and forwards requests along to the TCP container over port 4000.

You may refer the following Lightsail article for more details about container public endpoints.

[+] https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-container-services#container-services-endpoints-domains

If you need any further assistance, I encourage you to open a support case, so that one of our support engineers can inspect the details of the Lightsail container, and provide further assistance.

AWS
SUPPORT ENGINEER
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions