|There are two common ways to do it:|
- Get a network cable to connect both computers as shown here, but each computer must be equipped with network adapter.
- If each computer is equipped with wireless adapter, then you can set up ad-hoc wireless connection to connect both computers. If you are interested, can take a look on this ad-hoc wireless connection setup in Windows 7 article.
Hope this helps.