There are several ways to link two computers. One way is to set up a wired network. This provides the most security when sharing files and Internet connection. You will need a router to set up a wired network. On the other hand, a wireless connection is also possible. You need to have a wireless router, a wireless access point, and Ethernet cables. Instead of connecting the computer to a DSL or cable modem, connect it to the wireless router.