It is not difficult to build a local network consisting of two computers. The problem is that usually such connections are created to provide both devices with synchronous access to the Internet.
To build a home local network with Internet access, consisting of two computers, you will need another network card. Purchase this device and connect it to the computer that will receive direct access to the Internet.
Connect both computers together using a network cable. Open Network and Sharing Center on the first computer. Create a new internet connection and configure it.
Open the properties of the second network adapter. Go to TCP / IP configuration. Select "Use the following IP address". Enter the static address value in the first field, for example 220.127.116.11.
Leave the first computer for a while. Turn on the second PC and open the TCP / IP settings of the network adapter connected to the first computer. You need to set up a communication channel with another computer in order to access the Internet. Fill in the following fields (an example of settings is given based on the IP value of the first PC):
- IP address - 18.104.22.168
- Subnet mask - 255.0.0.0
- The main gateway - 22.214.171.124
- The preferred DNS server is 126.96.36.199.
Go back to the first computer. Open the properties of the previously configured Internet connection. Select the "Access" tab. Activate the item responsible for providing access to the Internet for all computers of a specific local network. Enter your network in the next field.
Save the settings. Disconnect and reconnect to the internet.