raise an error if host IP or name is missing