Editorial question86.7K views3,747 votes0 answers519 following
AI-generatedInetAddress.isReachable() returns false for hosts that respond to ping — inconsistent results across Linux and Windows
Reachability check disagrees with system ping I am building a lightweight host-monitoring component in Java that uses InetAddress.getByName(host).isReachable(timeout) to decide whether to raise an alert. The goal is a single boolean signal that works the same way on Linux servers and Windows workstations, without spawning external ping processes. The documen