File sharing

From Official Kodi Wiki
Jump to: navigation, search
Home icon grey.png   ▶ Video library
▶ Music library
▶ Media sources ▶ File sharing

One of the most convenient functions of Kodi is its ability to stream media from any networked PC (personal-computer). On this page is a list of file sharing related pages/topics on the Kodi wiki.

To learn how to access these remote shares in Kodi, please look at Kodi media sources.

1 Supported file sharing protocols

1.1 FTP

If you have media-files on a computer and you want to share them to a Kodi device, an FTP server is one option you can use. By default Kodi (namely XBMCbuntu) does not have any FTP server software installed, that does not mean you cannot add a FTP server to the installation and use it. Here we defer to vsftpd as a example.

1.2 HTTP

Kodi contains an HTTP-client with which you can add sources in all sections in the Kodi interface.

1.3 NFS

Network File System, or NFS, is a way to share folders over a network, and was added to XBMC in v11 (Eden). The main benefits of using NFS instead of SMB are its low protocol overhead (which allows it to send data across a network more quickly) and its use of simple UID's to authenticate users rather than username/password combinations. This part bears repeating, as many people are confused on this point and try to create usernames and passwords to get Kodi to work with NFS: NFS does not use usernames or passwords as logins; it uses a UNIX-based "userID" (UID) alone.

1.4 RSS media source

Kodi supports RSS feeds as video and audio sources. Adding an RSS source in Kodi will make the individual RSS entries browsable in the Kodi interface, along with thumbnails and other metadata if available. RSS feeds cannot be scanned into the video or music library, so they are only accessible from the files view..


1.5 SFTP

Kodi ships with SFTP (SSH File Transfer Protocol) (not to be confused with FTP) client support for accessing file shares.

1.6 SMB

Windows File Sharing, aka Server Message Block (SMB), is the standard client-server protocol used by Windows to share resources over a network. SMB is available on all Windows computers and can be easily setup by the home user. SMB can also be accessed by other operating systems, which makes SMB the most commonly used network protocol to access content on a NAS or other remote hardware.

1.7 UPnP

Kodi can be used as a UPnP Server that will stream its library contents to other players on the network, or it can be used as a UPnP Client that can receive music and video from a UPnP Server on the network.

1.8 WebDAV

No content


2 Other file sharing topics

2.1 Media sources

Media Sources are virtual links to the content you wish Kodi to use. When you enter any of the Video library, Music library, Pictures or the File manager, you will see an entry for "Add Sources". When you first start with Kodi you should at least add one source, like a drive or directory on your Kodi device to get you started.

2.2 Avahi Zeroconf

Avahi is a system which facilitates service discovery on a local network via the mDNS/DNS-SD protocol suite. This enables Kodi to recognize media sources inside your local network without knowing where the sources are located and what protocol is used. Compatible technology is found in Apple MacOS X (branded Bonjour and sometimes Zeroconf). Avahi is available for linux and derivates (BSD) afaik.

2.3 Filemanager

The File Manager allows the maintenace of files from within Kodi on platforms that have no underlying and easily accessible operating system. It will allow you to perform functions such as Move, Copy and Delete to name a few.

2.4 Auto wake on lan

Starting in v13, Kodi can automatically issue a 'wake-on-lan' packet to MySQL or a file sharing server right before it needs to connect to it.

3 Library sharing

MySQL
If you have more than one Kodi device on your local network then you might want to synchronize them by sharing the Kodi library databases via the MySQL protocol. Using shared library databases allows you to store information for either your video or music library in a central database, so that multiple devices can access the same information at the same time.


4 Advanced configuration of shares/sources (editing sources.xml)

For advanced configuration instructions about shares/bookmarks, (by editing sources.xml), see the Media_sources and Types of Media Sources articles.