the forums at

NAT Traversal in BitTornado? [TCP hole punching?]
Page 1 of 1

Author:  nsm [ Sun May 03, 2009 6:11 pm ]
Post subject:  NAT Traversal in BitTornado? [TCP hole punching?]

Hello all,
Thanks for kind attention!
I am new guy in the P2P field and am just going through BitTornado source code/forums to understand how BitTornado handles NAT Traversal problem. My understanding so far is that there are ONLY 2 options. OR is there anything beyond the following? ::
1. Use Port-Forwarding: i.e. Manually configure router for port-forwarding.
2. If router supports UPnP, follow guidelines mentioned in an article on this forum titled :"A guide to make uPnP work - with pictures"

My Questions:
1. Does BitTornado use technique like TCP Hole Punching to traverse NAT?
2. I checked 2 relevant files in source code:
a) : has some code regarding UPnP
b) I didnt quite understand what exactly happens here.
Please tell me if there exists a code to do TCP hole punching?
3. Can BitTornado handles a case where 2 peers transferring data are both behind different firewall/NATs? Or BitTornado handles only 1 peer behind NAT case.

Request you to help me out. BitTornado python code seems quite neat but still, any comments in this regard would be of immense help.
If this is not the correct forum, guide me to the correct one!
Best Regards,

Author:  TheSHAD0W [ Mon May 04, 2009 5:45 pm ]
Post subject: 

BitTornado does not attempt any form of automatic NAT traversal aside from attempting UPnP port forwarding in Windows. I've experimented with it and doing so from within Python causes some strange things to happen. I'll perhaps revisit NAT traversal with the proposed UDP peer communcations spec coming up.

Author:  nsm [ Mon May 04, 2009 6:02 pm ]
Post subject: 

Thanks a lot for the prompt response! The clarification was of great help..


Page 1 of 1 All times are UTC - 7 hours [ DST ]
Powered by phpBB® Forum Software © phpBB Group