peers / peerjs-server

Server for PeerJS
https://peerjs.com
MIT License
4.34k stars 1.08k forks source link

Running our own Free PeerJS Server #294

Closed JAA17 closed 1 year ago

JAA17 commented 1 year ago

Now the Free Heroku button has gone, can you please give a tutorial for us on how to set up our own permanent Free PeerJS Server? Where can we go?

Will the button to set up the GitPod PeerJS Server be a permanent server which is always on?

Once I click the Open in Gitpod button on the page:

https://github.com/peers/peerjs-server

t sets it all up fine. Also, when I type in the command npm install peer -g in the GitPod terminal, eveything appears to work and install.

But when I type peerjs --port 9000 --key peerjs --path /myapp it just says Error: Error: listen EAFNOSUPPORT: address family not supported :::9000 and freezes.

How can I get this to work?

Also how can I get this to be always on, even when I log out of GitHub?

jonasgloning commented 1 year ago

Gitpod is only for development, not a permanent hosting solution.

I would recommend the public server. If your project outgrows the public server, you will have outgrown any free hosting.

That said, here are some Heroku alternatives with a free tier; maybe there is something for you – but I have no experience with any of them. I can also recommend Oracle Cloud with its very generous permanent free tier, but it’s a bit more complicated to set up and maintain.