hole-punch icon indicating copy to clipboard operation
hole-punch copied to clipboard

client B send msg to client A, client A not received

Open dalekzhangdong opened this issue 7 years ago • 1 comments

client a and b is both behind nat , server have public ip , client a can connect server , client b same too, client b got client a address , and send data to client a, client a not received.

dalekzhangdong avatar Sep 07 '17 04:09 dalekzhangdong

client a and b is both behind nat , server have public ip , client a can connect server , client b same too, client b got client a address , and send data to client a, client a not received.

Consider this: if both P2P nodes behind the NAT send packets to each other's public IP/port, the first packet from each party is discarded because it was unsolicited. But subsequent packets are let through because NAT thinks the packets are replies to our original request. And voilà the hole is punched, and UDP traffic can pass through directly between the P2P nodes. For Full article go to this page

omkarjc27 avatar Jun 15 '19 15:06 omkarjc27