Connect openshift application to noobhub client

By : Tom

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://, port: 8080"
", port: 8080"
", port: 8080"

My server code similar like this one (except the ip and port): noobHub server and the client code is here.

How could I connect the client to the online server?

By : Tom


I asked it at noobHub forum:

The result is I will use Digitalocean's droplets for only $5 monthly, here's a great tutorial about that:

By : Tom

This video can help you solving your question :)
By: admin