摘要 |
<p>Embodiments of the present invention disclose a method, an appratus, and a system for implementing private network traversal, where 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 websocket connection. The method includes: 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; receiving a TURN data packet sent by the communications terminal, where the TURN data packet includes communication data and a multiplexing identifier, the multiplexing identifier is used to identify a communications channel between the relay address and the resource port, and a remote node corresponding to the communication data; and sending the communication data to the remote node through the communications channel identified by the multiplexing identifier, thereby solving a problem in an existing TURN technology that in case that a firewall only opening an HTTP port is deployed, communication between a communications terminal in a local area network and a remote node cannot be implemented, and solving a problem that communication between the communications terminal in the local area network and multiple remote nodes cannot be implemented due to limitation of the firewall on the port.</p> |