jflyup / nat_traversal

travel across kinds of NATs, including symmetric NATs
258 stars 84 forks source link

cannot connect #2

Open gitkeidy opened 7 years ago

gitkeidy commented 7 years ago

'time out, not connected' I try to connect two hosts behind Symmetric NAT, but failed.

jflyup commented 7 years ago

Yeah, it's not easy to connect two hosts behind Symmetric NAT. If you read the paper I mentioned in README, this method is to punch many holes on one side, then wish other side can run into one hole, so the success rate is low.

wsgtrsys commented 7 years ago

me too

jflyup commented 7 years ago

Sorry, dude, I'm busy these day. I'll try to improve success rate later.

bigcai commented 5 years ago

i have read the paper and your implemented code, i found some about how to deal variety of mapping port rule in Symmetric NAT is so unclear, example : incremental algorithm NAT VS randomly algorith NAT . Just you saying, two side are looked like randomly punch, so the success rate is low.

melsonmascarenhas commented 1 year ago

Improvement : I think its better to add heart beat function where client will send keep alive messages continuously to server