I am using
servlet for downloading the files.
here is some more details,
1) Connecting FTP server by using servlet and bring pop up window
2) Popup window have list of Files, and files are displaying based up on the user selected from parent page.
3) Those files are available in server.
4) This pop up window (dev HTML page within servlet). Also have start download / cancel button.
5) If user clicks start download button, the startdownload will connect to FTP client and files are getting download.
6) Here we are passing two parameter (server path, local path). Local path i am giving my ip address but the server is not connecting to me local drive. This will give an error message called "Connection refused". If i am not passing any ip means this will take server drive as local drive and files are getting download in server itself.
7) thats why i user socket to connect the Client port as well as server port.
8) Server port is getting connected..
Scoket sServer = new Socket()
sServer.accept();
this is getting connected,,
but the same CLient socket
Socket sClient = new Socket("Ipaddress", port).
this is not connecting..
txs
logas