You often find the answer to „How do I set default timeouts for (outgoing) network connectins in Java“ is [sourcecode language=“java“] System.setProperty(„sun.net.client.defaultReadTimeout“, „30000“); System.setProperty(„sun.net.client.defaultConnectTimeout“, „30000“); [/sourcecode] But this may or may not work. Because, as stated by Sun in 2005: Yes, it [the default timeout] is cached, or more precisely it is looked up only…