How To Fix Ftp Connection Time Out Error!

Common errors when using FTP

When testing an FTP connection you may received of the following errors:

1) Socket Error # 11001, Host not found
2) Socket Error # 11004, Unable to connect
3) Socket Error # 10061, Connection refused
4) Socket Error # 10093
5) Socket Error # 10038
6) Socket Error # 10039
7) Socket Error # 10052
8) Unable to connect: Connection time out
9) Unable to connect. Not logged in
10) Unable to connect. Error connecting with SSL
11) Scan failed (-1): Read Timeout

How to resolve the error?
If you receive an “FTP connection timed out error while trying to access your account”, there are several reasons for that. Please, take a look at the Script :

!CONNECTION FAILED XX.XX.XXX.XXX – CONNECTION TIMED OUT
!CONNECTIO:ERROR 0
PORT XXX,XXX,X,X,X,XXX
500 ILLEGAL PORT COMMAND
!FAILED “PORT”
!RETRIEVE OF FOLDER LISTING FAILED (0)

Solution:

1 : Login to the WHM==> FTP Server Selection

2 : Change the FTP server to Pure-FTPD ==> Save

3 : Now ssh into the server as root

4 : Open the pure-ftp conf file /etc/pure-ftpd.conf

5 : Find the FTP port no: used

6 : And find the “PassivePortRange”

7 : Add the port range

for eg :

[BASH][/BASH]PASSIVEPORTRANGE 30000 40000[BASH][/BASH]

8 : Save and Quit

9 : Go to csf(firewall) config file

10 : Add the ftp port along with the passive port range

eg :

[BASH][/BASH]# ALLOW INCOMING TCP PORTS TCP_IN = “20,22,25,53,80,110,143,443,465,587,993,995,2001,2077,2078,2082,2083,2086,2087, 2095,2096,30000:40000?[BASH][/BASH]

11 : Restart csf & Pure-ftpd

Add a Comment

Your email address will not be published. Required fields are marked *