Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to stream when selecting a network interface for listen & outgoing interfaces in Kodi plugin Elementum #7703

Open
cavalrymargarine0x1 opened this issue Jul 4, 2024 · 1 comment

Comments

@cavalrymargarine0x1
Copy link

libtorrent version (or branch): https://github.com/ElementumOrg/libtorrent-go

platform/architecture: Windows 10 x64

compiler and compiler version:

please describe what symptom you see, what you would expect to see instead and
how to reproduce it:

I'm using Elementum, a plugin for Kodi. I want to bind it to a specific network interface but I'm having trouble streaming torrent files when doing so by selecting said network interface in the BitTorrent category of the Elementum plugin settings.

If I use the "Select listening interface" & "Select outgoing interface" options and select the network interface I want to bind Elementum to, it cannot stream a torrent file let alone discover peers & seeds.

However, if I manually enter the IPv4 address the interface I want to bind Elementum to is using at the time, then streaming and peer/seed discovery works no problem.

This becomes tedious when the network interface changes IPv4 address every few days. Having Elementum directly bound to the network interface is the goal.

I have tried manually entering the network interface's name in both "Listening interface" & "Outgoing interface", but the result is the same.

qBittorrent also uses libtorrent and I can bind it to the same network interface as I want Elementum to be bound to with no problems.

I'm opening an issue here as Elementum's developer says it could be a libtorrent limitation as Elementum passes interfaces to libtorrent 'as is'. (source)

Any help with my issue here would be greatly appreciated, thanks ☺️

@elgatito
Copy link
Contributor

@cavalrymargarine0x1

Elementum is setting listen_interfaces to a name of the interface.

That is the same issue as reported at #7704

And I see that qBitTorrent is also converting interface name into IP and set it to listen_interfaces - https://github.com/qbittorrent/qBittorrent/blob/8b7fdf0f229d69c63fb0e96780f276fe6c8a620e/src/base/bittorrent/sessionimpl.cpp#L2126

The problem I see is the change of IP address, that can happen on network interface restart.

There are other issues describing same things:

And there are other issues describing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants