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?

gefragt vor einem Jahr316 Aufrufe
1 Antwort
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-TECHNIKER
beantwortet vor einem Jahr

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen