Skip to content

How to seed using DHT? #827

Answered by anacrolix
leoncwu asked this question in Q&A
Apr 21, 2023 · 1 comments · 8 replies
Discussion options

You must be logged in to vote

Your best bet would be to use https://github.com/anacrolix/torrent/blob/master/cmd/torrent/serve.go and https://github.com/anacrolix/torrent/blob/master/cmd/torrent/download.go, which are implementations for the cmd/torrent subcommands serve and download. They show examples of building a metainfo, and then downloading from an infohash. If you configure it correctly with DHT (the default, but you can force it by removing trackers), then the discovery part of the process will be through the DHT.

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@anacrolix
Comment options

@leoncwu
Comment options

@anacrolix
Comment options

@leoncwu
Comment options

@anacrolix
Comment options

Answer selected by leoncwu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants