added dynamic host ip address reading