Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

i have a remote server running linux/WHM/cpanel which i'm having no trouble connecting to via SSH (via the same internet connection).

however, when i try to connect with FTP, sometimes it works, and sometimes it gives me the following message:

Server said: I won't open a connection to 192.168.1.4 (only to 78.xxx.xxx.xxx) 

Error -162: PORT failed

sometimes it just works, and sometimes it doesn't!

the 78.xxx.xxx.xxx IP is the one i see when i check my ip using whatismyip.com on my local computer.

in addition to this, if i use a different internet connection it works fine.

my ISP doesn't seem to know what's going on.

please help!

thanks :)

share|improve this question

2 Answers 2

PORT mode requires the server to make connections to the client, which typically doesn't work in NATed or firewalled environments. In almost all cases, you want to be using passive mode.

share|improve this answer

Perhaps the FTP server is on an internal adress, and use masquerade. What does the logs of the ftp server say? (dunno where? find out what ftp server software and check for the logs in /var/log)

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.