Devices may connect to routers to exchange Internet or intranet data. A router is a gateway that sends data across LANs or local area networks. Routers use the Internet Protocol (IP) to transmit IP packets, which include data and the IP addresses of sending and receiving devices that are connected to different local area networks
https://www.pynetlabs.com/what-is-a-router-in-computer-network/