Archive:SMB/Windows: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
(added outdated cleanup tags)
(20 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{mininav| [[SMB]] }}
{{mininav| [[SMB]] }}
{{outdated}}
{{cleanup}}
{{cleanup}}


Line 7: Line 9:


== Windows 7 ==
== Windows 7 ==
'''The Windows 7 [https://en.wikipedia.org/wiki/Server_Message_Block SMB] information is currently being re-assessed for accuracy and at times may be incomplete. Your patience is appreciated throughout this process. For input on improving this Wiki and information on how to setup a Windows Network (SMB) connection, please visit this thread: [http://forum.kodi.tv/showthread.php?tid=232663 SMB Windows 7].'''
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'''
'''If you are new to Kodi or Windows 7, please post feedback about this wiki in the above thread'''
Line 14: Line 16:




- Using a genuine x64 (64bit) or x86 (32bit) version of Windows 7 with all available and stable BIOS, driver and Windows updates completed.
- Using a genuine x86_64 (64bit) or x86 (32bit) version of Windows 7 with all available and stable BIOS, driver and Windows updates completed.


- Haven't significantly modified Windows after installation (i.e made registry edits).
- Haven't significantly modified Windows after installation (i.e made registry edits).
Line 20: Line 22:
- 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]
- 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 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]
- 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]
- Using a stable release of Kodi: [http://kodi.tv/download/ Kodi Download]
Line 61: Line 63:
</gallery>
</gallery>
<section end="Sharing files or folders" />
<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}}
{{collapse bottom}}


Line 136: Line 145:
=== Conclusion ===
=== Conclusion ===


>>>Post video of shares and adding sources with SMB, within Kodi<<<
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:
 
{{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.
 


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.


== Fixes ==
== Fixes ==
Line 180: Line 252:
#Click "Permissions"
#Click "Permissions"
#Add appropriate users and permissions
#Add appropriate users and permissions
=== Windows 10 fix ===
Using the Windows 7 instructions, with the following if you have issues:
# Open the registry editor
# Go to [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Browser\Parameters]
# Add the string value "IsMasterDomain" with "Yes" as the value
# Restart Windows
For more info see:
* http://openelec.tv/forum/76-network-filesystems/50297-smb-not-working#50301
* http://www.pctools.com/guides/registry/detail/54/


== Further reading ==
== Further reading ==
* [http://windows.microsoft.com/en-au/windows/homegroup-help#homegroup-start-to-finish=windows-7&v1h=win81tab1&v2h=win7tab1 HomeGroup from start to finsih] - Multi step guide provided by Microsoft with videos for Windows 7
* [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://windows.microsoft.com/en-au/windows/homegroup-help#homegroup-start-to-finish=windows-81&v1h=win81tab1&v2h=win7tab1 HomeGroup from start to finsih] - Multi step guide provided by Microsoft with videos for Windows 8.1
* [http://www.admin-magazine.com/Articles/Linux-with-Windows-8 Linux and Windows 8 Interoperability] - Some notes about SMB sharing with Windows 8
* [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
* [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}}
{{Helix updated}}



Revision as of 23:13, 16 July 2018

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

This page or section has not been updated in a long time, no longer applies, refers to features that have been replaced/removed, and/or may not be reliable.

This page is only kept for historical reasons, or in case someone wants to try updating it.

Cleanup.png This page or section may require cleanup, updating, spellchecking, reformatting and/or updated images. Please improve this page if you can. The discussion page may contain suggestions.


Windows Vista

Sharing files and printers. This area requires details from a Windows Vista and Kodi user.

Windows 7

For input on improving this Wiki please visit this thread: 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.

- 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. Add a device or computer to a network

- The Windows user (Administrator is preferable) that has Kodi installed, requires a password to login. Create a user account

- Using a stable release of Kodi: 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:

"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 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.

Troubleshooting

If you require further information than what is listed below, post your issue in Windows General Support with a full Log_file.


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:

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:

2017-11-14 08-23-47.png

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.

OptionalFeatures 2017-11-14 08-24-53.png

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:

SMB Windows 8.1.png

  1. Plain share doesn't seem to be used or doesn't work with Kodi's samba; Use Advanced Sharing
  2. "Share this folder"
  3. Click "Permissions"
  4. Add appropriate users and permissions

Further reading