From browser to server
Packets carry a destination, not a full route
Data is split into packets. Each one includes a source IP address and a destination IP address. A router looks at the destination, checks its routing table, and sends the packet to the next useful hop. The next router repeats that process.
Routers are not keeping a list of every device online. They work with network ranges and prefixes. A route for a large prefix can cover many addresses, which is why CIDR notation matters in routing tables.