Prefer master IP over hostname