This project is a centralized peer-to-peer (P2P) network like Napster that allows nodes to share resources and data with each other.
- Centralized Server: Acts as a coordinator for the network, managing peer connections and data exchange efficiently.
- Peers: Individual nodes that participate in the network, sharing resources and data with other peers.
- TCP Protocol: Used for communication between the server and peers, enabling data exchange and resource sharing.
To set up the centralized P2P network, follow these steps:
- Clone the repository:
git clone https://github.com/Jorgelet/p2p-network.git
cd p2p-network- Start the centralized server:
node server.js - Start a peer node:
node peer.js [port]