changed error policy when obtaining ip and hostname