There are literaly hundreds of different ways to connect two computers to form a small LAN.
More info please,
Cabled or wireless?
Only for Gaming, or to share Internet connection etc.?
Do both computers have Ethernet / network sockets?
Do both computers have USB?
Only for two computers, no more in the future, even on a temporary basis, i.e. mates?