what cable can connect a  computer to a computer
Plug in an ethernet cable. To connect two computers that don't have access to a shared network, you can use an Ethernet cable to make a direct connection between the two computer's Ethernet ports.