Straight-through cables connect unlike devices by matching each pin on one end to the same pin on the other end. Crossover cables connect like devices by crisscrossing some wire pairs, allowing both devices to communicate simultaneously. Straight-through cables are used for connections like a computer to a switch, while crossover cables connect like devices such as two computers or two routers.