Use public ip if on AWS