adding support for public/private ips in localcloud mode.