Can connect to FTP locally, but not remotely.RSS

3 replies

Last post Oct 23, 2017 02:46 AM by Yuk Ding

  • Can connect to FTP locally, but not remotely.

    Oct 20, 2017 06:49 PM|AaronVT|LINK

    I have a Windows Server 2016 machine with FTP Server role installed, an FTP site added, and FTP Server rules added in Windows Firewall. I can connect via FTP locally like via command line like this:

    ftp localhost
    Connected to *redacted*.
    220 Microsoft FTP Service
    200 OPTS UTF8 command successful - UTF8 encoding now ON.
    User (*redacted*:(none)): Administrator
    331 Password required
    Password:
    230 User logged in.

    However, when I try to connect to the server's IP address via FTP/SFTP it tries to connect for a while then the connection times out. Anything I might be missing? Thanks.

  • Re: Can connect to FTP locally, but not remotely.

    Oct 21, 2017 05:44 AM|AaronVT|LINK

    I figured it out. I had to create a rule to open port 21 in hosting account.

  • Re: Can connect to FTP locally, but not remotely.

    Oct 21, 2017 03:22 PM|lextm|LINK

    Yes, if you use VPS or cloud computing platform, there might be an external firewall you need to configure.

    Lex Li
    IIS Consulting Services at https://support.lextudio.com/services/consulting.html
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: Can connect to FTP locally, but not remotely.

    Oct 23, 2017 02:46 AM|Yuk Ding|LINK

    Hi AaronVT,

    it will be appreciated to mark this thread as answer if you have fixed this issue. So that this solution could help more people.

    Best Regards,

    Yuk Ding

    Yuk Ding

    MSDN Community Support
    Please remember to "Mark as Answer" the responses that resolved your issue.