added host ip retrieval using rest client