Normally, the switch is connected directly to the router or modem via the Ethernet port (RJ45). All devices then have network access to the internet from there.