peers / peerjs-server

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

Changing Port on Peer.js Server for a Newbie to Node.js #236

Closed JAA17 closed 1 year ago

JAA17 commented 3 years ago

My webserver people at Winhost say I cannot use port 9000. I have asked if I can use any port with them:

https://forum.winhost.com/threads/peer-js-peer-server.30902/

If I can access ports at Winhost, what do I need to do with the Peer.js Server to change all the ports in the code to the new port? Can anyone give a newbie a step by step guide of what I need to do?

EDIT: I have found I need to do it on port 80. Can anyone help me to understand how this can be done?

anpolimus commented 3 years ago

Hi, @JAA17 . Port id could be changed during initial run: peerjs --port 30902 --key peerjs --path /myapp