tomp2p / TomP2P

A P2P-based high performance key-value pair storage library
http://tomp2p.net
Apache License 2.0
438 stars 122 forks source link

hole punching alternative #130

Open luislorenzom opened 8 years ago

luislorenzom commented 8 years ago

I have read in your webpage that the latest release of TomP2P does not support hole punching. I would like to know if TomP2P has any alternative to send direct messages between to peers in different networks, that is, between NAT-ed LAN networks, either implemented in the library or planned to be in the future. If it exists, is there any example available?

sytolk commented 8 years ago

You can check this example TomP2P/examples/src/main/java/net/tomp2p/examples/ExampleHoleP.java

luislorenzom commented 8 years ago

I tested it a few weeks ago, but throws me a NullPointerException at line 43, when it sends a message from "unreachable1" to "unreachable2". I don't know if is a library problem or my dev environment. However, thanks for your help!

kg6zvp commented 6 years ago

Any progress on this?

luislorenzom commented 6 years ago

Still no answer from main developers :-/

tbocek commented 6 years ago

Sorry for the delay, we are working on https://github.com/jonaswagner/sctp4j, which will make hole punching much easier. The idea is to have SCTP tunneling over UDP. That means if we have a UDP connection we can "upgrade" to SCTP. That also means we will ditch TCP and use UDP and SCTP only.