Hi,

We have a java client which connects a ftp server and gets the files to the local system. When we run this client from unix m/c to get files from ftp server it is working fine. But when we run this client from a linux m/c, the code is getting hanged.

ServerSocket serverSocket = new ServerSocket(0);
Socket clientSocket = serverSocket.accept();

the program is getting hanged in serverSocket.accept();.

We are able to connect to ftp server from linux and get files using ftp command. But the java client is hanging at this line of code.

My questions is

1. will there be any settings that needs to be done either on the linux m/c or on the ftp server?

2. Why the code is hanging with out throwing any exception?

Please help me in this.

Regards
Pradeep