Updated: 30 November 2026 · Applies to: Centova Cast v3, any FTP program (FileZilla, WinSCP, Cyberduck); error messages checked with curl 7.76 on AlmaLinux 9
"Connection refused" or "Connection timed out" when you upload MP3 files to Centova Cast by FTP means your FTP program never reached a working FTP server. It is not a problem with your music or your login. According to Centova, there are three causes: the FTP server is not running, the host name or IP address is wrong, or a firewall is blocking the connection. Check them in the order below.
Refused or timed out: what each one tells you
- Connection refused: the server answered, but nothing was listening on the port you used. Usually the port is wrong (for example your stream port instead of 21) or the FTP service is stopped.
- Connection timed out: nothing answered at all. Usually a firewall drops the connection, the host name points to the wrong server, or your own network blocks FTP.
- Connected, but the folder listing times out: the login worked on port 21 but the data connection failed. This is a passive FTP problem (see step 4).
We reproduced the first two with curl. With nothing listening on the port, the client is refused straight away:
curl -sS ftp://127.0.0.1/
Output:
curl: (7) Failed to connect to 127.0.0.1 port 21: Connection refused
Using a stream port by mistake gives the same kind of error:
curl: (7) Failed to connect to 127.0.0.1 port 8000: Connection refused
FileZilla shows the same problem in its message log as a refused or timed-out connection. To read the full log, see How can I check my FTP client log?
Step 1: Check the FTP details you typed
- Host: the host name or IP address of your Centova Cast server, for example
radio.example.com. It is the same address you use for the Centova Cast control panel, withouthttp://,https://or:2199. - Port:
21, unless your provider gave you another FTP port. Never use the stream port (8000 and similar) or the panel port (2199). Those are for listeners and the web interface, not FTP. - Username and password: your stream account username and password. If the connection works but the login fails, that is a different error: see On Uploading media MP3 via FTP found Authentication failed error.
- Protocol: FTP, not SFTP. SFTP (port 22) is a different protocol and does not connect to Centova Cast's FTP server.
Step 2: Test from another network
Office, school, hotel and some mobile networks block outgoing FTP. Try once from a phone hotspot or home connection. If it works there, your own network is the cause. You can also test the port itself: see How to check if FTP port 21 is blocked?
Step 3: Start the FTP server (server owners)
If you have root access to the Centova Cast server, check that its FTP server is running. According to Centova, start it from SSH with:
/etc/init.d/centovacast start-ftp
Centova Cast's FTP server is called cc-ftpd (a modified Pure-FTPd). If /etc/init.d/centovacast does not exist on your server, see How to Fix -bash: /etc/init.d/centovacast: No such file or directory When Restarting Centova Cast and restart Centova Cast the way described there.
Another FTP server on the same IP address can also get in the way, for example one started by a web hosting control panel. Centova recommends giving Centova Cast's FTP server its own IP address or port in that case. A login that reaches the wrong FTP server usually fails with an authentication error rather than "refused".
Step 4: Open the firewall, including passive ports
FTP uses port 21 for the login and a second connection for every folder listing and upload. With passive FTP (the default in most programs), that second connection goes to a port from the FTP server's passive range. If port 21 is open but the passive range is not, the login works and then the listing or upload times out.
- Open TCP port 21 in the server firewall and in any firewall in front of the server.
- Open the passive port range configured for the FTP server.
- The full list of Centova Cast ports is in How should I configure my firewall to allow access to Centova Cast?
If the upload starts and then stops with "421 Too many connections", that is a connection limit, not a firewall: see How to Increase the Maximum FTP Connections per IP in Centova Cast (421 Too Many Connections).
Cannot get FTP working? Use the web uploader
Centova Cast v3 also has a file manager in the web interface, which works over the normal panel connection. It is slower for large batches, but it gets your music on air while FTP is being fixed. See What to use: FTP or the web-based file uploader for Centova Cast? and How to upload Mp3 in Centova Cast using FTP? for the normal upload steps.
Hosted stream customers on our Shoutcast and Icecast hosting cannot start FTP or change the firewall themselves. If the details above are correct and the error stays, open a support ticket with the exact error from your FTP log, your stream username and the time you tried.
Official documentation: Centova: Uploading media (MP3) files.