private ip function, echo hostname