In a network having dynamic handling peer ip connection state and the like of the terminal device

The present invention provides a method and apparatus for communicating in a network for peer to peer (P2P). The method comprises a first peer in the P2P network terminal selected from the plurality of primary IP Internet protocol address associated with the first end of the peer (IP) address. The method further comprising: providing a first peer to a primary IP address of the second peer, the second peer when the address to be used to initiate communication with the first peer. The apparatus comprises a user equipment (UE), UE includes a processor configured such that the UE selects an IP address from the master multiple IP addresses associated with the UE and registers the IP address in the primary network P2P.