If hostname either nil or (none) we will select first private ip