In computing, UDP hole punching refers to a commonly used NAT traversal technique.
The basic idea is to have each host behind the NAT contact a third well-known server (usually a STUN server) in the public address space and then, once the NAT devices have established UDP state information, to switch to direct communication hoping that the NAT devices will keep the states despite the fact that packets are coming from a different host.
In order to work this technique requires a full cone NAT device. It will not work across a restricted cone NAT or a symmetric NAT.
A somewhat more elaborate approach is where both hosts will start sending to each other, using multiple attempts. On a restricted Cone NAT the first packet from the other host will be blocked. After that the NAT device has a record of having sent a packet to the other machine, and will let any packets coming from this IP and port number through.
The technique is widely used in P2P software and VoIP telephony. It is one of the methods used in Skype to bypass firewalls and NAT devices.
The same technique is sometimes extended to TCP connections, albeit with much less success.
This article is licensed under the GNU Free Documentation License.
It uses material from the
"UDP hole punching".
Home Page • arts • business • computers • games • health • hospitals • home • kids & teens • news • physicians • recreation• reference • regional • science • shopping • society • sports • world