How to Connect 2 Computers?

Two computers can be connected using Ethernet. A crossover ethernet cable can be use for direct connection. Or straight through cable can be used for connection through router/switch.