Kodi Community Forum

Full Version: Addon featuring a http server
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I'm new to the addon developpment for kodi and I'm currently trying to work on an addon that has to host files on a http server.
As Kodi features a HTTP server for the web interface, I figured I could use this one instead of bringing in a new one (because of the possible port conflict and in order to not have to embed a http file server in my plugin). But I can't find a lot of information about the embedded http server in kodi and how it would be possible to use it for my purpose.

Is it possible to achieve that ?
If not, could you point me in the right direction, to use a lightweight http server in my addon ?

I'm working with kodi running on xbian, on a raspberry pi 2.

Thanks,
Regards.
Python standard library includes several network servers for different purposes. Naturally, they are not powerful enough (and not secure enough) to host heavy-load web-sites with thousands of users, but they are quite capable to support your addon's web-UI with a couple of users if you need one.