Sorry, something wrong is yesterday test.
I do experiment again. It now works for a NATed peer(behind router supporting UPnP, NAT-PMP)
to transfer data to another NATed peer(behind router supporting NAT, but not UPnP, NAT-PMP), and vice versa.
Post by linxsThanks!
(all peers i used are client_test from libtorrent project)
I did an experiment and find that a NATed peer can transfer data to another peer with global IP. UPnP and NAT-PMP works in this case.
But in another case: a NATed peer (behind router supporting UPnP/NAT-PMP) can not transfer data to another NATed peer(behind router not supporting UPnP/NAT-PMP).
In this case, hole punching does not work. In what kind of situation, hole punching of libtorrent can work?
Post by Arvid NorbergPost by linxsThanks!
But what is "a shared introducer peer" ? It is a libtorrent peer too?
What I mean is that for two NATed peers to be able to connect, they both
need to be connected to a 3rd peer that can introduce them to each other.
This is sometimes referred to as the rendezvous peer. The introduction is
done via an extension to the peer-exchange functionality. Both libtorrent
and uTorrent supports this, so it doesn't _have_ to be libtorrent, but some
other peer in the swarm.
Perhaps the most important consequence of this is that you can't have a
swarm with all NATed peers.
Post by linxsDo I need to do some extra work(configure libtorrent, or setup an
"introducer peer" server)
to enable libtorrent to "hole punching"?
no. But if you want higher reliability of it working for swarms entirely
made out of peers behind NAT, then you could build something like that (but
there's no built-in support in libtorrent for it).
--
Arvid Norberg
------------------------------------------------------------------------------
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