I register in the Openshift.com and create a catridge. But when I need to deploy Mosquitto, a MQTT Server, which is accessed through tcp or ssl protocol, and I need visit fr
I think this might point you in the right direction https://www.openshift.com/blogs/paas-websockets.
To save some readings from the readers, the steps involved in niharvey's answer:
$OPENSHIFT_DIY_IP:$OPENSHIFT_DIY_PORT. 8000 for ws:// or 8443 for wss://, by your app url.Just verified these steps do work as expected.