Try more stable alternatives like n2n. This project is just for fun.
Run npm install
to get all dependencies
- Run
nodejs server -p $PORT
on server to accept tcp connections - Run
sudo nodejs client -h $HOST -p $PORT
on each client, so they can find each other.
Run using https://appr.tc as a server
Run sudo nodejs client -r $ROOM_NUMBER -rp $ROOM_PASSPHRASE
on each client (quite unstable solution with it's limitations by design)
- Make a copy of nodejs executable.
- Run
sudo setcap CAP_NET_ADMIN=ep /path/to/new/nodejs/executable
- Run client using the new executable (no sudo required)
Run npm test
Run npm run debug
and use Chrome DevTools to connect to this node. Follow the code to see what can be inspected there.