Patent ID: 7913293

Claim:
A method for communicating between communication apparatuses, the method comprising: sending, by a first communication apparatus, a first request for establishing a Peer to Peer (P2P) connection to a second communication apparatus through a server; initiating, by the first communication apparatus or the second communication apparatus, a command for establishing a P2P connection with the other side; establishing a P2P channel between the first communication apparatus and second communication apparatus based on the command for establishing a P2P channel; transmitting data packets over the P2P channel; wherein initiating the command comprises determining, by the second communication apparatus, whether it is in a private network, after receiving the first request from the first communication apparatus, sending a second request for establishing a P2P connection to the first communication apparatus through the server if it is in the private network, otherwise, initiating the command for establishing P2P channel with the first communication apparatus; and wherein determining whether the second communication apparatus is in the private network comprises sending, by the second communication apparatus, a message to the server, extracting, by the server, address information of the second communication apparatus in the message and returning the address information to the second communication apparatus, and determining, by the second communication apparatus, whether the received address information is the same as the address information of the second communication apparatus and determining that the second communication apparatus is in a private network if the received address information is not the same as the address information of the second communication apparatus.