I get the error "Connection refused" when trying to access an FTP server.
This means that there is no server listening at the hostname and port. Check that you have the correct port setting. 21 is default for FTP servers and 80 is default for web servers.