$> npm install peer
$> peerjs --port 9000 --key mykey
Now i run these commands to download video chat demo fileswget http://cdn.peerjs.com/demo/videochat/index.html
wget http://cdn.peerjs.com/demo/videochat/style.css
wget http://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js
wget http://cdn.peerjs.com/0.3/peer.js
Then i copied all files to my other host which is windows web server(peerjs-client.mydomain.com)running on https with trusted certificates.
var peer = new Peer({ key: mykey host: 'peerjs-client.mydomain.com', port: 9000, path: 'peerjs-server.mydomain.com:9000', seuce:true});