Patent ID: 8885649

Claim:
A method for implementing private network traversal, wherein a message exchanged between a traversal using relay network address translation (TURN) server in a public network and a communications terminal in a local area network is transmitted through a pre-established first websocket connection, the method comprising: receiving, by the TURN server, a resource allocate request sent by the communications terminal, and allocating a relay address and a resource port for the communications terminal, wherein the relay address and the resource port are an IP address and a port of the TURN server; receiving, by the TURN server, a TURN data packet sent by the communications terminal, wherein the TURN data packet comprises communication data and a multiplexing identifier, the multiplexing identifier is used to identify a communications channel between the TURN server and a remote node corresponding to the communication data, which is established by using the relay address and the resource port of the TURN server, and an IP address and a port number of the remote node; and sending, by the TURN server, the communication data to the remote node through the communications channel identified by the multiplexing identifier.