added control for host Ip.