ByteDance Interview Question

How to check a host that cannot be connected