FTP.exe in DOS - "connection closed by remote host"

  • Thread starter Thread starter Daniel Devadoss
  • Start date Start date
D

Daniel Devadoss

Dear friends,


This is Daniel here just joined your group.
My system is Win Xp os and want to upload files in dos to an ftp server

I am trying to upload files to a ftp server located at another location

from my client system. I use the FTP program in the DOS prompt. I do
the following.


C:\>ftp
ftp> open myserver.com
Connected to myserver.com.
220 194.55.26.100 FTP server ready
User (myserver.com:(none)):myusername
331 Password required for myusername.
Password:
230 User myusername logged in.
ftp>send filename.zip
(aftersometime I am getting the message)
Connection closed by remote host
ftp> dir
not connected


If I am trying to send small files I am able to transfer. If I leave
the session for some time idle then the session closes automatically.


I am able to transfer large without any difficulty from the Windows
Explorer from my system to the FTP server.


Can anyone please help me out please.
I am very desperately in need and it is very urgent as I have created
dos batch files to operate from different location to upload files
automatically.


When I try this from another system from office even then it is not
working I get the same error message.


Expecting your valuable help.


Thanks in advance for the help.


Thanks
Dani
 
Daniel Devadoss said:
C:\>ftp
ftp> open myserver.com
Connected to myserver.com.
220 194.55.26.100 FTP server ready
User (myserver.com:(none)):myusername
331 Password required for myusername.
Password:
230 User myusername logged in.
ftp>send filename.zip
(aftersometime I am getting the message)
Connection closed by remote host
ftp> dir
not connected


If I am trying to send small files I am able to transfer. If I leave
the session for some time idle then the session closes automatically.

I am able to transfer large without any difficulty from the Windows
Explorer from my system to the FTP server.


I think the default file transfer mode is ASCII, try switching to binary mode
first, like this:

ftp>binary
200 TYPE set to I.
ftp>send filename.zip
 
Back
Top