Introduction - If you have any usage issues, please Google them yourself
P2P UDP penetrate NAT's Theory and Implementation (source code). With the source code to illustrate the UDP Through NAT principle. This is a good principle for the study of P2P procedures.