Ftp connect failed

I have an proftpd server where I connect from filezilla in our office.
I cannot connect to that specific ftp server when using ftp command ssh conection or ftp_connect php function from dreamhost .
I don’t know what happens because it works when I try to connect from dreamhost to other ftp servers.
Any ideas?

First guess is that your office has a firewall that blocks FTP, etc. Can you connect to it from home?

-Scott

Yes, I can connect from home and from another networks. It has to be something about dreamhost.

when I configured the same server at 2121 port, it works perfectly. Are you filtering 21 ports?