I'm building an application that connects to an ftp server on a specific address. But if the address doesn't exist it waits until the timeout has elapsed. I've tried to set the timeout value with the function setSoTimeout(mseconds);
But it doesn't seem to use the new value. Because it still wait's for a long time when i set it to 1500 mseconds.
I uses the Socket sock = new Socket(address, port);
method and then