Redis connection timed out on a dual (IPV4/IPV6) socket

java.net.SocketTimeoutException
at java.net.DualStackPlainSocketImpl.waitForConnect
at java.net.DualStackPlainSocketImpl.socketConnect
at java.net.AbstractPlainSocketImpl.doConnect
at java.net.AbstractPlainSocketImpl.connectToAddress
at java.net.AbstractPlainSocketImpl.connect
at java.net.PlainSocketImpl.connect
at java.net.SocksSocketImpl.connect
at java.net.Socket.connect
at redis.clients.jedis.Connection.connect
redis.clients.jedis.exceptions.JedisConnectionException
at redis.clients.jedis.Connection.connect
at redis.clients.jedis.BinaryClient.connect
at redis.clients.jedis.BinaryJedis.connect
11 frames hidden

Typical Exception Messages

  1. java.net.SocketTimeoutException: connect timed out

Origin

Specific cases

We have seen this error pattern in the following webpages (11)

  1. user121618via Stack Overflow6 months ago
    java.net.SocketTimeoutException: connect timed out
  2. Vigneshvia Stack Overflow1 year ago
    java.net.SocketTimeoutException: connect timed out
  3. sukeqiangvia GitHub1 year ago
    java.net.SocketTimeoutException: connect timed out
  4. sukeqiangvia GitHub1 year ago
    java.net.SocketTimeoutException: connect timed out
  5. sukeqiangvia GitHub1 year ago
    java.net.SocketTimeoutException: connect timed out
  6. sukeqiangvia GitHub1 year ago
    java.net.SocketTimeoutException: connect timed out
  7. laizhihuanvia GitHub1 year ago
    java.net.SocketTimeoutException: connect timed out
  8. vignesh dharmavia Google Groups2 years ago
    java.net.SocketTimeoutException: connect timed out
  9. Unknown authorvia cnblogs.com2 years ago
    java.net.SocketTimeoutException: connect timed out