Patent ID: 9729428
Date: 2017-08-08
CPC Classifications: H04L

Claim:
1. A peer-to-peer connection system, comprising: a target subsystem, at least one relay subsystem, a master system server and a client electronic device, the target subsystem operatively connected to internet through a first router and comprising a target device, the target device comprising: a storage module for storing a connection-quality table; a processor module operatively connected to the storage module and configured to send the connection-quality table after receiving a request for inquiring connection quality; the at least one relay subsystem operatively connected to internet through a second router and comprising a relay device, the relay device comprising: a storage module for storing a connection-quality table; a processor module operatively connected to the storage module and configured to send the connection-quality table after receiving a request for inquiring connection quality; and a relay module operatively connected to the storage module and providing peer-to-peer connection relay service; the master system server operatively connected to internet and comprising: a storage module for storing registration information of the target device and registration information of each relay device, wherein the registration information of the target device comprises a newest dynamic IP address of the target device, the registration information of each relay device comprises a newest dynamic IP address of each relay device; and a processor module operatively connected to the storage module and configured to transfer the registration information of the target device and the registration information of each relay device; and the client electronic device operatively connected to internet and configured to receive a connection request, establishing an operative connection with the master system server according to a static IP address of registration information of the master system server, retrieving the registration information of the target device and the registration information of the relay device from the master system server, sending the request for inquiring connection quality to the target device according to the dynamic IP address of the registration information of the target device, and sending the request for inquiring connection quality to the relay device according to the dynamic IP address of the registration information of the relay device, the client electronic device configured to determine an optimal connection path according to the connection-quality table after receiving the connection-quality table, and establishing a first peer-to-peer connection with the relay device according to the optimal connection path and the registration information of the relay device, wherein the optimal connection path starts from the client electronic device and ends at the target subsystem; wherein the relay device connected to the client electronic device via the first peer-to-peer connection establishes an operative connection with the master system server according to the static IP address of the registration information of the master system, and retrieves the registration information of the target device from the master system server, and establishes a second peer-to-peer connection with the target device according to the dynamic IP address of the registration information of the target device to make the client electronic device indirectly connect to the target device via the first peer-to-peer connection and the second peer-to-peer connection.