The File Transfer Protocol is a network protocol providing functionality for file access, file transfer, and file management.
In addition, FTP operates in either active or a passive mode.
Due to the wrong passive port range configuration settings on the server side, the customer may cause an error like,
"227 Entering Passive Mode (192,168,1,2,118,151).
ftp: connect: Connection timed out"
Today, we’ll see the reason for this error and how it is fixed by our Support Engineers as part of our Server Management Services.
Active and Passive modes?
In passive mode, the server decides which server-side port the client should connect to. Then the client starts the connection to the specified port.
On the other hand, in active mode, the client specifies which client-side port the data channel has opened and the server starts the connection.
Moreover, one of the main reason to occur this “227 entering passive mode FTP connect connection timed out” error is the improper configuration settings of the passive port range.
How we fixed 227 entering passive mode FTP connect connection timed out error
The error is caused due to the misconfiguration of the passive port range on the FTP server and in the firewall settings.
Therefore, our Support Engineers correct the settings in both FTP server and in the firewall.
Set passive port range in FTP server
CPanel offers a choice of two FTP servers. PureFTP and ProFTP. PureFTPd is very much secure.
Here, our Support Engineers took the following steps to add passive range port on Pureftp servers.
In Pureftpd,
To solve the error, the passive Port range should be added to the Pureftp configuration file.
1. We open Pureftp configuration file /etc/pure-ftpd.conf.
2. Then, we add the following line.
PassivePortRange 30000 35000
3. At last, we restart the Pureftp service.
service pureftpd restart
In ProFTP,
In ProFTP, we add the passive port range in /etc/proftpd.conf.
1. We open /etc/proftpd.conf and add this line.
PassivePorts 30000 35000
2. In the end, we restart the service.
service proftpd restart
Add passive port range in firewall settings
Most servers have a firewall to avoid security problems. Therefore, the passive port range should be open in the firewall configuration too.
Even if the FTP server allows passive ports, the firewall can block the connection between FTP client and server when the passive port range is not open. It results in 227 entering passive mode ftp connect connection timed out error.
Our Support Engineers use the following steps to add the passive port range to the firewall configuration file.
For firewall like Iptables,
1. Firstly, we open /etc/sysconfig/iptables file.
2. Then, we add the entry like,
iptables -I INPUT -p tcp --dport 49152:65534 -j ACCEPT
3. At last, we restart iptables
service iptables save
For firewall like CSF,
1. We open /etc/csf/csf.conf file.
2. Then, find the line with TCP_IN ,TCP_OUT and then added the port range.
# Allow incoming TCP ports
TCP_IN = "20,21,22,25,53,80,110,30000:35000"
TCP_OUT = "20,21,22,25,53,80,110,30000:35000"
3. Finally, restart the CSF service.
csf -r
service csf restart
[Getting 227 entering passive mode ftp connect connection timed out error? We’ll fix it for you.]
Conclusion
In short, the improper configuration of the passive port range in the FTP server and in the firewall configuration file are the main reasons for “227 entering passive mode ftp connect connection timed out” error. Today, we saw how our Support Engineers fixed this error.
PREVENT YOUR SERVER FROM CRASHING!
Never again lose customers to poor server speed! Let us help you.
Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.
GET STARTED
var google_conversion_label = «owonCMyG5nEQ0aD71QM»;
Symptoms
Consider the following scenario:
-
You run a Java-based or native C-based FTP client on a computer that is running Windows 7 or Windows Server 2008 R2.
-
You enable a firewall on the computer.
-
You run the following command to enable the firewall application filter for the FTP client:
netsh advfirewall set global StatefulFtp enableNote The filter dynamically opens ports for data connections.
-
The FTP client tries to establish a passive-mode FTP connection to an IPv4 FTP server by using a dual-mode IPV6 socket. To do this, the FTP client sends PASV commands to the FTP server.
In this scenario, the firewall drops the response to the PASV commands from the FTP server.
Cause
This issue occurs because the TCP Control Block (TCB) and Windows Filtering Platform (WFP) contexts for dual-mode sockets are not synchronized. In this situation, the FTP analyzer on the FTP client treats the endpoint as an IPv4 endpoint. However, WFP treats the endpoint as an IPv6 endpoint.
Resolution
Hotfix information
A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing the problem described in this article. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next software update that contains this hotfix.
If the hotfix is available for download, there is a «Hotfix download available» section at the top of this Knowledge Base article. If this section does not appear, contact Microsoft Customer Service and Support to obtain the hotfix.
Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft website:
http://support.microsoft.com/contactus/?ws=supportNote The «Hotfix download available» form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.
Prerequisites
To apply this hotfix, you must be running one of the following operating systems:
-
Windows 7
-
Windows 7 Service Pack 1 (SP1)
-
Windows Server 2008 R2
-
Windows Server 2008 R2 Service Pack 1 (SP1)
For more information about how to obtain a Windows 7 or Windows Server 2008 R2 service pack, click the following article number to view the article in the Microsoft Knowledge Base:
976932 Information about Service Pack 1 for Windows 7 and for Windows Server 2008 R2
Registry information
To apply this hotfix, you do not have to make any changes to the registry.
Restart requirement
You must restart the computer after you apply this hotfix.
Hotfix replacement information
This hotfix does not replace a previously released hotfix.
File information
The global version of this hotfix installs files that have the attributes that are listed in the following tables. The dates and the times for these files are listed in Coordinated Universal Time (UTC). The dates and the times for these files on your local computer are displayed in your local time together with your current daylight saving time (DST) bias. Additionally, the dates and the times may change when you perform certain operations on the files.
Windows 7 and Windows Server 2008 R2 file information notes
Important Windows 7 hotfixes and Windows Server 2008 R2 hotfixes are included in the same packages. However, hotfixes on the Hotfix Request page are listed under both operating systems. To request the hotfix package that applies to one or both operating systems, select the hotfix that is listed under «Windows 7/Windows Server 2008 R2» on the page. Always refer to the «Applies To» section in articles to determine the actual operating system that each hotfix applies to.
-
The files that apply to a specific product, milestone (RTM,SPn), and service branch (LDR, GDR) can be identified by examining the file version numbers as shown in the following table:
Version
Product
Milestone
Service branch
6.1.760
0.17xxxWindows 7 and Windows Server 2008 R2
RTM
GDR
6.1.760
0.21xxxWindows 7 and Windows Server 2008 R2
RTM
LDR
6.1.760
1.17xxxWindows 7 and Windows Server 2008 R2
SP1
GDR
6.1.760
1.22xxxWindows 7 and Windows Server 2008 R2
SP1
LDR
-
GDR service branches contain only those fixes that are widely released to address widespread, critical issues. LDR service branches contain hotfixes in addition to widely released fixes.
-
The MANIFEST files (.manifest) and the MUM files (.mum) that are installed for each environment are listed separately in the «Additional file information for Windows 7 and for Windows Server 2008 R2» section. MUM and MANIFEST files, and the associated security catalog (.cat) files, are critical to maintaining the state of the updated component. The security catalog files, for which the attributes are not listed, are signed with a Microsoft digital signature.
For all supported x86-based versions of Windows 7
File name |
File version |
File size |
Date |
Time |
Platform |
---|---|---|---|---|---|
Netio.sys |
6.1.7601.17939 |
240,496 |
22-Aug-2012 |
17:16 |
x86 |
Netio.sys |
6.1.7601.22114 |
240,496 |
19-Sep-2012 |
04:22 |
x86 |
Fwpkclnt.sys |
6.1.7600.16385 |
187,472 |
14-Jul-2009 |
01:20 |
x86 |
Tcpip.sys |
6.1.7600.17122 |
1,287,536 |
06-Sep-2012 |
16:48 |
x86 |
Fwpkclnt.sys |
6.1.7600.21320 |
187,248 |
06-Sep-2012 |
19:18 |
x86 |
Tcpip.sys |
6.1.7600.21320 |
1,303,920 |
06-Sep-2012 |
19:18 |
x86 |
Fwpkclnt.sys |
6.1.7601.17950 |
187,760 |
06-Sep-2012 |
16:43 |
x86 |
Tcpip.sys |
6.1.7601.17950 |
1,293,168 |
06-Sep-2012 |
16:43 |
x86 |
Fwpkclnt.sys |
6.1.7601.22108 |
187,760 |
06-Sep-2012 |
16:38 |
x86 |
Tcpip.sys |
6.1.7601.22108 |
1,308,016 |
06-Sep-2012 |
16:38 |
x86 |
For all supported x64-based versions of Windows 7 and of Windows Server 2008 R2
File name |
File version |
File size |
Date |
Time |
Platform |
---|---|---|---|---|---|
Netio.sys |
6.1.7601.17939 |
376,688 |
22-Aug-2012 |
18:12 |
x64 |
Netio.sys |
6.1.7601.22114 |
376,688 |
19-Sep-2012 |
06:01 |
x64 |
Fwpkclnt.sys |
6.1.7600.16385 |
288,336 |
14-Jul-2009 |
01:47 |
x64 |
Tcpip.sys |
6.1.7600.17122 |
1,894,256 |
06-Sep-2012 |
17:38 |
x64 |
Fwpkclnt.sys |
6.1.7600.21320 |
288,112 |
06-Sep-2012 |
20:08 |
x64 |
Tcpip.sys |
6.1.7600.21320 |
1,878,384 |
06-Sep-2012 |
20:08 |
x64 |
Fwpkclnt.sys |
6.1.7601.17950 |
288,624 |
06-Sep-2012 |
17:50 |
x64 |
Tcpip.sys |
6.1.7601.17950 |
1,914,736 |
06-Sep-2012 |
17:50 |
x64 |
Fwpkclnt.sys |
6.1.7601.22108 |
288,624 |
06-Sep-2012 |
18:12 |
x64 |
Tcpip.sys |
6.1.7601.22108 |
1,902,960 |
06-Sep-2012 |
18:12 |
x64 |
For all supported IA-64-based versions of Windows Server 2008 R2
File name |
File version |
File size |
Date |
Time |
Platform |
---|---|---|---|---|---|
Netio.sys |
6.1.7601.17939 |
711,024 |
22-Aug-2012 |
16:51 |
IA-64 |
Netio.sys |
6.1.7601.22114 |
711,048 |
19-Sep-2012 |
04:26 |
IA-64 |
Fwpkclnt.sys |
6.1.7600.16385 |
482,896 |
14-Jul-2009 |
01:58 |
IA-64 |
Tcpip.sys |
6.1.7600.17122 |
3,787,120 |
06-Sep-2012 |
16:38 |
IA-64 |
Fwpkclnt.sys |
6.1.7600.21320 |
482,672 |
06-Sep-2012 |
19:21 |
IA-64 |
Tcpip.sys |
6.1.7600.21320 |
3,806,576 |
06-Sep-2012 |
19:21 |
IA-64 |
Fwpkclnt.sys |
6.1.7601.17950 |
483,184 |
06-Sep-2012 |
16:34 |
IA-64 |
Tcpip.sys |
6.1.7601.17950 |
3,794,288 |
06-Sep-2012 |
16:34 |
IA-64 |
Fwpkclnt.sys |
6.1.7601.22108 |
483,184 |
07-Sep-2012 |
12:26 |
IA-64 |
Tcpip.sys |
6.1.7601.22108 |
3,819,376 |
07-Sep-2012 |
12:26 |
IA-64 |
Status
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the «Applies to» section.
More Information
For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:
824684 Description of the standard terminology that is used to describe Microsoft software updates
Additional file information
Additional file information for Windows 7 and for Windows Server 2008 R2
Additional files for all supported x86-based versions of Windows 7
File name |
X86_35e37cce6cdffde2950eb3c3bbe1c5fe_31bf3856ad364e35_6.1.7600.21320_none_171cd6cf3a75d97e.manifest |
File version |
Not applicable |
File size |
702 |
Date (UTC) |
20-Sep-2012 |
Time (UTC) |
03:45 |
Platform |
Not applicable |
File name |
X86_3f6cb5f2744423e0112e02722a62fb6c_31bf3856ad364e35_6.1.7601.17939_none_2cb20ab28c3bd3a5.manifest |
File version |
Not applicable |
File size |
1,054 |
Date (UTC) |
20-Sep-2012 |
Time (UTC) |
03:45 |
Platform |
Not applicable |
File name |
X86_92f8e0d03aee38324cf722c2892edd13_31bf3856ad364e35_6.1.7601.22114_none_5c3192143096782d.manifest |
File version |
Not applicable |
File size |
1,054 |
Date (UTC) |
20-Sep-2012 |
Time (UTC) |
03:45 |
Platform |
Not applicable |
File name |
X86_f81cb42132cc76a0fb04bb1202c7ec75_31bf3856ad364e35_6.1.7600.17122_none_238fbc63bf4b0f8f.manifest |
File version |
Not applicable |
File size |
702 |
Date (UTC) |
20-Sep-2012 |
Time (UTC) |
03:45 |
Platform |
Not applicable |
File name |
X86_microsoft-windows-netio-infrastructure_31bf3856ad364e35_6.1.7601.17939_none_58923ff3139b4b9b.manifest |
File version |
Not applicable |
File size |
2,540 |
Date (UTC) |
22-Aug-2012 |
Time (UTC) |
17:35 |
Platform |
Not applicable |
File name |
X86_microsoft-windows-netio-infrastructure_31bf3856ad364e35_6.1.7601.22114_none_592c53462cad6812.manifest |
File version |
Not applicable |
File size |
2,540 |
Date (UTC) |
19-Sep-2012 |
Time (UTC) |
04:41 |
Platform |
Not applicable |
File name |
X86_microsoft-windows-tcpip-binaries_31bf3856ad364e35_6.1.7600.17122_none_b3322c8bc78c020f.manifest |
File version |
Not applicable |
File size |
3,780 |
Date (UTC) |
07-Sep-2012 |
Time (UTC) |
14:13 |
Platform |
Not applicable |
File name |
X86_microsoft-windows-tcpip-binaries_31bf3856ad364e35_6.1.7600.21320_none_b3b9caa8e0ab6c52.manifest |
File version |
Not applicable |
File size |
3,834 |
Date (UTC) |
06-Sep-2012 |
Time (UTC) |
19:40 |
Platform |
Not applicable |
File name |
X86_microsoft-windows-tcpip-binaries_31bf3856ad364e35_6.1.7601.17950_none_b4f642fdc4cc5905.manifest |
File version |
Not applicable |
File size |
3,834 |
Date (UTC) |
06-Sep-2012 |
Time (UTC) |
17:07 |
Platform |
Not applicable |
File name |
X86_microsoft-windows-tcpip-binaries_31bf3856ad364e35_6.1.7601.22108_none_b5bdc9d6ddba6b14.manifest |
File version |
Not applicable |
File size |
3,834 |
Date (UTC) |
06-Sep-2012 |
Time (UTC) |
17:03 |
Platform |
Not applicable |
Additional files for all supported x64-based versions of Windows 7 and of Windows Server 2008 R2
File name |
Amd64_037f628c0e1f4c440d43f11da4332cd0_31bf3856ad364e35_6.1.7601.22114_none_9fcb01386126479b.manifest |
File version |
Not applicable |
File size |
712 |
Date (UTC) |
20-Sep-2012 |
Time (UTC) |
03:46 |
Platform |
Not applicable |
File name |
Amd64_0b1f90e9b55606d5a5b347de8ceea7fb_31bf3856ad364e35_6.1.7601.17939_none_f08f6fcd63b591d2.manifest |
File version |
Not applicable |
File size |
1,060 |
Date (UTC) |
20-Sep-2012 |
Time (UTC) |
03:46 |
Platform |
Not applicable |
File name |
Amd64_89c885821389aae0cb196ed0ade7ed36_31bf3856ad364e35_6.1.7601.22114_none_e27cebcdc95ac63e.manifest |
File version |
Not applicable |
File size |
1,060 |
Date (UTC) |
20-Sep-2012 |
Time (UTC) |
03:46 |
Platform |
Not applicable |
File name |
Amd64_8d10ae44dee8d94480166df0d0c2827e_31bf3856ad364e35_6.1.7600.21320_none_005bc7ef20a438ff.manifest |
File version |
Not applicable |
File size |
706 |
Date (UTC) |
20-Sep-2012 |
Time (UTC) |
03:46 |
Platform |
Not applicable |
File name |
Amd64_99da977437dc51a7961515ce810ca68c_31bf3856ad364e35_6.1.7600.17122_none_254d86c7eaf67a98.manifest |
File version |
Not applicable |
File size |
706 |
Date (UTC) |
20-Sep-2012 |
Time (UTC) |
03:46 |
Platform |
Not applicable |
File name |
Amd64_cb4a5b5f325e3d52be4b75f5d02ad5a3_31bf3856ad364e35_6.1.7601.17939_none_af91c78f2b20a43a.manifest |
File version |
Not applicable |
File size |
1,414 |
Date (UTC) |
20-Sep-2012 |
Time (UTC) |
03:46 |
Platform |
Not applicable |
File name |
Amd64_d9738826156543c319f8169ec9090c7a_31bf3856ad364e35_6.1.7601.22114_none_76aa3745ef842388.manifest |
File version |
Not applicable |
File size |
1,414 |
Date (UTC) |
20-Sep-2012 |
Time (UTC) |
03:46 |
Platform |
Not applicable |
File name |
Amd64_f0ed83bda0697abd97fd471015aed5c2_31bf3856ad364e35_6.1.7601.17939_none_f48525cb7b29d619.manifest |
File version |
Not applicable |
File size |
712 |
Date (UTC) |
20-Sep-2012 |
Time (UTC) |
03:46 |
Platform |
Not applicable |
File name |
Amd64_microsoft-windows-netio-infrastructure_31bf3856ad364e35_6.1.7601.17939_none_b4b0db76cbf8bcd1.manifest |
File version |
Not applicable |
File size |
2,542 |
Date (UTC) |
22-Aug-2012 |
Time (UTC) |
18:33 |
Platform |
Not applicable |
File name |
Amd64_microsoft-windows-netio-infrastructure_31bf3856ad364e35_6.1.7601.22114_none_b54aeec9e50ad948.manifest |
File version |
Not applicable |
File size |
2,542 |
Date (UTC) |
19-Sep-2012 |
Time (UTC) |
06:23 |
Platform |
Not applicable |
File name |
Amd64_microsoft-windows-tcpip-binaries_31bf3856ad364e35_6.1.7600.17122_none_0f50c80f7fe97345.manifest |
File version |
Not applicable |
File size |
3,784 |
Date (UTC) |
07-Sep-2012 |
Time (UTC) |
14:16 |
Platform |
Not applicable |
File name |
Amd64_microsoft-windows-tcpip-binaries_31bf3856ad364e35_6.1.7600.21320_none_0fd8662c9908dd88.manifest |
File version |
Not applicable |
File size |
3,838 |
Date (UTC) |
06-Sep-2012 |
Time (UTC) |
20:43 |
Platform |
Not applicable |
File name |
Amd64_microsoft-windows-tcpip-binaries_31bf3856ad364e35_6.1.7601.17950_none_1114de817d29ca3b.manifest |
File version |
Not applicable |
File size |
3,838 |
Date (UTC) |
06-Sep-2012 |
Time (UTC) |
18:15 |
Platform |
Not applicable |
File name |
Amd64_microsoft-windows-tcpip-binaries_31bf3856ad364e35_6.1.7601.22108_none_11dc655a9617dc4a.manifest |
File version |
Not applicable |
File size |
3,838 |
Date (UTC) |
06-Sep-2012 |
Time (UTC) |
18:37 |
Platform |
Not applicable |
File name |
Wow64_microsoft-windows-netio-infrastructure_31bf3856ad364e35_6.1.7601.17939_none_bf0585c900597ecc.manifest |
File version |
Not applicable |
File size |
1,166 |
Date (UTC) |
22-Aug-2012 |
Time (UTC) |
17:23 |
Platform |
Not applicable |
File name |
Wow64_microsoft-windows-netio-infrastructure_31bf3856ad364e35_6.1.7601.22114_none_bf9f991c196b9b43.manifest |
File version |
Not applicable |
File size |
1,166 |
Date (UTC) |
19-Sep-2012 |
Time (UTC) |
04:30 |
Platform |
Not applicable |
Additional files for all supported IA-64-based versions of Windows Server 2008 R2
File name |
Ia64_5a38a41e35481abcbb9bc58734bc4611_31bf3856ad364e35_6.1.7601.22114_none_d184f2cb931edc03.manifest |
File version |
Not applicable |
File size |
1,411 |
Date (UTC) |
20-Sep-2012 |
Time (UTC) |
03:45 |
Platform |
Not applicable |
File name |
Ia64_5aa5f2ba0395bd081d1929ba4763e58c_31bf3856ad364e35_6.1.7600.21320_none_8ce00eb809dfe8af.manifest |
File version |
Not applicable |
File size |
704 |
Date (UTC) |
20-Sep-2012 |
Time (UTC) |
03:45 |
Platform |
Not applicable |
File name |
Ia64_8c2b71997d6e42fa1d8d6bcea8496a42_31bf3856ad364e35_6.1.7601.17939_none_6f702416c9ea209b.manifest |
File version |
Not applicable |
File size |
1,411 |
Date (UTC) |
20-Sep-2012 |
Time (UTC) |
03:45 |
Platform |
Not applicable |
File name |
Ia64_8e97c6f3836bfb6a018b226195f1fe0a_31bf3856ad364e35_6.1.7600.17122_none_0aad947dfb09be26.manifest |
File version |
Not applicable |
File size |
704 |
Date (UTC) |
20-Sep-2012 |
Time (UTC) |
03:45 |
Platform |
Not applicable |
File name |
Ia64_microsoft-windows-netio-infrastructure_31bf3856ad364e35_6.1.7601.17939_none_5893e3e913995497.manifest |
File version |
Not applicable |
File size |
2,541 |
Date (UTC) |
22-Aug-2012 |
Time (UTC) |
18:25 |
Platform |
Not applicable |
File name |
Ia64_microsoft-windows-netio-infrastructure_31bf3856ad364e35_6.1.7601.22114_none_592df73c2cab710e.manifest |
File version |
Not applicable |
File size |
2,541 |
Date (UTC) |
19-Sep-2012 |
Time (UTC) |
05:32 |
Platform |
Not applicable |
File name |
Ia64_microsoft-windows-tcpip-binaries_31bf3856ad364e35_6.1.7600.17122_none_b333d081c78a0b0b.manifest |
File version |
Not applicable |
File size |
3,782 |
Date (UTC) |
07-Sep-2012 |
Time (UTC) |
14:10 |
Platform |
Not applicable |
File name |
Ia64_microsoft-windows-tcpip-binaries_31bf3856ad364e35_6.1.7600.21320_none_b3bb6e9ee0a9754e.manifest |
File version |
Not applicable |
File size |
3,836 |
Date (UTC) |
06-Sep-2012 |
Time (UTC) |
20:34 |
Platform |
Not applicable |
File name |
Ia64_microsoft-windows-tcpip-binaries_31bf3856ad364e35_6.1.7601.17950_none_b4f7e6f3c4ca6201.manifest |
File version |
Not applicable |
File size |
3,836 |
Date (UTC) |
06-Sep-2012 |
Time (UTC) |
18:04 |
Platform |
Not applicable |
File name |
Ia64_microsoft-windows-tcpip-binaries_31bf3856ad364e35_6.1.7601.22108_none_b5bf6dccddb87410.manifest |
File version |
Not applicable |
File size |
3,836 |
Date (UTC) |
07-Sep-2012 |
Time (UTC) |
12:48 |
Platform |
Not applicable |
File name |
Wow64_microsoft-windows-netio-infrastructure_31bf3856ad364e35_6.1.7601.17939_none_bf0585c900597ecc.manifest |
File version |
Not applicable |
File size |
1,166 |
Date (UTC) |
22-Aug-2012 |
Time (UTC) |
17:23 |
Platform |
Not applicable |
File name |
Wow64_microsoft-windows-netio-infrastructure_31bf3856ad364e35_6.1.7601.22114_none_bf9f991c196b9b43.manifest |
File version |
Not applicable |
File size |
1,166 |
Date (UTC) |
19-Sep-2012 |
Time (UTC) |
04:30 |
Platform |
Not applicable |
The most common cause of FTP problems is that passive FTP transfer mode is not turned on in your FTP program. «Passive mode» is usually needed:
- If you use a DSL or cable modem; or
- If you use some kind of Internet sharing device or software to connect multiple computers to the Internet using one ISP connection; or
- If you use a personal firewall on your computer, or you’re connecting from a company or ISP network that uses a firewall.
(There may be other situations where it’s needed, too — try the solution below even if you don’t think you fall into any of these categories.)
«Passive mode» is especially likely to be the problem if your FTP program seems to connect to our server, but is then unable to transfer a file or show a list of files. It’s also the problem if you see an error message mentioning a «PORT» command.
On this page:
- Turning on passive FTP transfer mode
- What if FTP still doesn’t work?
- Try a text connection to our servers
- Is there any other way to publish files?
Turning on passive FTP transfer mode
To solve these kinds of connection problems, turn on passive FTP transfer mode in your FTP program:
- Enabling passive mode in Cyberduck
- Enabling passive mode in Dreamweaver
- Enabling passive mode in FileZilla
If you use a different FTP program, it almost certainly has a checkbox to turn on «passive mode» in either the connection setup screen or the program preferences screen. Consult the documentation for your FTP program if you’re unsure how to do it. (Look for the words passive or PASV in the settings; the checkbox is often labeled «PASV FTP» or something similar.)
Turning on passive mode almost always fixes FTP connection problems.
What if FTP still doesn’t work?
The first thing we recommend is turning off any firewall software as a test. If this fixes the problem, consult your firewall’s documentation or support to learn how to allow FTP connections with the firewall turned on.
On a Mac, make sure the firewall is turned off in System Preferences > Security & Privacy > Firewall.
If it doesn’t help, try disabling SSL/TLS encryption in your FTP program if you’ve enabled it. Encryption is not compatible with all firewalls.
If it still doesn’t work, try restarting your computer, Internet modem and router, all of which can have temporary problems with FTP connections.
If that doesn’t solve it, try connecting to a completely different public FTP server. This will show whether the problem is just with the connection to our FTP server or if your computer is having problems connecting to any FTP servers. An example of a public FTP server is:
- Server hostname: ftp.earthlink.net
- Username to use: anonymous
- Password to use: anonymous
If your computer cannot connect to that server, then either your FTP software is not working correctly, or something on your computer (probably a firewall or other security software) is blocking all FTP connections. You may want to try using other FTP software such as the free FileZilla.
If you still having problems connecting, try making a text connection as described in the next section.
Try a text connection to our servers
These instructions explain how to make a text-based connection to our servers, mimicking what your FTP program usually does invisibly. This allows you to see exactly what response our servers send back to your FTP program, and we can use that information to determine the source of the problem.
You can do this in a few easy steps:
1. Enable telnet (Windows only)
Telnet is not installed by default on Windows Vista and later, so you may need to install it. You can skip this step if you use macOS.
- Click the Windows Start button, then choose Control Panel. (In Windows 8, type control panel at the Start screen and press enter.)
- Choose Programs (this may be called Programs and Features).
- Choose Turn Windows features on or off.
- Check the Telnet Client checkbox.
- Click OK, then finish the installation.
2. Open a command window.
To open a command window:
- If you’re using Microsoft Windows 7 or earlier, click the Start button, then choose All Programs > Accessories > Command Prompt, which will open a new window with a black background.
- With Windows 8, type command prompt at the Start screen and press enter.
- With macOS, open the «Terminal» application.
3. Type a «telnet» or «nc» command.
Once the command window is open, type this text and press «Enter»:
telnet ftp.tigertech.net 21
If you’re using macOS and see “telnet: command not found”, type this instead:
nc ftp.tigertech.net 21
You should see these two lines (among others) in the response:
220-This is a private system - No anonymous login 220 You will be disconnected after 2 minutes of inactivity.
If you don’t see these lines in the response, contact us and let us know exactly what you do see, because it means that something is blocking your computer’s connections to our FTP server. Please be sure to copy and paste all of the command window text into your message to us, since it’s all important. We’ll do our best to help you figure out what’s causing the problem, although in some cases you may need to ask your network administrator.
(By the way, you can just close the command window when you’re finished with the tests above.)
Is there any other way to publish files?
If your FTP program supports it, you can use SFTP instead. SFTP is a newer connection method that’s far more reliable and doesn’t have so many problems with firewalls.
Programs like FileZilla and Cyberduck offer the ability to connect using SFTP.
The only thing to keep in mind with SFTP is that after connecting, you will need to change to the directory named html to make sure you’re putting files in the right place.
Approx. read time : 3 min
Watch this video for a step by step process on how to Fix Failed to Retrieve Directory Listing Error in FileZilla FTP
While using FileZilla for connecting to your FTP you might get an error as below:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
Status: Resolving address of ftp.website.com Status: Connecting to 11.22.33.44:21… Status: Connection established, waiting for welcome message... Status: Initializing TLS... Status: Verifying certificate... Status: TLS connection established. Status: Server does not support non—ASCII characters. Status: Connected Status: Retrieving directory listing... Command: PWD Response: 257 «/» is your current location Command: TYPE I Response: 200 TYPE is now 8—bit binary Command: PASV Response: 227 Entering Passive Mode (11,22,33,44,167,111) Command: MLSD Error: Connection timed out Error: Failed to retrieve directory listing |
There can be different reasons for this error to occur and also different solutions for it.
This error can be easily fixed by going into the Site Manager and using plain FTP by adjusting your connection details.
Note: You will have to open Passive Ports in your FTP’s server configuration file and firewall too.
1. Wrong Encryption Settings in FTP Client
For example, while using FileZilla, when you connect to FTP server you might get an error as below:
Response: 227 Entering Passive Mode (11,22,33,44,167,111) Command: MLSD Error: Connection timed out Error: Failed to retrieve directory listing |
This error occurs when encryption is set to “Use explicit FTP over TLS if available” in FTP client settings.
Check the steps below to fix the problem:
1. Go to FileZilla, click on “File” menu and select “Site Manager”.
2. If the site or server you want to connect to isn’t already mentioned in site manager, add it.
a. Add hostname.
b. Make the Encryption to “Only use plain FTP”.
c. Change logon type to “Normal”.
d. Enter username/password.
e. Ok/Connect to continue.
In case you are still getting the error, disable your firewall then try once more!
2. Problem with Passive mode
FTP works in both active and passive mode. FTP clients like FileZilla, CuteFTP, etc. use passive mode for transfer. But sometimes you may get an error such as “FTP can’t retrieve directory listing” in passive mode, then follow the below steps to resolve the error:
- Open Filezilla, click on Edit -> Settings.
- Next, click on Connection -> FTP: Select Active.
- Click on Connection -> FTP -> Active Mode: Choose “Ask your operating system for the external IP address”.
- Click on Connection -> FTP -> Passive Mode: Select Fall Back to Active Mode
- Press OK.
Try connecting to your FTP again!
3. Missing Passive Port Range in FTP Server
In most of the cases “FTP cannot retrieve directory listing” error occurs when passive port range is not mentioned FTP server configuration.
In cPanel for FTP servers like PureFTP, follow the below steps.
1. Log in to the server via SSH.
2. Open the /var/cpanel/conf/pureftpd/local file and add the entry as below:
These changes are then added to the file because FTP server exists behind the firewall.
3. Then change the server’s default passive port range, by running the below command:
echo «PassivePortRange: 49152 65534» >> /var/cpanel/conf/pureftpd/local /usr/local/cpanel/scripts/setupftpserver pure—ftpd —force |
4. Next, configure the server so that the passive port range will pass through the firewall.
5. Lastly, restart the PureFTP service.
/usr/local/cpanel/scripts/setupftpserver pure—ftpd —force |
4. Lacking Port Range in Firewall Settings
This error usually occurs when a firewall blocks passive FTP ports.
Check the following steps to add the passive port range to the firewall to solve this error:
1. For firewall like iptables, open the /etc/sysconfig/iptables file in a text editor.
2. Then add the entry as below:
iptables —I INPUT —p tcp —dport 49152:65534 —j ACCEPT |
3. Lastly, run the below command to save.
In this way, you can fix the error like “FTP cannot retrieve directory listing”.
Also Read:
Steps to Display Hidden Files on Your FTP Client
How to Create and Edit a File via FTP?
Server Sent Passive Reply with Unroutable Address Passive Mode Failed
Enormous quantities of our customers grant their site architects to have restricted permission to the server due to wellbeing reasons.
Consequently, planners routinely use FTP clients like FileZilla to move and download records from the server, they go over this slip-up message. Around here at ARZHOST, we have seen a couple of such FTP-related errors as a component of our Server Management Services for the web has an online expert center.
Today “Server-Sent Passive Reply with Unroutable Address Passive Mode Failed”, will examine the causes and their specific fixes for this error message.
How do we fix the FTP error Server sent a dormant reply with an Unroutable area?
As of now, “Server-Sent Passive Reply with Unroutable Address Passive Mode Failed”, let’s see the critical purposes behind this FTP misstep and how our Hosting Expert Planners fix it.
1. Dreadful firewall settings
Lately, one of our customers advanced toward us with this mix-up message. Using server address rather while interfacing with an FTP site. On checking, we saw that disconnected ports were not allowed on the firewall settings. This results in clients inadequate to connect with their server from the outer association.
Subsequently, “Server-Sent Passive Reply with Unroutable Address Passive Mode Failed”, we teak the firewall setting as adding segregated ports range in firewall settings.
2. NAT game plan
One more customer protested his FTP connection when he endeavored to interface the FTP server with FileZilla and get the going with errors. The server sent an inactive reply with an Unroutable area. Using server address taking everything into account.
On exploring, we saw that the FTP client was behind NAT. Regardless, the FTP show doesn’t support NAT using any means. Also, the client unequivocally enlightens the server in unique mode to open a discretionary relationship with the server IP address, which will not work if the client is behind NAT.
Consequently, “Server-Sent Passive Reply with Unroutable Address Passive Mode Failed”, we change the, etc/vsftpd.conf record as underneath
pasv_address=<you. external. IP>
Finally, this appropriates the screw-up.
People Frequently Ask
Question # 1: How do I fix Server sent passive reply with an Unroutable address?
Answer: Go to the Serv–U settings at Global Limits & Settings > Settings – Network Settings. Ensure the Auto-configure firewall through the UPnP checkbox is not checked. Ensure the Packet time-out is set to 300 seconds. Set PASV Port Range is 50,000-50,009, and port forward these ports to your router.
Question # 2: How do I turn on the passive mode in FileZilla?
Answer: Enabling passive mode
- Start the FileZilla program if it isn’t already running.
- Click Edit, Settings in the menu bar. The “FileZilla Options” window will appear.
- Select Connections, then FTP on the left-hand side.
- Choose the Passive (recommended) option.
Question # 3: What are active and passive FTP?
Answer: Active vs Passive FTP
When an FTP connection is initiated, it begins with a control connection. … In Passive Mode, the FTP server waits for the FTP client to send it a port and IP address to connect to. In Active mode, the server assigns a port and the IP address will be the same as the FTP client making the request.
Read More——-
Question # 4: How do I change my FTP channel port range?
Answer: In the Connections pane, click the server-level node in the tree. Double-click the FTP Firewall Support icon in the list of features. Enter a range of values for the Data Channel Port Range. Once you have entered the port range for your FTP service, click Apply in the Actions pane to save your configuration settings.
Question # 5: How do I turn off passive mode in the FileZilla server?
Answer: If you encounter problems using FileZilla, a firewall on your computer or network may be interfering with the connection. Turning off Passive Mode in the FileZilla settings will usually solve this. The FileZilla Options window will appear. Click OK to close the window.
FTP Client Operations in PASSIVE mode crash and burn directly following fixing with 5020402_1 fix pack
“Server-Sent Passive Reply with Unroutable Address Passive Mode Failed”, Genuine B2B Integrator’s (SBI) FTP Client Business Process (BP) is interfacing with an outcast FTP server in PASSIVE mode and FTP Client undertakings (exercises that require data connection e.g., list, put, get, etc) misfire with an error message “Response not set in stone break came to. Closing connections.”
Cause FTP Client Operations in PASSIVE mode crash
Right when the SBI FTP Client issues a PASSIVE request to the server, FTP Server is returning an IP address that isn’t exactly as old as is used in FTP Begin Session. Exactly when the Client issues data relationship with this new IP and port, the server doesn’t complete it therefore client BP keeps it together for Response Timeout long and times out. Additionally, it is the right lead from the Client.
Be that as it may, “Server-Sent Passive Reply with Unroutable Address Passive Mode Failed”, is an issue with an untouchable FTP server being used. Either server needs to respond to the Client with the right IP or fit for regarding data relationship at the IP/port it is responding with.
Fix made through APAR IC92859 in SBI fix pack 5020402_1 to meet FTP RFC grants SBI FTP client to regard IP returned by the server. Prior SBI fix packs don’t have this issue regardless when a server doesn’t act adequately as referred to above and reliably uses the IP address used in Begin Session.
Background
“Server-Sent Passive Reply with Unroutable Address Passive Mode Failed”, Genuine B2B Integrator fix pack 5020402_1 and later
Settling The Problem
Anyhow the way that it is a pariah FTP server issue, the SBI FTP Client has a workaround to smother fix made in APAR IC92859 to allow a client to use an IP address from FTP Begin Session reliably.
Here is the default property arrangement from the sFTP client. properties.
- ##Flag to enable or injure to regard PASV request.
- ######If the flag is set to substantial, FTP Client will interface with have returned by PASV request
- # If the pennant is set to counterfeit, FTP Client will connect with the principal have which is referred to in the client bp.
- Valid characteristics:
- ## ##substantial: (default)
- ## false:
honourPASV=true
Follow this workaround –
- Add this line in present/properties/customer_overrides.properties [create archive, it doesn’t exist]
- honourPASV=false
- restart SBI center points
Conclusion
To lay it out simply, this error happens in light of terrible server settings or when an FTP client is behind NAT. Today, “Server-Sent Passive Reply with Unroutable Address Passive Mode Failed”, we saw how our Hosting Expert Planners fix it.
Moderator: Project members
-
Reddax
- 500 Command not understood
- Posts: 2
- Joined: 2013-05-17 14:37
- First name: James
- Last name: Morley
227 Entering Passive Mode, Disconnected.
#1
Post
by Reddax » 2013-05-17 14:49
000089)17/05/2013 15:34:20 — james (212.183.128.67)> CLNT AndFTP
(000089)17/05/2013 15:34:20 — james (212.183.128.67)> 200 Don’t care
(000089)17/05/2013 15:34:21 — james (212.183.128.67)> PWD
(000089)17/05/2013 15:34:21 — james (212.183.128.67)> 257 «/» is current directory.
(000089)17/05/2013 15:34:21 — james (212.183.128.67)> NOOP
(000089)17/05/2013 15:34:21 — james (212.183.128.67)> 200 OK
(000089)17/05/2013 15:34:22 — james (212.183.128.67)> CWD /
(000089)17/05/2013 15:34:22 — james (212.183.128.67)> 250 CWD successful. «/» is current directory.
(000089)17/05/2013 15:34:23 — james (212.183.128.67)> PASV
(000089)17/05/2013 15:34:23 — james (212.183.128.67)> 227 Entering Passive Mode (86,150,105,147,215,59)
(000089)17/05/2013 15:35:27 — james (212.183.128.67)> disconnected.
As you can see, i’m trying to connect to my ftp server from an external ip and it simply says 227 entering passive mode then disconnects. I’ve opened the ports that are under passive mode settings. I have also added filezilla to the windows firewall exception. It works fine when connecting from internally. Any suggestions?
-
pedey
- 500 Command not understood
- Posts: 2
- Joined: 2013-05-30 16:42
- First name: Mike
- Last name: P
Re: 227 Entering Passive Mode, Disconnected.
#3
Post
by pedey » 2013-05-30 16:54
I’m having an identical problem behind a Sonicwall TZ170. LAN access works. Outside access allows for username/password entry, then disconnects immediately after log entry ‘227 Entering Passive Mode (x.x.x.x,136,188)’. Checked ‘Use custom port range’ in Passive mode settings in Filezilla Server options and entered 35000-36000. Forwarded those ports on Sonicwall to server IP. Also forwarded ports 20-22 and listening port 14147. Stumped. Tried using https://ftptest.net/ — does not resolve. Instead using http://www.g6ftpserver.com/en/ftptest — log below:
* About to connect() to x.x.x.x port 21 (#0)
* Trying x.x.x.x… connected
* Connected to x.x.x.x (x.x.x.x) port 21 (#0)
< 220-FileZilla Server version 0.9.41 beta
< 220-written by Tim Kosse (Tim.Kosse@gmx.de)
< 220 Please visit http://sourceforge.net/projects/filezilla/
> USER test
< 331 Password required for test
> PASS *****
< 230 Logged on
> PWD
< 257 «/» is current directory.
* Entry path is ‘/’
> CLNT Testing from http://www.g6ftpserver.com/ftptest from IP x.x.x.x
< 200 Don’t care
> FEAT
< 211-Features:
< MDTM
< REST STREAM
< SIZE
< MLST type*;size*;modify*;
< MLSD
< UTF8
< CLNT
< MFMT
< 211 End
> PASV
* Connect data stream passively
* Recv failure: Connection was reset
* Closing connection #0
curl: (56) Recv failure: Connection was reset
-
botg
- Site Admin
- Posts: 34745
- Joined: 2004-02-23 20:49
- First name: Tim
- Last name: Kosse
- Contact:
Re: 227 Entering Passive Mode, Disconnected.
#4
Post
by botg » 2013-05-30 18:10
You need to configure the server as well as all firewalls and NAT routers involved according to the Network Configuration guide.
-
pedey
- 500 Command not understood
- Posts: 2
- Joined: 2013-05-30 16:42
- First name: Mike
- Last name: P
Re: 227 Entering Passive Mode, Disconnected.
#5
Post
by pedey » 2013-05-30 19:38
Thanks. To this point, I can only access from outside if I change the listening port from 21 to something else. So I’ve changed it. Don’t know if this is unique to the firewall or if there’s something else I’m missing — I’m assuming it’s the firewall.
-
boco
- Contributor
- Posts: 26451
- Joined: 2006-05-01 03:28
- Location: Germany
Re: 227 Entering Passive Mode, Disconnected.
#6
Post
by boco » 2013-05-30 21:49
Don’t forward 14147, it’s for remote administration only.
Thanks, reported.
Your log indicated a very aggressive firewall or router. Even the reply to PASV (and thus the Passive port to use) is blocked already. As you indicate it works fine from LAN, it seems to be the router firewall.
### BEGIN SIGNATURE BLOCK ###
No support requests per PM! You will NOT get any reply!!!
FTP connection problems? Do yourself a favor and read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
### END SIGNATURE BLOCK ###