Using hostname -i instead of hostname, in order to return ip