Respuesta de referencia
A router is a hardware device that essentially works as a post office for your network, directing the flow of data packets between devices. It works by connecting networks and directing packets, based on IP addresses, to their destination over the most expedient route possible.
When the router receives a data packet, it reads the packet's destination IP address, then it consults its routing table, which is a database of known networks and how to reach them. Using this information, it then routes the packet accordingly, be it to an internal device in your home network or to another network over the internet.
In a home network, a router often serves two main functions. It connects your network of personal devices, like your PC and smart TV, to each other in a local area network (LAN), and it also connects your LAN to the wide area network (WAN), usually the internet. So, if you're streaming Netflix on your smart TV, the data comes from Netflix's servers over the internet, enters your home via your router, and the router then directs it to your TV.