How to connect two computers by LAN cable ?

  1. Connect LAN cable by each other.
  2. PC1 : Set IP to 192.168.1.1 , subnet to 255.255.255.0 and gateway to 192.168.1.2.
  3. PC2 : Set IP to 192.168.1.2 , subnet to 255.255.255.0 and gateway to 192.168.1.1.
  4. Open Manage advanced sharing settings.
  5. Change the two computers by settings below.


Settings

Turn on network discovery
Turn on file and printer sharing
Turn on public folder sharing
Use 128-bit encryption to help protect file sharing connections
Turn off password protected sharing

Click Save changes after change the settings.