In a P2P network, computing devices use software to connect with each other over a private network, such as a home local area network (LAN) or a public network, such as the Internet. This direct connection allows each device to share files without requiring the assistance of a remote server. The device that supplies the file plays the role of the server and the device that requests the file plays the role of the client. The roles simply reverse when necessary.
See also: ad hoc network