-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Peerjs server deployed on heroku is not working #207
Comments
That's because the default password is wrong. Trying to find a fix |
Any update on this, its saying connected but not receiving connection on two peers ? @vishalveerareddy @Chhinna |
you need to use the port 443 I had the same issue. But I encountered another one :(. Due to security issues I cannot send my getUserMedia stream over the peer js connection. |
I'm facing a similar issue. Is there any fix for this or not? |
As Amine said above, you need to set 433 port in your url when you use https connection, or 80 port for http. This is default TCP ports. |
Yeah, we need to use port 443, otherwise, it won't work. I ended up using the 0.peerjs.com peer cloud server which runs on port 443 instead of creating my own peer server. |
I am getting this error, I have set the port to 433 still i am getting this error. It works fine on local host, but when i deploy on heroku i get this error. |
@zaidm124 I have solved this issue using peer cloud instead of my own peer server. |
Have you seen your request url? It's completely broken |
but i have copied that url from the console, i dont think i can correct that |
Here is the frontend code for using peer cloud server.
you can refer more in the docs https://peerjs.com/docs.html#start |
@zaidm124 Can you share how do you connect to peerjs on the client side? My configuration for custom peerjs server on heroku: server (part of my express app):
client:
|
let peer = new Peer(undefined, { This is what i did |
This may be helpful : #9 for someone |
Thank you so much everyone, the problem is solved for me now. Peer cloud server worked. Thank you again @blyzniuk @siddharthmagadum16
This worked for me, thank you so much for helping me out. |
I used the deploy on Heroku button from this link to deploy a peerjs server. To connect to this server I used
const peer = new Peer(host: 'focusmonk-beta.herokuapp.com', port:9000, path:'/')
But this is not working, am I missing something ?
The text was updated successfully, but these errors were encountered: