A method of enabling communication of data packets between a first communications device in a first local network and a second communications device in a second local network, wherein private IP addresses are used for devices present in the first and second local networks which are potentially overlapping in the first and second local networks, comprising the following steps executed in a first gateway of the first network: - updating a local Name Server record, in the first gateway, with a domain name and an IP address of a second gateway of the second network, each of said first and second gateways having a local DNS function, - receiving from the first device an outgoing DNS request referring to a hostname of the second device, - determining the IP address of a primary DNS being the second gateway, from the local Name Server record based on a domain name in said hostname, - sending a DNS request to the second gateway, using the determined IP address, to obtain a current private IP address of the second device in a DNS response from the second gateway, wherein the obtained private IP address is used in the second network for the second device, - translating the obtained private IP address to an IPv4-based, modified private IP address used in the first network for the second device, wherein the modified private IP address is within an address space defined for a VPN tunnel between the first and second networks and, by having a unique number in a second or third octet allocated to represent the second local network, is separate from, i.e., non-overlapped with, an internal IP address space used in the first local network for devices in the first local network, - forwarding a DNS response to the first device, referring to the modified private IP address of the second device, and - forwarding data packets received from the first communications device, which data packets comprise the modified private IP address of the second communications device as a destination address in an internal header of the data packet, to the second gateway, characterized in that the destination address in the internal header of the data packet is translated, from the modified private IP address to the private IP address which is used in the second local network, by the second gateway. - updating a local Name Server record, in the first gateway, with a domain name and an IP address of a second gateway of the second network, each of said first and second gateways having a local DNS function, - receiving from the first device an outgoing DNS request referring to a hostname of the second device, - determining the IP address of a primary DNS being the second gateway, from the local Name Server record based on a domain name in said hostname, - sending a DNS request to the second gateway, using the determined IP address, to obtain a current private IP address of the second device in a DNS response from the second gateway, wherein the obtained private IP address is used in the second network for the second device, - translating the obtained private IP address to an IPv4-based, modified private IP address used in the first network for the second device, wherein the modified private IP address is within an address space defined for a VPN tunnel between the first and second networks and, by having a unique number in a second or third octet allocated to represent the second local network, is separate from, i.e., non-overlapped with, an internal IP address space used in the first local network for devices in the first local network, - forwarding a DNS response to the first device, referring to the modified private IP address of the second device, and - forwarding data packets received from the first communications device, which data packets comprise the modified private IP address of the second communications device as a destination address in an internal header of the data packet, to the second gateway,