A nat penetration method based on kcp protocol
A protocol and server-side technology, applied in the field of UDP penetration and NAT type detection technology, can solve the problems of low reliability of UDP penetration and difficulty of NAT penetration, etc., and achieve the effect of improving the success rate and ensuring reliability
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0022] The purpose and effect of the present invention will become more obvious by describing the present invention in detail according to the accompanying drawings and specific embodiments.
[0023] like figure 1 As shown, in the NAT penetration method based on the KCP protocol of the present invention, the client that needs to be assisted by NAT penetration in the method is C1, and the client that C1 wants to connect to is C2. The method specifically includes the following steps:
[0024] S1: C1 initiates a NAT traversal request to the server to penetrate C2;
[0025] S2: The server responds as follows according to the situation of the client C1:
[0026] (1) If C2 does not exist, the server replies to C1 with a message that C2 does not exist, and C1 ends this NAT penetration;
[0027] (2) If C2 exists and C1 is a public network node, the server will notify C2 to reversely connect to C1, and C1 will wait for a period of time for the connection from the other party. If the ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 
