US 12,273,419 B2
Method, client, and system for establishing P2P connection
Honglei Cui, Shanghai (CN); Shunli Liang, Shanghai (CN); Hanchao Zheng, Shanghai (CN); Biao Hu, Shanghai (CN); and Hao Wang, Shanghai (CN)
Assigned to SHANGHAI BILIBILI TECHNOLOGY CO., LTD., Shanghai (CN)
Appl. No. 18/271,013
Filed by SHANGHAI BILIBILI TECHNOLOGY CO., LTD., Shanghai (CN)
PCT Filed Jan. 5, 2022, PCT No. PCT/CN2022/070236
§ 371(c)(1), (2) Date Jul. 5, 2023,
PCT Pub. No. WO2022/148361, PCT Pub. Date Jul. 14, 2022.
Claims priority of application No. 202110011856.9 (CN), filed on Jan. 6, 2021.
Prior Publication US 2024/0064206 A1, Feb. 22, 2024
Int. Cl. H04L 67/141 (2022.01); H04L 61/2503 (2022.01); H04L 67/104 (2022.01)
CPC H04L 67/141 (2013.01) [H04L 61/2503 (2013.01); H04L 67/104 (2013.01)] 20 Claims
OG exemplary drawing
 
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.