What connects two different connections of distinct networks?

What connects two different connections of distinct networks?

الگ الگ نیٹ ورکس کے دو مختلف کنکشن کو کیا جوڑتا ہے؟
Explanation

A router is a device that connects two or more packet-switched networks or subnetworks.

It serves two primary functions:

  1. Managing traffic between these networks by forwarding data packets to their intended IP addresses.
  2. Allowing multiple devices to use the same Internet connection.