setDataConnectionConfiguration metodu
Şöyle yaparızz
Şöyle yaparızz
ListenerFactory factory = new ListenerFactory();
factory.setServerAddress("localhost");
factory.setPort(8000);
//And This Is What solved my Data timeout problem
{
DataConnectionConfigurationFactory dfFactory= new DataConnectionConfigurationFactory();
dfFactory.setPassivePorts("8001-8005");//I Port Forward These data ports on my router web page and disable firewall for them
factory.setDataConnectionConfiguration(dfFactory.createDataConnectionConfiguration());
}
serverFactory.addListener("default",factory.createListener());