Closed smokracek closed 1 year ago
Anyhow, I can't seem to initiate a download
The call to add_torrent()
initiates the download. What is not working as you would expect?
There are a number of steps that need to work before you end up with files on disk.
There's an (incomplete) trouble shooting guide here: http://libtorrent.org/troubleshooting.html
and I consistently get the lsd_error Local Service Discovery startup error [::1]: Can't assign requested address error.
That's not a fatal error, that just means local service discovery won't work over IPv6.
I've tried using settings.set_str(lt::settings_pack::listen_interfaces, ...) with multiple IPs and ports, including 127.0.0.1:6881. I've also tried turning on and off my VPN, deleting buildfiles, etc.
setting listen_interfaces
is an easy way to break downloading. If you do, you should make sure you pay attention to listen_failed_alert
and listen_succeeded_alert
. If you're using a VPN, you probably want to set it to the VPN address or device name (+ port).
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Please provide the following information
libtorrent version (or branch): 2.0.8
platform/architecture: MacOS Ventura, x86
compiler and compiler version: Clang 14.0.0
please describe what symptom you see, what you would expect to see instead and how to reproduce it.
I'm doing a fairly simple setup where I add a magnet link to a session and poll for alerts, with the
lt::session
object is held in a static singleton.client_session.cpp:
alert polling code:
Hopefully this makes sense. Anyhow, I can't seem to initiate a download, and I consistently get the
lsd_error Local Service Discovery startup error [::1]: Can't assign requested address
error.I've tried using
settings.set_str(lt::settings_pack::listen_interfaces, ...)
with multiple IPs and ports, including127.0.0.1:6881
. I've also tried turning on and off my VPN, deleting buildfiles, etc. I'm kind of at a loss and would appreciate some advice. Maybe I'm missing something obvious.