Computer networks allow computers to be connected and share information. They are used for communication, sharing devices and files, and accessing information remotely. The goals of computer networks are to share resources between computers, ensure performance and reliability, increase scalability, and provide security. Computer networks use hardware like network interface cards, servers, routers, and cables to transmit data and software like network operating systems and protocols to facilitate communication. Early computer networks included ARPANET, which served as the basis for the modern Internet.