Question : FTP loss of connection

I could really use some assistance here, as I am not extremly framilliar with FTP.

We are attempting to download from a remote FTP server. The connection is negotiated and established the file begins to down load and at almost the same point each time the connection times out and is eventually dropped.

Eventually the server drops the connection after multiple attempts to re-establish. The server give an Error Code of 421. I have contacted the host of the FTP and they are not limiting ports of time for the connection. Leads me to believe it is on our side.

We are using a sonicwall firewall, but the only port we are blocking in is 80. Port 20/21 are open and avaliable, hence the ability to connect initially.

All help is greatly appreciated
Code Snippet:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
Status:                Resolving address of chapelmapping.com
 
Status:                Connecting to 205.178.145.65:21...
 
Status:                Connection established, waiting for welcome message...
 
Error:                   Could not connect to server
 
Status:                Waiting to retry...
 
Status:                Resolving address of chapelmapping.com
 
Status:                Connecting to 205.178.145.65:21...
 
Status:                Connection established, waiting for welcome message...
 
Response:          220 (vsFTPd 2.0.5)
 
Command:          USER flint_energies
 
Response:          331 Please specify the password.
 
Command:          PASS *********
 
Response:          230 Login successful.
 
Command:          SYST
 
Response:          215 UNIX Type: L8
 
Command:          FEAT
 
Response:          211-Features:
 
Response:          EPRT
 
Response:          EPSV
 
Response:          MDTM
 
Response:          PASV
 
Response:          REST STREAM
 
Response:          SIZE
 
Response:          TVFS
 
Response:          211 End
 
Status:                Connected
 
Status:                Retrieving directory listing...
 
Command:          PWD
 
Response:          257 "/"
 
Command:          TYPE I
 
Response:          200 Switching to Binary mode.
 
Command:          PASV
 
Response:          227 Entering Passive Mode (205,178,145,65,221,10)
 
Command:          LIST
 
Response:          150 Here comes the directory listing.
 
Response:          226 Directory send OK.
 
Status:                Calculating timezone offset of server...
 
Command:          MDTM Aug09_ThreePhase_online[2].pdf
 
Response:          213 20090820125018
 
Status:                Timezone offsets: Server: 0 seconds. Local: -14400 seconds. Difference: -14400 seconds.
 
Status:                Directory listing successful
 
Status:                Resolving address of chapelmapping.com
 
Status:                Connecting to 205.178.145.65:21...
 
Status:                Connection established, waiting for welcome message...
 
Response:          220 (vsFTPd 2.0.5)
 
Command:          USER flint_energies
 
Response:          331 Please specify the password.
 
Command:          PASS *********
 
Response:          230 Login successful.
 
Status:                Connected
 
Status:                Starting download of /Flint_OakyClinchHenderson_View_and_Destroy_092909A.zip
 
Command:          CWD /
 
Response:          250 Directory successfully changed.
 
Command:          PWD
 
Response:          257 "/"
 
Command:          TYPE I
 
Response:          200 Switching to Binary mode.
 
Command:          PASV
 
Response:          227 Entering Passive Mode (205,178,145,65,32,183)
 
Command:          RETR Flint_OakyClinchHenderson_View_and_Destroy_092909A.zip
 
Response:          150 Opening BINARY mode data connection for Flint_OakyClinchHenderson_View_and_Destroy_092909A.zip (163714030 bytes).
 
Error:                   Connection timed out
 
Status:                Resolving address of chapelmapping.com
 
Status:                Connecting to 205.178.145.65:21...
 
Status:                Connection established, waiting for welcome message...
 
Error:                   Connection timed out
 
Error:                   Could not connect to server
 
Status:                Delaying connection for 5 seconds due to previously failed connection attempt...
 
Status:                Resolving address of chapelmapping.com
 
Status:                Connecting to 205.178.145.65:21...
 
Status:                Connection established, waiting for welcome message...
 
Error:                   Connection timed out
 
Error:                   Could not connect to server
 
Status:                Delaying connection for 5 seconds due to previously failed connection attempt...
 
Status:                Resolving address of chapelmapping.com
 
Status:                Connecting to 205.178.145.65:21...
 
Status:                Connection established, waiting for welcome message...
 
Error:                   Connection timed out
 
Error:                   Could not connect to server
 
Response:  421 Timeout.
 
Error:                   Connection closed by server

Answer : FTP loss of connection

Under firewall, advanced, access rule service options

what is the status of

Force inbound and outbound FTP data connections to use default port 20
Random Solutions  
 
programming4us programming4us