what is a device that connects a device to the internet

A router is a device that connects a device to the internet by receiving data from the internet and routing it to the appropriate device on a local area network. Another device that connects devices to the internet is a modem, which converts digital data from a computer into analog signals that can be transmitted over telephone lines or cable lines for internet access.