摘要 |
Embodiments of the present invention provide a method and apparatus for switching network communication and direct communication. A first UE instructs, by sending switching instruction information to a second UE, the second UE to switch a communication path therebetween from a network communication path to a direct communication path, acquires a first public network IP address and a first public network port number, and establishes the direct communication path using the first public network IP address and the first public network port number. In the method, after a communication path is switched, a data packet, sent by a first UE and received by a second UE, does not change, and in the view of the second UE, an IP address and port number of the first UE do not change, thereby guaranteeing that services of a user are not interrupted. |