Routers use IP addresses to determine where to send data packets. IP addresses provide the unique identification needed for routing data across networks, enabling the router to direct packets to their correct destinations. This fundamental aspect of network communication is outlined in Axis Communications' documentation on network protocols and IP-based systems.