It will always be localhost because AEM installed on the same VM. In other words, AEM is localhost to the RHEL server. That said, If you want to access AEM outside of the RHEL server, you would need the RHEL server IP and the PORT AEM instance is running on.