break the loop when the host is gateway itself