Discussion:
[libtorrent] Does libtorrent support to setup a DHT router server
linxs
2017-05-02 06:25:20 UTC
Permalink
I found some code in expample "client_test":
*********************************************************************
if (start_dht)
{
settings.set_bool(settings_pack::use_dht_as_fallback, false);

ses.add_dht_router(std::make_pair(
std::string("router.bittorrent.com"), 6881));
ses.add_dht_router(std::make_pair(
std::string("router.utorrent.com"), 6881));
ses.add_dht_router(std::make_pair(
std::string("router.bitcomet.com"), 6881));
}
*********************************************************************

Are "router.bittorrent.com", "router.utorrent.com", "router.bitcomet.com" DHT router server?
I want to setup my own DHT router server to prevent strangers BT peer from finding my torrent and downloading my files.
Does libtorrent support to setup DHT router server?

thanks!
Steven Siloti
2017-05-04 02:43:19 UTC
Permalink
If you want to keep a torrent private you should run your own tracker and
set the private flag in the torrent file which will prevent it from being
announced to the DHT.
Post by linxs
*********************************************************************
if (start_dht)
{
settings.set_bool(settings_pack::use_dht_as_fallback, false);
ses.add_dht_router(std::make_pair(
std::string("router.bittorrent.com"), 6881));
ses.add_dht_router(std::make_pair(
std::string("router.utorrent.com"), 6881));
ses.add_dht_router(std::make_pair(
std::string("router.bitcomet.com"), 6881));
}
*********************************************************************
Are "router.bittorrent.com", "router.utorrent.com", "router.bitcomet.com"
DHT router server?
I want to setup my own DHT router server to prevent strangers BT peer from
finding my torrent and downloading my files.
Does libtorrent support to setup DHT router server?
thanks!
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Libtorrent-discuss mailing list
https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
--
Steven Siloti <***@gmail.com>
linxs
2017-05-04 05:50:09 UTC
Permalink
Thanks!

I make a torrent file with private flag is set 1.
Then i use client_test as the p2p peer software, to transfer a file from one peer to another peer.
I find: no data can be transfer.
press 't', 'i' in client_test to show tracker and peers, nothing is shown.
question: how to use the private flag? does client_test need to do some extra work to make tracker server used?
Post by Steven Siloti
If you want to keep a torrent private you should run your own tracker and
set the private flag in the torrent file which will prevent it from being
announced to the DHT.
Post by linxs
*********************************************************************
if (start_dht)
{
settings.set_bool(settings_pack::use_dht_as_fallback, false);
ses.add_dht_router(std::make_pair(
std::string("router.bittorrent.com"), 6881));
ses.add_dht_router(std::make_pair(
std::string("router.utorrent.com"), 6881));
ses.add_dht_router(std::make_pair(
std::string("router.bitcomet.com"), 6881));
}
*********************************************************************
Are "router.bittorrent.com", "router.utorrent.com", "router.bitcomet.com"
DHT router server?
I want to setup my own DHT router server to prevent strangers BT peer from
finding my torrent and downloading my files.
Does libtorrent support to setup DHT router server?
thanks!
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Libtorrent-discuss mailing list
https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
--
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Libtorrent-discuss mailing list
https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
Loading...