Windows 10 FTP server connection failure

Ripper T 1 Reputation point
2022-02-18T16:07:20.877+00:00

I've set up a Windows 10 file server on a desktop wired to my local network and it's accessible over my local network, but I can only connect to it over internet with one computer, a laptop over wireless, and only when connected to my LAN at home. If I take it across town to my office, I get error message:

An error occurred opening that folder on the FTP server. Make sure you have permsission to access that folder.
Details:
200 type set to A.
227 Entering Passive Mode (10,0,0,xx,xxx,xxx)

I've turned off the firewalls and deactivated anti-virus protection on all 5 of my machines (all Win 10) for testing purposes. I've tried using CuteFTP, Filezilla, WinSCP and Windows explorer over wired and wireless devices.

The FTP clients generate a generic error message that basically says a connection could not be established and/or time out.

I'm stuck on this one laptop connecting easily at home. What does it have that the others don't? What does my home network have that my office doesn't?

Any help is appreciated.

Rip

Internet Information Services
Windows 10 Network
Windows 10 Network
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Network: A group of devices that communicate either wirelessly or via a physical connection.
2,317 questions
0 comments No comments
{count} votes

11 answers

Sort by: Most helpful
  1. Ripper T 1 Reputation point
    2022-02-23T16:06:27.867+00:00

    Yes, the bindings show port 21, and the ftp service is running. I just meant the listening port is different from what your image shows. Yours says LISTENING 2728, mine shows LISTENING 2580. Forgive my elementary understanding of this, but shouldn't it be listening on port 21?

    Rip


  2. Ripper T 1 Reputation point
    2022-02-26T02:00:47.767+00:00

    I appreciate your help in this. I provided as much detail as I was able to in my first post, given my very basic knowledge of networking, and I've answered all your questions.

    <<you are going to have to be specific about what you are doing>>

    Specifically, I am trying to connect to a ftp server that I want to be accessible from anywhere on the internet using a username and a password.

    <<We don't know how you set up your network>>

    I rent a modem/router from xFinity/Comcast and log in to the gateway at 10.0.0.1. I have desktops, phones, TV's etc. connected to my network LAN as is common in most households. I did set up port 21 forwarding to 10.0.0.44 thru Comcast, which is the address of the server (I believe it's called an 'internal' address), which I configured according to the site to which you referred me:

    https://www.windowscentral.com/how-set-and-manage-ftp-server-windows-10

    <<or what IP addresses you have assigned>>

    I have assigned no IP addresses.

    <<or if you have a VPN implemented somewhere>>

    I have no VPN.

    <<or what commands you are typing in>>

    I am typing no commands except the ones you suggested, because I thought you thought they were helpful.

    <<say "I have a PC whose IP address is xxx.xxx.xxx.xxx.>>

    I have a PC whose IP address is 10.0.0.183. I am trying to access the ftp server whose IP is (according to whatismyipaddress.com) "xx.59.xxx.xxx". canyouseeme.org reports it can see my service on "xx.59.xxx.xxx" on port 21.

    Please let me know anything else you need to know and I will happily provide it. Again, forgive my elementary understanding of this and I do appreciate any help.

    Rip


  3. Ripper T 1 Reputation point
    2022-02-27T03:42:11.137+00:00

    I think I understand, but an explanation would be great, thank you.

    On my home network, I am using the 10.0.0.44 address and the server name and they both work fine.

    I've also been trying to connect over the internet while on my home network because I thought it was a good way to 'mimic' connecting from out on the internet without actually leaving home. If that's a bad way to test, please let me know.

    To attempt a connection from out on the internet, I go to our office across town where all my machines are on our office LAN. Tonight I tried from 2 laptops and a desktop. On each one, I try using ftp clients (Filezilla, cuteFTP and WinSCP) with xxx.59.xxx.xxx, the username and password, and they all time out (cuteFTP offers some generic things to check, but they've not helped). Then I try using Windows file explorer address bar with ftp://xxx.59.xxx.xxx and get error messages:

    178057-error-messages-1.png

    On one of the laptops, I can get as far as viewing the file tree, but then there are further permission issues, which I will detail if you think it's necessary.

    I hope there are some conclusions to be drawn from these error messages. Please let me know if you need anything else. Thanks again!

    Rip

    0 comments No comments

  4. MotoX80 32,986 Reputation points
    2022-02-27T22:18:06.52+00:00

    Let's do a few things with your FTP setup. First configure a banner message so that you know that you are connecting.

    178244-capture1.png

    Next verify that logging is enabled and that we will have log files to look at.

    178189-capture2.png

    178190-capture4.png

    Check the permissions on your root folder and see who has access. For initial testing at least give Users read access.

    178237-capture3.png

    If you are sharing pictures of your cat, then anonymous access is ok. For anything else I would turn that off and use basic authentication.

    178178-capture7.png

    At this point, stop and restart the FTP service to insure that any setting changes got picked up. (Or run iisreset from an admin command prompt.)

    Launch FileZilla and in it's site manager define 2 sites. One for the local 10.0.0.44 address and one for the internet xxx.59.xxx.xxx address. Set them both up to log in with a user account and to also use passive mode.

    178158-capture9.png

    178137-capturea.png

    Right click in the log windows and select "Show detailed log". Then try to connect. You should see the banner messages and the home folder files.

    If you are at home, connect using the local site. When you are at your office, use the internet site. If you can't connect and don't see what's wrong, copy the FZ log and paste it back here. You might also want to check the FTP server logs too.

    178220-capture.png

    As I mentioned in my prior post, FTP is not secure. Your userid and password and all of your data is passing over the internet in clear text. Again, if it's pictures of your cat, that's not a big deal. For anything else you are putting your business at risk.

    Don't do that!

    IIS supports FTPS. That encrypts the connection. Open an admin Powershell prompt on the server and generate a certificate for your site. Use whatever names you wish.

    New-SelfSignedCertificate -FriendlyName Test10-FTP -DnsName Test10-FTP -CertStoreLocation cert:\LocalMachine\My -NotAfter (get-date).AddYears(10)  
    

    Back on the server open the FTP SSL settings and set it to require SSL and select the certificate that you just generated.

    178238-capture5.png

    When you connect with Filezilla, it is going to warn you about the certificate. You can select the "Always trust the server certificate" and that message won't be displayed any more.

    178251-capture8.png

    The command line ftp.exe and the Windows Explorer will not work with FTPS. You will have to use Filezilla or one of the other client apps.

    For machines attached to your home network, use file shares instead of FTP. \servername\sharename.

    0 comments No comments

  5. Gary Nebbett 5,856 Reputation points
    2022-02-28T12:41:27.137+00:00

    Hello Rip & Dave,

    This is an impressively patient and respectful discussion and I feel a bit like an intruder, particularly since I want to throw things into question. Would it not be better to just allow SMB traffic from the Internet to the file server?

    That only involves one port (TCP port 445), would use NTLM authentication (rather than plaintext password), would only need to be set-up once (persistent connection), could even be easily encrypted (Set-SmbShare "whatever" -EncryptData $True) and is easy to use.

    The implications of very weak security (plain text password across the Internet) could be bad, even if you just want to share pictures of your cat - bad actors (if they discover the username/password) could use your server as a drop-off/exchange point for illegal material, for example.

    Gary