Computer networks allow for resource and information sharing between connected computers. There are three main types of networks based on geographical reach: local area networks (LANs) within a building or campus, metropolitan area networks (MANs) within a city, and wide area networks (WANs) spanning long distances globally. Devices can connect to these networks via various technologies like Ethernet cables, WiFi, or satellites.