FTP

If you have media-files on a computer and you want to share them to an 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.

To accomplish this your Kodi device and FTP server must be able to reach each other through your network (firewall!)

Install vsftpd server in Ubuntu and derivatives
Connect to via:
 * username: xbmc
 * password: password_you_used_during _install
 * port: 21
 * IP: Your Machine IP. e.g. 192.168.1.254

This is a quick script to configure vsftpd to accept connections as above with passive and FXP connections enabled.

The script may not work for all cases bare in mind the FTPS settings if you wish to enable SSL which are no present below.
 * see also: How-to Easy FTP with vsftpd

Alternatively on a Linux distribution you can install the preferred FTP server for that distribution.

FTP server in OS X
On a Mac (OS 10.6 and below) go to system preferences, then sharing, and then click the check box next to file sharing, this will start local file sharing on your machine. Click the 'Options' Button to share files and folders using FTP/SMB/AFP, etc. Choose your folders and you are good to go.

OS X Lion seemingly has disabled FTP server, you can still enable it with the command line.

To start it type the Terminal command:

To stop it:

To enable ftpd on Lion to survive reboots you will need to edit /System/Library/LaunchDaemons/ftp.plist by looking for the lines

Disabled

and changing them to

Enabled

Adding a FTP server in Windows
On a Windows PC you can use a FTP server like e.g. FileZilla Server.
 * see also: Build a home ftp server with filezilla

Adding FTP as a source in Kodi
On the Kodi device use Add Source, select FTP, fill in the credentials and your Kodi device will be able to connect to that FTP server and play files more or less like if the files were local.


 * 1) Add Videos
 * 2) Browse
 * 3) Add network location
 * 4) Select FTP from the protocol menu
 * 5) Complete other fields as required

FTP Source Example (source.xml):

Keep in mind though, FTP is not made for streaming content, it will act a little different sometimes.