ByteDance interview question

How to check a host that cannot be connected