Make a network between two computers by a cable

You need two computers which is having the facilities of drivers, network ports and a network cable.

Go to - Network and Sharing Center.

Then select Change Adapter Settings from left side of the window.

Then select LAN adapter icon and select properties using the right click on it.

Select Network Protocol Version 4 (TCP IPv4) in network tab and chose properties. Now use can see there is a radio button under 'Use the following IP Address' Select it and give IP address as follows.