500 Illegal port command while using ftp commands

I am getting the error 500 Illegal port.

By default ftp is running to port 21. You need to change the port to 8081

I’m using ftp hostname 8081 but still it’s not working

@nikhil.01 is this issue now resolved? Please describe your issue in more detail so we can give you some effective help.

  1. Which command are you executing?
  2. What changes have you made to the vsftpd.conf file (please DM this to us, don’t share it publicly)?
  3. Have you searched for resolutions on Google? Did you read this? https://www.ucodice.com/blog/ftp-500-illegal-port-command/