# PXC in private cloud and Azure

**URL:** <https://forums.percona.com/t/pxc-in-private-cloud-and-azure/4304>\
**Category:** Percona XtraDB Cluster 5.x\
**Created:** [July 15, 2015, 1:51am UTC](https://forums.percona.com/t/pxc-in-private-cloud-and-azure/4304 "2015-07-15T01:51:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sars](https://avatars.discourse-cdn.com/v4/letter/s/74df32/32.png) [@sars](https://forums.percona.com/u/sars)\
**Post date:** [July 15, 2015, 1:51am UTC](https://forums.percona.com/t/pxc-in-private-cloud-and-azure/4304/1 "2015-07-15T01:51:02Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![przemek](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/przemek/32/3_2.png) [@przemek](https://forums.percona.com/u/przemek)\
**Post date:** [July 28, 2015, 2:07am UTC](https://forums.percona.com/t/pxc-in-private-cloud-and-azure/4304/2 "2015-07-28T02:07:47Z")

</div>

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=“[Index of wsrep system variables](https://www.percona.com/doc/percona-xtradb-cluster/5.6/wsrep-system-index.html#wsrep_node_address)”] correctly.
