Use WebRTC to establish peer to peer connection and transfer files
- express
- socketio
- Change all the IPs to the server's Ip
- Turn off local firewall
- Open terminal and type:
cd Server node filetransfer-server.js
Click here for all details.
- Peer 2 Peer File Transfer
- Create Chunks
- User Authentication
- Sent Files History
- Graphical User Interface
- Client connects to server
- Server fetches client's username
- Server assigns id to client and adds it to userList
- Server returns the other online users
- Transfer SDP
- Transfer Data between 2 peers (Serverless)
- Two channels one for send & one for receive
- For receiving channel callback, parse files, gather chunks and save the whole received file For sending channel, create chunks from file and send Them over datachannel.