A computer network connects two or more computers to allow sharing of resources, files, and communication. It requires cables or wireless connections between devices, a router to manage traffic, and may include additional components like switches, firewalls, and wireless access points. Computer networks can be configured as peer-to-peer or client-server and use various topologies to connect devices. Common network types include LAN, MAN, WAN and PAN, and protocols like TCP and IP allow communication over the network. Networks are used for applications such as file sharing, printing, email, gaming, business, education, and entertainment.