Fix tgt to save the host ip