A communication method performed by a Universal Plug and Play, UPnP, remote access server, RAS, (360, 400) in a home network, the communication method comprising: selecting a virtual Internet Protocol, IP, address on the home network that is accessible by a remote device on the remote network and that does not conflict with a network IP address on the remote network; converting a source address of an IP packet transmitted from the home network to the remote network from an IP address of the home network to an IP address on the remote network based on the virtual IP address; and converting a destination address of an IP packet transmitted from the remote network to the home network from an IP address of the remote network to an IP address of the home network based on an IP address of the RAS (360, 400) in the home network, characterized in that the selecting of the remote accessible virtual home network IP address comprises: transmitting a conflict/non-conflict query message to a UPnP device (310, 500) in the remote network, wherein the conflict/non-conflict query message requests the UPnP device (310, 500) in the remote network to determine whether the network IP address on the remote network conflicts with the virtual IP address on the home network to be selected by the UPnP RAS (360, 400); receiving a conflict/non-conflict response message from the UPnP device (310, 500) in the remote network that includes a determination of whether the network IP address on the remote network conflicts with the virtual IP address on the home network; and selecting the virtual IP address on the home network based on the determination in the conflict/non-conflict response message received from the UPnP device (310, 500) in the remote network, wherein the conflict/non-conflict query message comprises a network prefix and a network prefix length corresponding to the virtual address on the home network, and wherein the conflict/non-conflict query message and the conflict/non-conflict response message are generated by using a UPnP action message. selecting a virtual Internet Protocol, IP, address on the home network that is accessible by a remote device on the remote network and that does not conflict with a network IP address on the remote network; converting a source address of an IP packet transmitted from the home network to the remote network from an IP address of the home network to an IP address on the remote network based on the virtual IP address; and converting a destination address of an IP packet transmitted from the remote network to the home network from an IP address of the remote network to an IP address of the home network based on an IP address of the RAS (360, 400) in the home network, characterized in that the selecting of the remote accessible virtual home network IP address comprises: transmitting a conflict/non-conflict query message to a UPnP device (310, 500) in the remote network, wherein the conflict/non-conflict query message requests the UPnP device (310, 500) in the remote network to determine whether the network IP address on the remote network conflicts with the virtual IP address on the home network to be selected by the UPnP RAS (360, 400); receiving a conflict/non-conflict response message from the UPnP device (310, 500) in the remote network that includes a determination of whether the network IP address on the remote network conflicts with the virtual IP address on the home network; and selecting the virtual IP address on the home network based on the determination in the conflict/non-conflict response message received from the UPnP device (310, 500) in the remote network, wherein the conflict/non-conflict query message comprises a network prefix and a network prefix length corresponding to the virtual address on the home network, and wherein the conflict/non-conflict query message and the conflict/non-conflict response message are generated by using a UPnP action message. transmitting a conflict/non-conflict query message to a UPnP device (310, 500) in the remote network, wherein the conflict/non-conflict query message requests the UPnP device (310, 500) in the remote network to determine whether the network IP address on the remote network conflicts with the virtual IP address on the home network to be selected by the UPnP RAS (360, 400); receiving a conflict/non-conflict response message from the UPnP device (310, 500) in the remote network that includes a determination of whether the network IP address on the remote network conflicts with the virtual IP address on the home network; and selecting the virtual IP address on the home network based on the determination in the conflict/non-conflict response message received from the UPnP device (310, 500) in the remote network, wherein the conflict/non-conflict query message comprises a network prefix and a network prefix length corresponding to the virtual address on the home network, and wherein the conflict/non-conflict query message and the conflict/non-conflict response message are generated by using a UPnP action message.