Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Struggling to get access to the remote Mongo database and meteor server #334

Open
nwabdou85 opened this issue Mar 18, 2019 · 6 comments
Open

Comments

@nwabdou85
Copy link

Hy,

My app works perfectly in local but can't connect it to the remote server;
So My connection string was:
ws://XX.XX.XXX.XXX:443/websocket, the port is 433 as the server is an azure web app.

In the real advice , I use the ip of local machine as usual.

Can you help me please, I mis just this one before deploy my first app :)

Thank's

@vermiculite
Copy link
Contributor

Hi,
change ws://XX.XX.XXX.XXX:443/websocket
to wss://XX.XX.XXX.XXX/websocket

for secure connections you need to supply wss as the protocol.

Let me know how you get on, good luck!

@nwabdou85
Copy link
Author

@vermiculite , Thanks a lot for your time;

I tried it but still does not work..

any other suggestion ??

Thank's

@vermiculite
Copy link
Contributor

@nwabdou85 that is a shame. I would make sure you can connect to the server with this chrome extension. https://chrome.google.com/webstore/detail/simple-websocket-client/pfdhoblngboilpfeibdedpjgfnlcodoo?utm_source=chrome-ntp-icon
That way you can quickly figure out if you can connect.

@nwabdou85
Copy link
Author

@vermiculite with the chrome extension, it throws an undefined error; simple websocket client: undefined.

@vermiculite
Copy link
Contributor

@vermiculite with the chrome extension, it throws an undefined error; simple websocket client: undefined.

Therefore it can't connect to the server. I assume you played with ws wss as protocols and with or without the port 443. If all those fails there is a problem connecting to the server.

If in a browser you go to
http://XX.XX.XXX.XXX:443
http://XX.XX.XXX.XXX
https://XX.XX.XXX.XXX:443
https://XX.XX.XXX.XXX

Can you see the application running?

@foysalit
Copy link

what's your server env? as @vermiculite suggested, make sure your app is accessible through wss://if you're serving the app with apache, it can be a bit tricky. try this if that's the case: https://www.codementor.io/foysalit/git-push-deploy-your-meteor-app-hsxs3hf20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants