A network connects two or more computers together so they can share resources and transfer files. There are two main types: peer-to-peer networks have nodes that communicate directly, while client/server networks have central server computers that provide resources. Networks use various transmission media like wires or wireless. Common threats include hackers, who may access computers illegally, and viruses, which can replicate and slow down systems. People can help protect computers by using firewalls and antivirus software to block intrusions and detect infections.