The router connects devices within a network by moving data packets between them. This data can be transfer between devices, or from devices to the internet. The router does this by assigning a local IP address to each of the devices on the network.