On the Terminal the following command was given one after another.
sudo apt-get install sambaStep 2:
sudo apt-get install smbfs
For LAN now we have to set up a manual IPV4 address and other related settings. In our case our IP address is 192.168.0.1 with 255.255.255.0 subnet mask.