-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Seed LAN only without tracker #7777
Comments
by "server" I imagine you mean a bittorrent client seeding the file, right? One next step you could take is to capture SSDP traffic in wireshark to see if the packets ever make it to the other end. The messages are broadcast regularly, based on the setting in settings_pack::local_service_announce_interval. This defaults to 5 minutes. However, since both the seeder and download are expected to broadcast, they should find each other quickly. However, if only one party is broadcasting, it may take up to 5 minutes to discover the other peer. I just realized you say: "Server seed and see the client as a peer, client also see the server as peer." So, the peers find each other, it's just that the client isn't downloading from the seed. There's a trouble-shooting guide here: |
Many thanks for your answer arvin, Now it seems better, however, the client (for now qBittorrent) gives a flag "K" saying it is not interested - Local. |
make sure the client that's supposed to be seeding actually is seeding. i.e. has the whole file. If the save path is wrong, it will try to download instead. Even if the path is right, it might need to check the piece hashes of the file to ensure it's correct (unless you provide resume data). That may take some time if the file is large. |
Based on the status ( I also implemented a verification for the hash with : But I need to troubleshoot further. Now, the client doesn't see the server anymore and vice versa. I'll be sure to post the answer when found ^^ |
libtorrent version (or branch): 2.0.9.0
platform/architecture: MacOS intel
compiler and compiler version: Python3.10
I often need to share private large files across several computers in a Local Area Network, sometimes without internet access.
For a fast and efficient file transfer allowing data integrity verification, torrent protocol seems the best option to me
I try to write a python script to (amongst other things):
I am not a very knowledgeable torrent user (nor a very good python guy).
From what I understand, to share in my LAN only, without the need to setup trackers, and the hassle to manually add peers in each clients, LSD should be used.
The script seems to be working as:
However, no downloads occurs.
I tried with a really tiny file.
Server is MacOS (firewall disabled), client is qBittorrent on Windows (firewall disabled) and BiglyBit on mobile.
I tried:
Not sure how to further troubleshoot the issue.
Any help, would be really welcomed ^^
Here are the functions:
I noticed that even though I disabled DHT and did not add any trackers, I see some random external IP addresses popping up in the peers. But if I add the flag
t.set_priv(True)
, I need to manually add the IP+port of the server in each clients (no downloads anyway).PS: the function get_local_ip() is working and returns the actual local IP
Full script
The full script is also handling an HTTP server for an easy way to share the torrent file or magnet link to the clients
The text was updated successfully, but these errors were encountered: