While switches allow different devices on a network to communicate, routers allow different networks to communicate. A router is a networking device that routes data packets between computer networks. A router can connect networked computers to the Internet, so multiple users can share a connection.