PXC in private cloud and Azure

Hi,

I’ve some PXC servers in own private cloud and Azure.

In private cloud, IP address is mapped by firewall. And in Azure, use Public Virtual IP to get assess over Internet.

For example,
DB 1: Public IP = 1.2.3.4 ; Private IP = 192.168.1.1 (eth0)
DB 2: Public IP = 138.91.x.x ; Private IP = 100.69.x.x (See Photo)

wsrep_cluster_address is setting to public IP addresses:

Both VM do not known their public IP address.
Through error log, it seems that both DBs connect to another one through private IP, and failed.

How to setup sst to access each other through public IP address?
In other words, tell another DB its public IP, and let another DB connect to them through public IP address.

I am not sure if I understand correctly, but if both hosts have direct connectivity via public IPs, and they can access their needed TCP ports (4567, 4568, 4444), all you need to do is to set the [URL=“https://www.percona.com/doc/percona-xtradb-cluster/5.6/wsrep-system-index.html#wsrep_node_address”] correctly.