To connect a modem and TV to the same coaxial cable, you’ll need a cable splitter. Connect the cable splitter to the wall socket, then connect the modem and TV to the splitter.