BT Sync and P2P

Today, I found an interesting tool developed by Bittorrent. Its name is Bittorrent Sync. It use P2P technology to synchronization data between computer. It's quite useful for me to transport file among my computers.

P2P is really an useful technology. A few days ago, I was trying to create a software that use P2P to make a tunnel between two computer behind two NAT gateway. I know there is some standard way for this. More specifically, I need a tool to ssh another computer behind  another NAT. But only STUN cannot meet this demand.

I was confused about why I can't find any existing projects make tunnel using P2P. I tried to create a new one for myself. But It's a little bit hard for me due to the leak of library for P2P.

Finally, I turned to use Instant Messaging way to transmit command. And I create another project to handle python code using XMPP.You can find the code here. It's useful for me to monitor some of my program.

But I still want to build a general tool for tunnel using P2P. I know it's slow for P2P to establish the connection, but it become quick after that. I think this idea is possible.