can't connect to FTP

Abdullah Alayed 21 Reputation points
2021-12-30T18:49:45.967+00:00

I can't connect to my FTP and I already configured it.
pic of FTP: 161475-image.png

the error in FTP Client :

161476-image.png

I already opened the port ( 21 ) .
please help and thanks.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,033 questions
Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,772 questions
{count} votes

Accepted answer
  1. Andreas Baumgarten 123.5K Reputation points MVP Volunteer Moderator
    2021-12-31T14:14:47.847+00:00

    Hi @Abdullah Alayed ,

    did you run the "Connection Troubleshooting" like described above?
    Result is?

    ----------

    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards
    Andreas Baumgarten

    0 comments No comments

4 additional answers

Sort by: Most helpful
  1. Ravi Kanth Koppala 3,391 Reputation points Microsoft Employee Moderator
    2021-12-31T04:54:21.9+00:00

    @Abdullah Alayed ,
    With the images you shared, what I understand is that you configured FTP in an Azure VM and you can't access it. As @Andreas Baumgarten suggested, you need to validate the ports are enabled in the NSG & VM. Can you also confirm if you are using the Azure firewall? If yes, may I know that what is the port range configured? Sometimes, increasing the port range can solve the problem.

    Can you also try using psping or telnet to verify the same as there are no blockers on the Azure platform? For PSPing, you can download the tool from https://learn.microsoft.com/en-us/sysinternals/downloads/psping. You will have to extract the folder and then launch a command prompt from the same directory as the folder and execute the following command: psping.exe 20.203.56.148:21 Alternately, you can use telnet after installing it from the Server Manager>Add Roles and Features. This will be the command for telnet: telnet 20.203.56.148 21

    Note: I try to connect to the IP you shared in the image and it is not accessible. Can you double-check if the IP is a public IP?

    161508-ping-21.png

    If the reply was helpful please don't forget to upvote and/or accept as the answer, thank you

    1 person found this answer helpful.
    0 comments No comments

  2. Andreas Baumgarten 123.5K Reputation points MVP Volunteer Moderator
    2021-12-30T19:53:22.48+00:00

    Hi @Abdullah Alayed ,

    is the FTP service running on an Azure VM?

    It's possible to connect FTP from the same computer?

    ----------

    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards
    Andreas Baumgarten


  3. Andreas Baumgarten 123.5K Reputation points MVP Volunteer Moderator
    2021-12-31T00:08:28.757+00:00

    Hi @Abdullah Alayed ,

    if this is FTP server is an Azure VM:
    Are you using Network Security Gateway(s) (NSG) associated with the Azure VM and/or the Azure Virtual Network?
    If so please check whether the corresponding security rules are in place.
    You can check the connectivity of the Azure VM via Azure Portal -> Navigate to the Azure VM and test the connection. It should not look like this (connection is blocked by a NSG):

    161487-image.png

    If the NSG(s) are configured for FTP the connection test should look like this:

    161447-image.png

    ----------

    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards
    Andreas Baumgarten

    0 comments No comments

  4. Abdullah Alayed 21 Reputation points
    2021-12-31T13:47:55.967+00:00

    All the information here :
    161681-image.png


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.