open Kodi and go to video -> choose files
click on Add Videos and browse .
You will get all the shares option .
Click on “Add Network Localtion …”
Enter the IP of your share and the path if there is any, in case there is a need in credential enter here as well . click OK.
Now you have the new SMB://share_ip to choose, just click it to browse for your shares.
Enter a folder of your choice .
Once inside the folder, Click OK.
Choose the folder type (Movies, music, TV Shows) and the way your folder is built for scanning .
Give a name to the source or leave the default name.
Give it some time to fetch the information . enjoy !