| CPC H04L 67/141 (2013.01) [H04L 61/2503 (2013.01); H04L 67/104 (2013.01)] | 20 Claims |

|
1. A method for establishing a peer to peer (P2P) connection, applied to a first client device, comprising:
communicating with at least two auxiliary nodes, to obtain answer messages returned by the at least two auxiliary nodes;
determining, based on the answer messages, at least one public network address corresponding to an internal network address of the first client device;
registering, with a cloud server, the at least one public network address corresponding to the internal network address of the first client device, and monitoring the at least one public network address corresponding to the internal network address of the first client device; and
establishing a P2P connection to a second client device in response to detecting, in a preset duration, that the second client device returns a response data packet to a target public network address, wherein the target public network address is one of the at least one public network address corresponding to the internal network address of the first client device.
|