Difference between revisions of "SMB/Windows"

From Official Kodi Wiki
< SMB
Jump to: navigation, search
(Windows 10)
(Page cleared.)
 
Line 1: Line 1:
 
{{mininav| [[SMB]] }}
 
{{mininav| [[SMB]] }}
  
{{outdated}}
+
{{outdated|Due to the amount of outdated information, this page has been cleared to avoid any confusion.<br>If you have experience with SMB, please consider rewriting this page.}}
{{cleanup}}
 
  
== Windows Vista ==
 
  
[http://windows.microsoft.com/en-us/windows/sharing-files-printers-help#sharing-files-and-printers=windows-vista&v1h=win81tab1&v2h=win7tab1&v3h=winvistatab1&v4h=winxptab1 Sharing files and printers]. This area requires details from a Windows Vista and Kodi user.
 
  
== Windows 7 ==
+
'''This page has been intentionally cleared.'''
For input on improving this Wiki please visit this thread: [http://forum.kodi.tv/showthread.php?tid=232663 SMB Windows 7].'''
 
  
'''If you are new to Kodi or Windows 7, please post feedback about this wiki in the above thread'''
 
  
=== Assumptions ===
 
  
  
- Using a genuine x86_64 (64bit) or x86 (32bit) version of Windows 7 with all available and stable BIOS, driver and Windows updates completed.
+
{{top}}
 
 
- Haven't significantly modified Windows after installation (i.e made registry edits).
 
 
 
- Connected or ability to connect to a functioning private (home) wireless or wired network. [http://windows.microsoft.com/en-au/windows/add-device-computer-to-network#1TC=windows-7 Add a device or computer to a network]
 
 
 
- The Windows user (Administrator is preferable) that has Kodi installed, requires a password to login. [http://windows.microsoft.com/en-au/windows/create-user-account#create-user-account=windows-7 Create a user account]
 
 
 
- Using a stable release of Kodi: [http://kodi.tv/download/ Kodi Download]
 
 
 
=== Homegroup method ===
 
 
 
The following procedure demonstrates how to establish a Homegroup within Windows 7 and how to share a file and/or folder. This is the basis for utilising Windows Network (SMB) shares for Kodi:
 
 
 
{{collapse top|Click "Expand" to see the Guide steps}}
 
'''Step 1''': Creating a Homegroup
 
 
 
Points to note: Step 1 can be completed during OS installation.
 
* Go to Start Menu > Control Panel
 
* Within Control Panel, Type Homegroup in the search box
 
* Click on Homegroup
 
* Click on Create a Homegroup
 
* Note down password (only required for a Windows PC to access a Homegroup)
 
* Select what Libraries you would like to share, if any
 
* You have created a Homegroup
 
 
 
 
 
'''Step 2''': Joining a Homegroup
 
 
 
Points to note: You need to join a Homegroup to be able to share with a Homegroup
 
* Go to Start Menu > Control Panel
 
* Within Control Panel, Type Homegroup in the search box
 
* Click on Homegroup
 
* Click on Join Now
 
* Enter password noted down from Step 1
 
* You have joined a Homegroup
 
 
 
 
 
'''Step 3''': Sharing files or folders
 
 
 
Points to note: Only share a file or folder, '''DO NOT''' share a complete drive e.g. E:\
 
<section begin="Sharing files or folders" />
 
<gallery widths=500px heights=313px>
 
File:SMB_03.jpg|* Select file/folder by single left clicking.
 
File:SMB_04.jpg|* Share with > Homegroup (Read/Write).
 
</gallery>
 
<section end="Sharing files or folders" />
 
 
 
 
 
'''Step 4''': Adding an SMB source within Kodi
 
* When using the [[Adding_video_sources]] procedure, select 'Windows network (SMB) at '''Step 4'''.
 
* You may be prompted for a username and password, this is your Windows logon details.
 
* Select your shared folder
 
* Resume [[Adding_video_sources]] from '''Step 5'''.
 
{{collapse bottom}}
 
 
 
=== "Share with" method ===
 
 
 
This method give full control over setup of the sharing options.
 
 
 
:'''Windows 7 (x64) users''' : You must uninstall Windows Live Sign-in Assistant for sharing to work. Reasons are unclear as why you need to do that.
 
 
 
SMB is an easy and standard way to share your media to all your computers and HTPCs on your network. However, Microsoft is making it more and more difficult to share using SMB in Windows. You have to turn off [http://en.wikipedia.org/wiki/Home_network#Home_group Homegroup] and do all sorts of other messy things. The following is a guide to quickly and easily turn SMB sharing on in Windows 7.
 
 
 
{{collapse top|Click "Expand" to see the Guide steps}}
 
 
 
'''Preparation'''
 
 
 
As a initial step, you should be connected to your network. I, personally, am connected using a LAN cable and have been provided an IP address by my router using DHCP. If you prefer to use Static IP, there should be no real problem. If you can see the internet, you should be connected enough to the router for our purposes. Also, when you are first connecting your Windows 7 computer to your network, it will ask if you are connecting to Home, Work, or a Public network. This guide presumes that you selected Home. The same steps ''should'' work if you selected Work. They will almost certainly not work if you selected Public. Also, sometimes you will be asked to be certain if you want to do something or you will be asked to go up a level in clearance to do something. This guide presumes that you agree to all of that.
 
 
 
'''Guide'''
 
 
 
{| class="prettytable" style="font-size:1.0em;line-height:150%;"
 
|-
 
! style="font-size:2.5em;" | 1
 
| Click the "Network Internet Access" icon at the bottom right of your screen, next to your clock, speaker icon, and possibly power icon. Click open the "Network and Sharing Center."
 
|-
 
! style="font-size:2.5em;" | 2
 
| Locate and click "Choose homegroup and sharing options." You are now on the "Change Homegroup settings" window. In this window, click "Leave the homegroup..." A warning will pop up. Go ahead and click "Leave the homegroup."
 
|-
 
! style="font-size:2.5em;" | 3
 
|You are now presented with a page labeled "Share with other home computers running Windows 7." From here click the link "Change advanced sharing settings..."
 
|-
 
! style="font-size:2.5em;" | 4
 
| You are now at the "Change sharing options for different network profiles" page. This is where you are going to do the nitty gritty. I'm going to go option by option. Most of these will probably already be configured correctly, but I'll tell you how they should be configured, nonetheless.
 
 
 
''Network Discovery'': turn on network discovery
 
 
 
''File and printer sharing'': turn on
 
 
 
''Public folder sharing'': Your choice. It can be on or off.
 
 
 
''Media Streaming'': By default, this is off. You can turn it on if you want, but it is not why we are here, so I'm going to leave it off for now.
 
 
 
''Password protected sharing'': Turn off password protected sharing
 
 
 
''HomeGroup connections'': This doesn't really matter, since you already left homegroup. However, I allowed Windows to manage my homegroup connections. It seemed easier than arguing.
 
|-
 
! style="font-size:2.5em;" | 5
 
|Click Save changes. Now close the window that says "Share with other home computers running Windows 7."
 
|-
 
! style="font-size:2.5em;" | 6
 
| Navigate to a folder you want to share. I am navigating to D:\Movies. First, left click on D:\Movies (or whatever your folder is named) to make sure it is highlighted. Then, right click on the folder. Put your mouse over "Share with" and four options should pop up "Nobody, Homegroup (read), Homegroup (read/write), Specific people." Click "Specific people..."
 
|-
 
! style="font-size:2.5em;" | 7
 
|You should now be on a dialog that is entitled "Choose people to share with." Your goal is to share the folder with "Everyone." On the dialog there should be a list of people. This list might include "Administrator," your username, "Guest," and "Everyone." It might only contain a subset of that group. If "everyone" is listed, simply click everyone, then click "Share." Voila, done. If you want to decide whether to keep Everyone as a Reader or change them to a Reader/Writer (or vice versa), read Step eight.
 
 
 
If Everyone is not listed, click the dropdown arrow next to the "Add" button. "Everyone" should be on the list there. Click it, then click Add. If "Everyone" isn't on the dropdown list, you may be able to type "Everyone" in and click Add. Feel free to comment if this is an issue and/or it doesn't work.
 
|-
 
! style="font-size:2.5em;" | 8
 
|Once "Everyone" has been added to the list, you have two choices. You can choose to keep "Everyone" as a Reader only, in which case Kodi would be able to read the files, but could not write anything into the folder, meaning it could not correct file names or export nfos and tbns into the folder, if you want that. Or you can choose to change Everyone to Read/Write, using the drop down arrow on the Everyone line. Then Kodi can export, but you have to deal with the danger that anyone on the network could change the files.
 
 
 
Once you've made your decision, click "Share."
 
|-
 
! style="font-size:2.5em;" | 9
 
|Repeat steps seven and eight for all folders you wish to share.
 
|}
 
 
 
{{collapse bottom}}
 
 
 
=== Troubleshooting ===
 
 
 
If you require further information than what is listed below, post your issue in [http://forum.kodi.tv/forumdisplay.php?fid=59 Windows General Support] with a full [[Log_file]].
 
 
 
 
 
[http://forum.kodi.tv/showthread.php?tid=184785&pid=1615607#pid1615607 Android Throughput Timeout Issue] - Refer to 'Further Reading' for more information from Microsoft.
 
 
 
=== Conclusion ===
 
 
 
Now you can add your sources in Kodi without difficulty, but the guide to Kodi sources and scraping is in the Wiki and doesn't need to be repeated here.
 
 
 
== Windows 10 ==
 
Using the Homegroup method (''this is only applicable until version 1803 of Windows 10''):
 
 
 
{{collapse top|Click "Expand" to see the Guide steps}}
 
'''Step 1''': Creating a Homegroup
 
 
 
Points to note: Step 1 can be completed during OS installation.
 
* In the search bar, type and select 'Control Panel'
 
* Within Control Panel, Type Homegroup in the search box
 
* Click on Homegroup
 
<gallery widths=500px heights=313px>
 
File:WIN_SMB_01.jpg|* Click on Create a Homegroup
 
File:WIN10_SMB_02.jpg| * Note down password (only required for a Windows PC to access a Homegroup)
 
</gallery>
 
* Select what Libraries you would like to share, if any
 
* You have created a Homegroup
 
 
 
 
 
'''Step 2''': Joining a Homegroup
 
 
 
Points to note: You need to join a Homegroup to be able to share with a Homegroup
 
* In the search bar, type and select 'Control Panel'
 
* Within Control Panel, Type Homegroup in the search box
 
* Click on Homegroup
 
* Click on Join Now
 
* Enter password noted down from Step 1
 
* You have joined a Homegroup
 
 
 
 
 
'''Step 3''': Sharing files or folders
 
 
 
Points to note: Only share a file or folder, '''DO NOT''' share a complete drive e.g. E:\
 
<section begin="Sharing files or folders" />
 
<gallery widths=500px heights=313px>
 
File:WIN10_SMB_03.jpg|* Select file/folder by single left clicking.
 
File:WIN_SMB_04.jpg|* Share with > Homegroup (Read/Write).
 
</gallery>
 
<section end="Sharing files or folders" />
 
 
 
 
 
'''Step 4''': Adding an SMB source within Kodi
 
* When using the [[Adding_video_sources]] procedure, select 'Windows network (SMB) at '''Step 4'''.
 
* You may be prompted for a username and password, this is your Windows logon details.
 
* Select your shared folder
 
* Resume [[Adding_video_sources]] from '''Step 5'''.
 
{{collapse bottom}}
 
 
 
=== Troubleshooting ===
 
 
 
==== Connection Timed Out ====
 
 
 
When sharing folders from a Windows 10 host that you need to connect to with Kodi, you may repeatedly get the message "Connection Timed Out" from Kodi when trying to connect. This may be because '''SMB 1.0/CIFS File Sharing Support''' is not enabled in Windows.
 
 
 
Check by typing '''Turn Windows features on or off''' in the '''Type here to search''' box in your taskbar (on the server that you're sharing folders from) and select the best match:
 
 
 
[[File:2017-11-14_08-23-47.png|300px]]
 
 
 
In the '''Windows Features''' window that opens, scroll down and make sure that the checkbox for '''SMB 1.0/CIFS File Sharing Support''' is checked, and all of the check-boxes below are checked as well. If not, check them off, click '''OK''', and restart your computer. This will enable an older protocol version that Kodi supports.
 
 
 
[[File:OptionalFeatures_2017-11-14_08-24-53.png|400px]]
 
 
 
Try connecting from Kodi again.
 
 
 
== Fixes ==
 
 
 
=== Timeout ===
 
 
 
SMB sources may time out (FAILED CONNECTION)  for some devices, regardless of the configuration settings above when connecting a front end to the backend (or Main) installation.
 
Usually this will persist and then stop, and repeat the condition, garnering much frustration.
 
 
 
This can cause a various amount of issues, including removal of library files upon update, or cleaning of libraries.  The below is a possible solution stabilize those that have the persistent "failed connection" state for SMB in KODI.
 
 
 
'''WARNING''': You attempt registry entry editing at ''your own risk.'' Incorrect configuration could cause you to reload your operating system.  It is recommended you attempt this fix ONLY if it is required.
 
 
 
This is based off of a WIN 7 kb:
 
'''http://support.microsoft.com/kb/232271'''
 
 
 
From the kb, edit the following entry:
 
 
 
'''HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters\siz​e'''
 
 
 
Your choices for this registry key are 1,2 and 3.
 
 
 
1 = Minimize Memory Used
 
 
 
2 = Balance
 
 
 
3 = Maximize Throughput for File Sharing and Maximize Throughput for Network Applications
 
 
 
Ensure size is set to "3".  This has cleared the intermittent issues on failed SMB connections from the backend to a front end device. This has been verified on various devices, such as Ouya, Matricom devices, Fire TV stick, and others.
 
 
 
The other options in the kb may be tried, but success has been accomplished with this one setting.
 
 
 
=== Windows 8.1 fix ===
 
 
 
Users can use the Windows 7 instructions but should also do the following if they have issues with protected shares:
 
 
 
[[File:SMB Windows 8.1.png|800px]]
 
 
 
#Plain share doesn't seem to be used or doesn't work with Kodi's samba; Use Advanced Sharing
 
#"Share this folder"
 
#Click "Permissions"
 
#Add appropriate users and permissions
 
 
 
== Further reading ==
 
* [https://support.microsoft.com/en-au/help/17145/windows-homegroup-from-start-to-finish HomeGroup from start to finsih] - Multi step guide provided by Microsoft for Windows 7, 8.1 & 10
 
* [http://www.admin-magazine.com/Articles/Linux-with-Windows-8 Linux and Windows 8 Interoperability] - Some notes about SMB sharing with Windows 8
 
* [https://support.microsoft.com/en-us/kb/232271 How to Optimise Windows NT Server Using the Registry] - Microsoft Throughput timeout issue
 
* http://www.pctools.com/guides/registry/detail/54/
 
* http://openelec.tv/forum/76-network-filesystems/50297-smb-not-working#50301
 
{{Helix updated}}
 
 
 
[[Category:Windows]]
 
[[Category:How-to]]
 
[[Category:File sharing]]
 
[[Category:Manual]]
 

Latest revision as of 10:05, 22 February 2020

Home icon grey.png   ▶ SMB ▶ Windows
Time.png THIS PAGE IS OUTDATED:

Due to the amount of outdated information, this page has been cleared to avoid any confusion.
If you have experience with SMB, please consider rewriting this page.


This page has been intentionally cleared.



Return to top