// ensure server sock gets the timeout
ServerSocket sock = listenOnAllInterfaces ?
new ServerSocket(port) : new ServerSocket(port, 0, controlSock.getLocalAddress());
log.debug("ListenOnAllInterfaces=" + listenOnAllInterfaces);
sock.setSoTimeout(controlSock.getSoTimeout());
FTPActiveDataSocket activeSock = new FTPActiveDataSocket(sock);
activeSock.setLocalAddress(controlSock.getLocalAddress());
return activeSock;
}