get public IP of master