Changes to get public ip for nginx config