A router is a devices that transfers data packets along networks. It's connected to at least two networks, commonly a LAN (home or office network) and the internet. This allows all the computers on the LAN to share the same internet connection.