I'm using noobHub with corona sdk with my local server and it works fine, but when I put the server online (to my free openshift account) I can't connect the client application to it.
On the server side I have to set up the ip and port like this:
var port = process.env.OPENSHIFT_NODEJS_PORT || 1337; var ip = process.env.OPENSHIFT_NODEJS_IP || 0; server.listen(port, ip);
I can get the values of the openshift ip and port, tried to connect to it, but not worked.
I tried several options in my corona application, but no luck:
"ws://my-server.rhcloud.com, port: 8080" "http://my-server.rhcloud.com, port: 8080" "my-server.rhcloud.com, port: 8080"
How could I connect the client to the online server?