To connect to a Peer-to-peer network, you would need a special software installed on your PC.
You can connect to the network by pointing the software to the network's tracker. Tracker will provide information to your computer about the other peers on the network.
Once you are connected to the p2p network, your computer communicates and share files with others.