Question: how to connect two computers to one printer with cable?
Answer: Connect the network cable or crossover network cable to one of the network ports on the first computer. ... 
Log in to one of the computers, and then right-click on the network icon in the system tray area of the taskbar.