Use HEAD_IP instead of HEAD_NODE if present