[bittorrent] modyfying announce URL in the binary torrent

etienne deleflie et at lalila.net
Fri Nov 11 16:09:01 EST 2005


Harold Feit - Depthstrike.com administrator wrote:

>In order for the tracker to properly recognize the public IP address of the
>seed, you MUST (ABSOLUTELY MUST, NO EXCEPTIONS, IGNORE THIS STEP UNDER
>PENALTY OF SPORK-RELATED INJURIES) specify the public IP address of the seed
>in the launch paramaters or configuration. ...
>  
>
spork?! is that like pork?

>The BitTorrent and BitTornado source packages include a btreannounce.py
>command that can rewrite the announce urls without breaking the torrent.
>  
>
that's what I was looking for! 

 ..thanks for your help

Etienne

>-----Original Message-----
>From: bittorrent-bounces at lists.ibiblio.org
>[mailto:bittorrent-bounces at lists.ibiblio.org] On Behalf Of etienne deleflie
>Sent: Friday, November 11, 2005 4:54 PM
>To: bittorrent at lists.ibiblio.org
>Subject: Re: [bittorrent] modyfying announce URL in the binary torrent
>
>Harold,
>
>  
>
>>I have the option of writing a php-based torrent editor to re-do the
>>announce url or sending you a copy of my vb.net announce url replacer.
>>
>>Either way, you still need to specify a public IP on the seed. 
>> 
>>
>>    
>>
>... the torrent that users launch contains the public IP of my server 
>that hosts the tracker (is that what you mean?)
>
>Since I want to first and foremost download the file (that is being 
>torrented) to my local server I am thinking that I have to create a 
>_copy_ of the torrent, change its URL to localhost... so that my local 
>client can then download it, and seed it ...
>
>but are you suggesting that if the URL is changed to localhost then I 
>wont be able to seed it? .... even if the tracker is on the same server? 
>(i.e. localhost)
>
>I was going to use some shell scripts to do search and replace of 
>announce URL on the copies of the torrents ... but if you have some 
>exsiting scripts, that would be great ..... only thing is, I'm on Linux.
>
>Etienne
>
>
>  
>
>>-----Original Message-----
>>From: bittorrent-bounces at lists.ibiblio.org
>>[mailto:bittorrent-bounces at lists.ibiblio.org] On Behalf Of etienne deleflie
>>Sent: Friday, November 11, 2005 4:16 PM
>>To: bittorrent at lists.ibiblio.org
>>Subject: Re: [bittorrent] modyfying announce URL in the binary torrent
>>
>>Harold,
>>
>>that would work .... except I dont have a domain name allocated to my 
>>server's IP ... external users use the external IP address of my tracker 
>>when they make the torrent.
>>
>>can you see a solution given this restriction?
>>
>>Etienne
>>
>> 
>>
>>    
>>
>>>Utilities to edit a torrent's announce url aren't uncommon, however I find
>>>the option of setting an IP to Name mapping of a trackers internal IP to
>>>   
>>>
>>>      
>>>
>>its
>> 
>>
>>    
>>
>>>domain name using a hosts file (%windir%\system32\drivers\etc\hosts on
>>>windows 2000/xp/2003, /etc/hosts on linux) is most effective in making
>>>      
>>>
>sure
>  
>
>>>a seed who is using the same connection as the tracker can connect to the
>>>swarm. Using the client's ability to specify an IP can be used to specify
>>>the public IP of the client to the tracker so that inbound connections are
>>>still possible.
>>>
>>>The announce url itself doesn't really affect how the tracker and peers
>>>identify the torrent, it just affects where the peers go looking for their
>>>batches of other peers. 
>>>
>>>-----Original Message-----
>>>From: bittorrent-bounces at lists.ibiblio.org
>>>[mailto:bittorrent-bounces at lists.ibiblio.org] On Behalf Of etienne
>>>      
>>>
>deleflie
>  
>
>>>Sent: Friday, November 11, 2005 3:47 PM
>>>To: bittorrent at lists.ibiblio.org
>>>Subject: [bittorrent] modyfying announce URL in the binary torrent
>>>
>>>All,
>>>
>>>has anyone heard of a system where once a torrent is submitted to a web 
>>>site, it is copied and the announce URL is modified to point to 
>>>'localhost' so that a client on the same machine as the tracker can then 
>>>seed it?
>>>
>>>Would it work if the seeder torrent is different (has dif anounce URL) 
>>>to torrent that users download and launch?
>>>
>>>Is their a small utility out there that can modify the announce URL 
>>>(given that the torrent format is binary?)
>>>
>>>Etienne
>>>
>>>
>>>
>>>   
>>>
>>>      
>>>
>>>>Hi Mitch,
>>>>
>>>>Thanks for posting the pointer ....... I eventually kind-of-solved my 
>>>>problem by using a free public tracker, which so far has been quite 
>>>>reliable.  I'm using http://www.bittorrent-support.com/. Just means I 
>>>>cant have stats about my how many people have downloaded the torrents 
>>>>(or maybe I can?).
>>>>
>>>>I'm not sure that your solution helps me though. Because in my use case 
>>>>scenario, someone on the internet posts a torrent to my web site ..... 
>>>>then I want my server to download it automatically.... so that it can 
>>>>permanently seed it.  The torrent that they posted uses the announce URL 
>>>>of my tracker (i.e. uses the static IP allocated to my server by my ISP)
>>>>
>>>>I dont have the means to get their torrent, read it, change the announce 
>>>>URL (to use localhost instead of the outside IP) and seed it. At least I 
>>>>dont think that is easily possible.  ... please enlighten me if it is.
>>>>
>>>>Etienne
>>>>
>>>>
>>>>
>>>>  
>>>>
>>>>     
>>>>
>>>>        
>>>>
>>>>>Greetings Etienne,
>>>>>
>>>>>I read about your problem with seeding from the same machine that your
>>>>>tracker was located on:
>>>>>http://lists.ibiblio.org/pipermail/bittorrent/2005-October/001645.html
>>>>>
>>>>>I had the very same problem.  But I realized after reading the thread of
>>>>>messages  that I needed to recreate my .torrent file.
>>>>>
>>>>>My first .torrent file (which didn't work) was created this way:
>>>>>btmakemetafile http://my.full.url:6969/announce /path/to/my/hugefile.iso
>>>>>
>>>>>The solution was to create my .torrent file using "localhost" rather
>>>>>than my full URL:
>>>>>btmakemetafile http://localhost:6969/announce /path/to/my/hugefile.iso
>>>>>
>>>>>Now, my local seed client is able to respond properly to external
>>>>>bittorrent clients!
>>>>>
>>>>>I hope this helps.  Thanks for posting your question in the first
>>>>>place.  If you hadn't, I wouldn't have figured out how to solve my
>>>>>    
>>>>>
>>>>>       
>>>>>
>>>>>          
>>>>>
>>>problem.
>>>
>>>
>>>   
>>>
>>>      
>>>
>>>>>Thanks.
>>>>>
>>>>>
>>>>>
>>>>> 
>>>>>
>>>>>    
>>>>>
>>>>>       
>>>>>
>>>>>          
>>>>>
>>>>_______________________________________________
>>>>BitTorrent mailing list
>>>>BitTorrent at lists.ibiblio.org
>>>>http://lists.ibiblio.org/mailman/listinfo/bittorrent
>>>>
>>>>
>>>>
>>>>
>>>>  
>>>>
>>>>     
>>>>
>>>>        
>>>>
>>>_______________________________________________
>>>BitTorrent mailing list
>>>BitTorrent at lists.ibiblio.org
>>>http://lists.ibiblio.org/mailman/listinfo/bittorrent
>>>
>>>
>>>
>>>
>>>------------------------------------------------------------------------
>>>
>>>_______________________________________________
>>>BitTorrent mailing list
>>>BitTorrent at lists.ibiblio.org
>>>http://lists.ibiblio.org/mailman/listinfo/bittorrent
>>>
>>>
>>>   
>>>
>>>      
>>>
>> 
>>
>>    
>>
>
>
>  
>




More information about the BitTorrent mailing list