A computer network connects multiple computers and devices to allow communication and sharing of resources. It can be a local area network (LAN) connecting devices within a home or building, a metropolitan area network (MAN) connecting devices within a city, or a wide area network (WAN) connecting multiple LANs across large distances like countries. Common network topologies include bus, star, ring and tree - with bus having all devices connect to a central backbone cable, star having all devices connect to a central host, ring having devices connected in a loop, and tree combining aspects of bus and star. Networks allow file sharing, printing, communication, remote access, data protection, and centralized support.