There are several ways to get a peerjs server:
After that, go to <path_to_peerjs-server>/bin and run peerjs-server with the command:
node peerjs --port 9000 --key peerjs
or
./peerjs
peerjs-server has more options, and you can see them with the ./peerjs command ./peerjs no arguments.
source share