主权项 |
1. A method for establishing an Internet Protocol (IP) connection between mobile terminals, comprising:
a request terminal connecting to a wireless network, starting an end-to-end program, and sending a request short message which comprises a name of the end-to-end program and an IP address of the request terminal to a called terminal; after the called terminal detects that the received short message is a request short message and a user chooses acception, the called terminal connecting to the wireless network, displaying the end-to-end program in the request short message to the user, after the user starts the end-to-end program and inputs the IP address of the request terminal included in the request short message, the end-to-end program of the called terminal sending a network connection request to the request terminal; when the request terminal's own end-to-end program monitors the network connection request sent by the called terminal, the request terminal performing IP-based data interaction with the called terminal; wherein, the request terminal comprises: a first Internet accessing module, used to connecting to the wireless network before starting the end-to-end program; a first list creating module, used to create an end-to-end program list, and store all the end-to-end programs of the request terminal in the list in advance in accordance with a program name, a path, and a version number; a request module, used to send the request short message to the called terminal when starting the end-to-end program; a first short message receiving module, used to receive a short message and display text of the short message; a first data interacting module, used to perform IP-based data interaction with the called terminal when the request terminal's own end-to-end program monitors the network connection request; or, the called terminal comprises: a second list creating module, used to create an end-to-end program list, and store all of the called terminal's own end-to-end programs in the list in advance in accordance with the program name, the path, and the version number; a second short message receiving module, used to display text of the request short message after detecting that the short message is a request short message, to prompt the user to accept the request, and when the user chooses to accept the request, to inform a second Internet accessing module and a parsing module; a second Internet accessing module, used to connecting to the wireless network before starting the end-to-end program; a parsing module, used to parse the text of the received request short message to get the program name and send the program name to a searching module; a searching module, used to search the end-to-end program in the end-to-end program list of the called terminal according to the program name, when the program is searched out, to display the program to the user; otherwise, to prompt the user to search the program manually; a second data interacting module, used to send the network connection request to the request terminal via the end-to-end program after the user starts the end-to-end program displayed by the searching module and inputs the request terminal's IP address. |