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
Unable to connect #693
Comments
Fix cloud server please, I'm having a final project at the moment. I must finished it before tomorrow. |
Looks like this is a server issue. I'm having the same issue. It worked yesterday in the evening around 8pm EST, but since today when I tried running my code again, timeouts on 0.peerjs.com. I even tried to spin up a server on gitpod, but I'm having the same issues there. I'm not sure if this is a peerjs-server issue or not, I was getting the following results when running peerjs-1.2 and peerjs-1.3. OS: Windows 10 Attempt with custom peerId Attempt with server autogenerated id |
I have been trying to learn how to use PeerJS and the example at https://peerjs.com/examples.html does not work. I think there is an issue with the PeerJS cloud server. |
I found out that deploy your own peerjs-server solve all your problem |
Where did you deploy your server? A cloud service or self hosted? |
You can go this link https://github.com/peers/peerjs-server, click on 'Open on Gitpod' and start your own new peer-server. With those config |
I've created a new server but I'm getting this error. How do I fix this? |
Adimarthur8: You'll need to manually specify an I'd if your peerjs server isn't setup to automatically generate them. And I tried gitpod, but it wouldn't connect for me. I eventually got heroku working. I was missing the secure: true. That was the key for me. |
Seems to work on gitpod although a bit unintuitive ...
Note path (/), port (443), secure (to enable https rather than http). Also: |
Hi, I've done what you did and now the client can initialize a new Peer with an ID. I've tried many time with differents browsers but always the same result, it's impossible to connect two Peers together. Also, the Peer client who is waiting for a connection don't trigger any messages or errors in the console (I have activated |
Deploying a private server on Heroku made it work! |
I am thinking that if you received ID, signalling/brokering is working. Not sure if related to your issue but for chrome browsers (may others as well) one needs to manually set: peer.on('connection', function(data){ |
Here is a temporary "solution" that can be used individually for the meantime, but it does not fix the net issue with the site or examples. |
same problem |
the map file was fixed in 1.3.1 |
Using this minimal example:
There's an error Are servers down, when will they be up? This error is gone when using server deployed on gitpod Edit: server is now working again |
I had this problem on localhost, but it turns out that I had not started the peerjs server. After starting the server, the problem was fixed. |
I have found a solution for a similar kind of problem. Actually, the peer server runs on HTTP protocol, and for making it run on HTTPS protocol, we need to generate an SSL key and certificate. Even after generating these things, it will only run on the localhost server and the systems connected to that network. There is a peer server hosted on a Heroku, so it is running on HTTPS, rather than using your own peer server, we can use the path of the Heroku peer server and then host the app on some hosting website, The app will run properly. I had solved my problem with this. |
@ZamanMehdi do you mind if I use this server ? 0.peerjs.com seems to go down too often. |
You can use the sever I mentioned, about your's I haven't used that because I'm able to resolve my problem with that. |
Contacted OVH support and the public open server is now up. |
Hello, is leading to: So we need to run the Peerjs server on our own server so we can get the Peer IDs on our own rather than relying Can you please contact me on Urgent basis to take care off this since we have 2.5 Million+ members and we had that all of a sudden is not working due to the simple peer ID that we were getting from Peerjs. Thanks |
I answered you in the other issue. Also this as a duplicate of #939 |
Getting error
https://0.peerjs.com/peerjs/id?ts=15938580580230.27749202685512375 net::ERR_CONNECTION_TIMED_OUT
since the latest update.The text was updated successfully, but these errors were encountered: