I went to security group and add the rule for tcp 21

enter image description here

But when use this tool to check the port, still say is closed.

enter image description here

I know the tool works, because if I remove the line for http, then say port 80 is closed.

So why even when add the port to the security group still appear as closed?

EDIT: The FileZila server is running but still the port say is close on the public ip. Using FileZila client direct on the amazon machine I can connect to localhost. But from outside using the public ip I cant.

using netstats -an

enter image description here

and netstats -ab

TCP    [::]:21                myserver:0         LISTENING
[FileZilla Server.exe]

TCP             myserver:0         LISTENING
[FileZilla Server.exe]
  • Do you have an application listening on port 21? What happens if you try to connect from the command line on your instance to the FTP server? – Tim Feb 14 '18 at 22:14
  • @Tim I can connect to ftp if using localhost. But cant connect using public ip. Check edit. – Juan Carlos Oropeza Feb 16 '18 at 14:23
  • I suspect your FTP server is configured incorrectly, but I'm not sure quite how. – Tim Feb 16 '18 at 18:47

A service must be running on the port for it to be open. Start your FTP server.

  • Thanks Michael, the FileZilla server is running but still show the port is closed. Please check the edit. – Juan Carlos Oropeza Feb 16 '18 at 14:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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