Unable to connect the filezilla ftp server, returns error 421 Login Incorrect

filezillaftpport-forwarding

I have a internet connection with live ip. I have forwarded routers port 21 to my local server, where I have installed FileZilla FTP server. It works fine in local environment, but when I try to access it with my public IP it returns error: 421 Login incorrect. It`s not showing the username/password popup, but directly prompts the error message.

Note:

  1. I can access my router with my public IP.
  2. I also have double checked whether my port is forwarded or not with this link.

What should I do next?

Best Answer

It can be that your server is set for PASV FTP mode, if true then you need to open the range of posts in your router selected in the server for passive mode.

enter image description here

PASV FTP mode starts by initiating a connection on port 21 of the server and then the client will ask the server for another designated port to use, if that port is not open in your router then the connection will fail.
That can explain why you do not get a username:password prompt and it fails automatically.

Related Question