The easiest way is to have the two hooked up onto their own network, either via a network cable + hub/switch or a crossover network cable (crossover cables have some wires inside reversed as opposed to a normal network cable).
Do both computers have Ethernet ports (like a telephone line port for a modem, only slightly larger)? What operating system are you running (computers need to be configured to talk to each other once physically hooked up)?