fixed checking HostIP