This article explains how to connect two computers to a single home network. You can use this type of network to share files, a printer or other peripheral, and an Internet connection.
How to Connect Two or More Computers Wirelessly and Share Files Between Them
The conventional way to network two computers is to create a dedicated link by plugging a single cable into the two systems. You may need an Ethernet crossover cable, a null-modem serial or parallel peripheral cable, or special USB cables.
The Ethernet method is the preferred choice because it supports a reliable, high-speed connection with minimal configuration required. In addition, Ethernet technology offers the most general solution, allowing networks with more than two computers to be built later.
If one of your computers has an Ethernet adapter, but the other has USB, you can use an Ethernet crossover cable by first connecting a USB-to-Ethernet converter to the computer's USB port.