hole-punch
hole-punch copied to clipboard
client B send msg to client A, client A not received
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.
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