How do I make a P2P server on repl.it?
Hey! I'm trying to implement 2-player multiplayer in my game, and I'm using PeerJS for Peer-To-Peer Connection. I've got everything working, except making the server. For now, just to test, I'm using the default server that my game engine offers, but I want to make my own. I'm aware of how I can make a server on my computer (
peerjs --port <insert port here> --key peerjs --path /myapp), but that won't stay on 24/7. Could someone help? Thanks!
You don't need a peer server and im not sure if it even works since replit only supports TCP/IP servers on port 80. It will automatically connect to peerJS free server if you only don't specify a server: https://peerjs.com/peerserver.html