Use the internal IP address when public hostnames are not available.