When you deploy an application on Clever Cloud, it listens by default on port 8080 and responds to HTTP(S) requests. In the past, customers have asked us for an additional TCP listening port. Their goal was to handle specific protocols or interactions.
At first, we responded to these requests on a case-by-case basis. Two years ago, we added a TCP port forwarding feature to our Clever Tools CLI: as we explained then, one command is enough to open a port.
However, we were regularly asked to simplify the access to this feature by adding it to our web interface: the Console. It’s done. A “TCP Redirections” section is now available in the menu of your applications:
It allows you to create a redirection in the default
namespace (used by all custom domain names) or cleverapps
(used by all cleverapps.io domain names). Both can be used simultaneously.
Once the redirection is created, an external access port will be assigned to the application, which will systematically redirect to its internal port 4040. Note that this feature is still in a testing phase. It can be used freely and is not charged.