I’ve deployed my server-only app to Meteor’s Galaxy. The app is running and all seems fine, except when I want to connect to it from my frontend app (I have two separate apps for frontend and backend) it can’t connect to it.
More precisely, this is my code in the frontend app (which worked as long as both were running locally):
var worker_host;
worker_host = 'worker.meteor.com:3000'; // ip address of job worker host
remote = DDP.connect(worker_host);
I get the following error message in the inspector:
ddp-client.js?hash=b5f1b97…:942 GET http://worker.meteor.com:3000/sockjs/info?cb=r0gdol4mm7 net::ERR_NAME_NOT_RESOLVED
A ping gives the following error message: worker.meteor.com’s server DNS address could not be found
Strangely enough a dig +show worker.meteor.com
works perfectly and refers to the Galaxy hosting at AWS.
Can anyone help? BTW, connecting the other way round works (from backend app to frontend app with the same code, only difference is that my domain name can be resolved).