My application is to manage IPv4 network devices, it is currently deployed in cluster mode using JBoss/Wildfly in IPv4. To ping to device, we use InetAddress.isReachable(2000).
As new requirement, it must have the ability to IPv6 network devices too. Reachable(timeout) only works when we set java.net.preferIPv4Stack=false in application server. However, if java.net.preferIPv4Stack=false is set, the JGroup does not working anymore.
Are there any ways to ping/reachable IPv6 devices, but the JBOSS application still in IPv4 (java.net.preferIPv4Stack=true)?