Fix: FileZilla Cannot Connect
Resolve connection timeout and connection refused errors
"Connection timed out" and "Cannot connect to server" are among the most common FileZilla errors. This comprehensive guide will help you identify and fix the root cause of connection problems.
Common Error Messages
- Error: Connection timed out after 20 seconds of inactivity
- Error: Could not connect to server
- Error: Connection refused by server
- Error: Network unreachable
Quick Fixes (Try These First)
✓ 1. Verify Host Address
Double-check your server address. Don't include "http://" or "https://":
✓ Correct: ftp.example.com or 192.168.1.100
✗ Wrong: http://ftp.example.com
✓ 2. Check Your Internet Connection
Verify your internet is working by opening a website in your browser. Try pinging the server:
✓ 3. Use the Correct Port
Make sure you're using the right port for your protocol:
- • FTP: Port 21 (standard)
- • SFTP: Port 22 (SSH)
- • FTPS (Explicit): Port 21
- • FTPS (Implicit): Port 990
✓ 4. Try SFTP Instead
If FTP (port 21) doesn't work, try SFTP (port 22). In Site Manager, change Protocol to "SFTP - SSH File Transfer Protocol" and set port to 22.
Detailed Solutions
Solution 1: Configure Firewall
Firewalls (Windows Defender, antivirus, router) often block FTP connections.
Windows Firewall:
- Open Windows Security → Firewall & network protection
- Click "Allow an app through firewall"
- Click "Change settings" → "Allow another app"
- Browse and select FileZilla (usually in C:\Program Files\FileZilla FTP Client)
- Check both "Private" and "Public" boxes
- Click "Add"
Mac Firewall:
- System Settings → Network → Firewall → Options
- Click "+" and add FileZilla
- Set to "Allow incoming connections"
Solution 2: Switch to Passive Mode
Passive mode works better with routers and firewalls.
- Open Site Manager (File → Site Manager)
- Select your site
- Go to "Transfer Settings" tab
- Select "Passive" transfer mode
- Click "OK" and reconnect
Solution 3: Check Server Status
The server might be down or blocking your IP address.
- • Contact your hosting provider to verify server is online
- • Check if your IP is blocked (some hosts block after failed login attempts)
- • Try connecting from a different network or using a VPN
- • Check hosting provider's status page for outages
Solution 4: ISP Port Blocking
Some ISPs block port 21 for security. Solutions:
- • Use SFTP (port 22): Rarely blocked, more secure
- • Use alternative port: Ask your host if FTP is available on a different port
- • Mobile hotspot test: Try connecting via mobile hotspot to confirm ISP blocking
- • VPN: Use a VPN to bypass ISP restrictions
Solution 5: Router Configuration
Router settings can interfere with FTP connections.
- • Try connecting with passive mode (see Solution 2)
- • Enable "FTP Application Layer Gateway (ALG)" in router settings (or try disabling it if enabled)
- • Forward ports 21 and 20 to your computer (for active mode)
- • Try DMZ mode temporarily to test (not recommended long-term)
Advanced Troubleshooting
Increase Connection Timeout
If you have a slow connection, increase the timeout:
- Edit → Settings → Connection
- Increase "Timeout in seconds" (try 60 or 90)
- Click OK and reconnect
Enable Debug Logging
To see detailed connection information:
- Edit → Settings → Debug
- Set debug level to "Verbose"
- Try connecting and check the message log for clues
Still Cannot Connect?
If you've tried all solutions above, try these final steps:
- 1. Verify credentials with hosting provider - They can confirm your FTP/SFTP details are correct
- 2. Try a different FTP client - This helps identify if it's a FileZilla-specific issue
- 3. Reinstall FileZilla - Download the latest version and reinstall
- 4. Check message log - Look for specific error codes to search for targeted solutions
✓ Connection Successful? Next Steps:
Frequently Asked Questions
Why does FileZilla say "Connection timed out"?
Connection timeout usually means FileZilla cannot reach the server. Common causes: incorrect host address, firewall blocking connection, server is down, or ISP blocking FTP ports.
How long should I wait before a connection times out?
FileZilla typically waits 20-30 seconds by default. You can adjust this in Settings → Connection → Timeout. However, if it's timing out, there's usually a connectivity issue.
Should I use active or passive mode?
Passive mode is recommended for most users, especially if behind a router/firewall. It allows the client to initiate both command and data connections.
Can my ISP block FTP connections?
Yes, some ISPs block port 21 (FTP) for security reasons. Try using SFTP (port 22) instead, which is rarely blocked and more secure.